Home > HP > Printer > HP Pcl 5 Manual

HP Pcl 5 Manual

Here you can view all the pages of manual HP Pcl 5 Manual. The HP manuals for Printer are available online for free. You can easily download all the documents as PDF.

Page 281

ENUser-Defined Pattern Graphics 13-15 Figure 13-8 Moving Pattern Reference Point for Pattern Filling 

Page 282

13-16   The PCL Print ModelEN
User-Defined Pattern Command 
The User-Defined Pattern command provides the means for 
downloading the binary pattern data that defines the user pattern.
E
C * 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...

Page 283

ENUser-Defined Pattern Command 13-17
NotesThe Master X and Master Y Resolution fields can be used to specify 
600 dpi resolution for a pattern originally designed at 300 dpi. 
However, a pattern which was designed at 600 dpi is not available 
for selection at 300 dpi resolution.
Patterns are identified by some value (ID number). This is the current 
pattern ID number.
If the Pattern ID command is not used to assign an ID number to the 
user pattern, the existing (current) pattern ID value is used. If a...

Page 284

13-18   The PCL Print ModelEN
Reserved (Byte 3)
This field, byte 3, is not currently used and must be set to 0.
Height in Pixels (Bytes 4 and 5)
This field, bytes 4 and 5, identifies the number of rows (height) of 
the pattern.
Width in Pixels (Bytes 6 and 7)  
This field, bytes 6 and 7, identifies the number of pixels (width) of 
the pattern.
Pattern Image   
This field contains the raster data for the pattern.
Master X Resolution (UI)  
The Master X Resolution field is the pixel resolution in the X...

Page 285

ENUser-Defined Pattern Command 13-19
User-defined Pattern Example  
This example shows how the user-defined pattern command is used 
to create a user-defined patterns. For this example, a pattern of 
triangles is used. The first step is to design the base pattern triangle 
(in this case, using 64 bytes of data). The base pattern binary data is 
shown below:
11111111111111111111111111111111 
01111111111111111111111111111110 
00111111111111111111111111111100 
00011111111111111111111111111000...

Page 286

13-20   The PCL Print ModelEN
When using the 300 dpi User-Defined Pattern header (see Table 
13-3). Set the eight bytes of header information to the following 
values:
Byte  0 - Format = 0 (00 hex) 
Byte  1 - Continuation = 0 (00 hex) 
Byte  2 - Pixel Encoding = 1 (01 hex) 
Byte  3 - Reserved = 0 (00 hex) 
Byte 4/5 - Height in Pixels = 0 / 16 (00 / 10 hex) 
Byte 6/7 - Width in Pixels = 0 / 32 (00 / 20 hex) 
Byte eight begins the first bytes of binary data.
The PCL code below downloads the user-defined...

Page 287

ENUser-Defined Pattern Command 13-21 3Send the pattern header and binary data: 
NotesThere must be an even number of bytes in user-defined pattern data, 
hence the trailing zeros (“padding”) in the last eight data rows above. 
The user-defined pattern downloaded in the previous example is 
printed within a rectangular area in Chapter 14 under “Rectangular 
Area Fill Examples.” 
In the previous example, the raster data code is presented in 
hexadecimal, however, the numbers in the escape sequences 
are...

Page 288

13-22   The PCL Print ModelEN
Set Pattern Reference Point Command  
The Set Pattern Reference Point command causes the printer to tile 
patterns with respect to the current cursor position. This command 
also specifies whether the pattern rotates with the print direction or 
remains fixed.
E
C * p # R
#  =0 - Rotate patterns with print direction
1 - Keep patterns fixed 
Default =0
Range =0,1 (values outside the range are ignored)
A value field of 0 rotates the patterns with changes in the print...

Page 289

ENPattern Control Command 13-23
Pattern Control Command  
The Pattern Control command provides a means for manipulating 
user-defined patterns.
E
C * c # Q
#  =0 - Delete all patterns (temporary & permanent)
1 - Delete all temporary patterns
2 - Delete pattern (last ID # specified)
3 - Reserved
4 - Make pattern temporary (last ID # specified)
5 - Make pattern permanent (last ID # specified) 
Default =0
Range =0 - 5 (values outside the range are ignored)
For value fields 2, 4, and 5, the Pattern ID (
E...

Page 290

13-24   The PCL Print ModelEN 
Start reading HP Pcl 5 Manual

Related Manuals for HP Pcl 5 Manual

All HP manuals