User-Defined Pattern Command

The User-Defined Pattern command provides the means for downloading the binary pattern data that defines the user pattern.

EC * c # W [pattern data]

#=Number of pattern data bytes

Default

=

0

Range

=

0 - 32767 (values outside the range are ignored)

The value field (#) identifies the number of pattern data bytes that follow the User-Defined Pattern command. In addition to the binary pattern data, there are eight bytes of pattern descriptor (header) information included in this pattern data. The format for a 300 dpi resolution header is shown in Table 13-3, below.

Table 13-3 User-Defined Pattern Header (300 dpi resolution)

Byte

15 - MSB

8 7

LSB-0

 

 

 

 

0

Format (0)

Continuation (0)

 

 

 

 

 

2

Pixel Encoding (1)

Reserved (0)

 

 

 

 

 

4

Height in Pixels

 

 

 

 

 

 

6

Width in Pixels

 

 

8Pattern image

￿￿￿

With the introduction of the LaserJet 4 printer, user-defined patterns can be printed either 300 or 600 dpi resolution. X Resolution and Y Resolution fields have been added to the header information included in the previous header. The format for the new header is shown in Table 13-4, below.

Table 13-4 Resolution-Specified User-Defined Pattern Header

Byte

15 - MSB

8

7

LSB-0

 

 

 

 

 

0

Format (0)

 

Continuation (0)

 

 

 

 

 

 

2

Pixel Encoding (1)

 

Reserved (0)

 

 

 

 

 

 

13-16The PCL Print Model

EN

Page 282
Image 282
HP 5961-0509 manual User-Defined Pattern Command, User-Defined Pattern Header 300 dpi resolution