Home > HP > Printer > HP Pcl 5 Manual

HP Pcl 5 Manual

    Download as PDF Print this page Share this page

    Have a look at the manual HP Pcl 5 Manual online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 1114 HP manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.

    							ENUser-Defined Pattern Graphics 13-15 Figure 13-8 Moving Pattern Reference Point for Pattern Filling 
    						
    							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 (header) 
    information included in this pattern data. The format for a 300 dpi 
    resolution header is shown in Table 13-3, below.
    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-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
    8 Pattern image
      M 
    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) 
    						
    							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 
    pattern is already associated with the ID, that pattern is replaced with 
    the new pattern. 
    Format (Byte 0)  
    This field, byte 0, must be set to “0.”
    Continuation (Byte 1)  
    This field, byte 1, must be set to “0.” (This byte is for future printer 
    support and does not currently provide any continuation operation.)
    Pixel Encoding (Byte 2)  
    This field, byte 2, should be set to “1.” (This byte is reser ved for future 
    printer operation.)4  Height in Pixels
    6  Width in Pixels
    8 X Resolution
    10 Y Resolution
    12 Pattern image
      M  Table 13-4 Resolution-Specified User-Defined Pattern Header  
    						
    							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 scan 
    direction at which the pattern was designed.
    Master Y Resolution (UI)  
    The Master Y Resolution field is the pixel resolution in the Y scan 
    direction at which the pattern was designed. 
    						
    							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 
    00001111111111111111111111110000 
    00000111111111111111111111100000 
    00000011111111111111111111000000 
    00000001111111111111111110000000 
    00000000111111111111111100000000 
    00000000011111111111111000000000 
    00000000001111111111110000000000 
    00000000000111111111100000000000 
    00000000000011111111000000000000 
    00000000000001111110000000000000 
    00000000000000111100000000000000 
    00000000000000011000000000000000
    This translates into the following 64 bytes in hexadecimal values:
    Table 13-5
    FF FF FF FF
    7F FF FF FE
    3F FF FF FC
    1F FF FF F8
    0F FF FF F0
    07 FF FF E0
    03 FF FF C0
    01 FF FF 80
    00 FF FF 00
    00 7F FE 00
    00 3F FC 00
    00 1F F8 00
    00 0F F0 00
    00 07 E0 00
    00 03 C0 00
    00 01 80 00 
    						
    							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 pattern and assigns 
    it an ID number of 3. 
    1Specify the pattern ID number:
    E
    C*c3G 
    Assigns an ID number of 3 to the pattern data which follows.
    2Send the User-defined Pattern command:
    E
    C*c72W 
    Specifies that 72 bytes are to follow (8 bytes for header plus 
    64 bytes of pattern data). 
    						
    							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 decimal. Table 13-6
    00 00 01 00 00 10 00 20 
    FF FF FF FF 
    7F FF FF FE 
    3F FF FF FC 
    1F FF FF F8 
    0F FF FF F0 
    07 FF FF E0 
    03 FF FF C0 
    01 FF FF 80 
    00 FF FF 00 
    00 7F FE 00 
    00 3F FC 00 
    00 1F F8 00 
    00 0F F0 00 
    00 07 E0 00 
    00 03 C0 00 
    00 01 80 00 
    						
    							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 
    direction (see Print Direction command). For a value field of 1, 
    patterns remain fixed for changes in print direction.
    The default pattern reference point is the upper left corner of the 
    logical page at the top margin (position 0,0). If the Set Pattern 
    Reference Point command is not set, the pattern is tiled with 
    respect to the default reference point.
    NotesAll patterns are rotated for changes in orientation (refer to “Logical 
    Page Orientation Command” in Chapter 5 of this manual).
    This command applies to user-defined, shading, and cross-hatch 
    patterns. 
    						
    							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
    C*c#G) command is sent 
    prior to the Pattern Control command to identify the specific pattern 
    for the Pattern Control command action. 
    						
    All HP manuals Comments (0)

    Related Manuals for HP Pcl 5 Manual