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+.

    							ENCharacter Descriptor Formats 11-69
    Character Data Size (UI)   
    The value of the Character Data Size should equal the sum of the 
    sizes of the Character Data Size, Glyph ID, and TrueType Glyph Data 
    fields. This value alerts the PCL interpreter when a continuation block 
    is needed. The minimum possible value is 4. The value of Character 
    Data Size plus Descriptor Size plus 4 (for the Format, Continuation, 
    Reserved and Checksum bytes) will never be less than the value # 
    given in the character download command. If the sum is exactly equal 
    to #, then no continuation block is to be expected for the given 
    character. However, if the sum exceeds #, then a continuation block 
    is needed. A condition for the validity of a downloaded scalable 
    TrueType character is that the sum of the # values for all of that 
    character’s data blocks equals the sum of the Descriptor Size and 
    Character Data Size and 2 (for Reserved and Checksum), plus 2 
    times the number of character data blocks (for Format and 
    Continuation bytes).
    Glyph ID (UI)    
    This field is used by the TrueType font scaler as an ID number for the 
    glyph data associated with the given character.
    TrueType Glyph Data 
    This field contains the data segment associated with the given 
    character as found in the glyf table of the original TrueType font file. 
    See the description in Tr u e  Ty p e  F o n t  F i l e s.
    Checksum (UB)   
    The value of this byte, when added to the sum of all of the bytes in 
    the Character Data Size, Glyph ID, and TrueType Glyph Data fields, 
    should equal 0 in modulo 256 arithmetic. The Checksum is found only 
    in the last character data block associated with a given character. 
    						
    							11-70   Soft Font CreationEN
    Character Definition Examples 
    Bitmap Portrait Character Example   
    To download a bitmap character descriptor and data for a portrait, 
    10 Pitch, 12 point, upright medium, Courier lower-case “p”, send:
    E
    C*c112E  (112 is the decimal character code for an ASCII 
    lower-case “p”)
    E
    C(s140W  [character descriptor and data]
    NoteNotice that the 140 appearing in the Character Definition Command 
    accounts for 2 bytes of the Character Data Block Header, 14 bytes 
    of Character Descriptor, and 124 bytes of Character Data. Since the 
    Character Width is 26 dots, 4 bytes are needed per raster row. Also, 
    since the Character Height is 31 dots, 124 bytes of Character Data for 
    a Class 1 character is needed (4 × 31 = 124). No continuation block is 
    to be expected.
    Table 11-52 Character Format, Continuation, and Descriptor
    FIELD NAME VALUE DESCRIPTION
    Format 4 LaserJet Printer Family
    Continuation 0 Not A Continuation Record
    Descriptor Size:   14 Bitmap
    Class:   1  Normal Raster
    Orientation:  0 Portrait
    Left Offset:   2  dots
    Top Offset:   22  dots
    Character Width:   26  dots
    Character Height:   31  dots
    Delta X:   120  Quarter Dots (30 Dots) 
    						
    							ENCharacter Definition Examples 11-71 Table 11-53 Portrait Character Data Example
    Dot 
    Row Bit Map Decimal Equivalent
    01 00000000 00001111 11000000 00000000  0  15 192  0
    02 11111100 01111111 11111000 00000000  252 127 249  0
    03 11111100 11111111 11111100 00000000  252 255 252  0
    04 11111101 11110000 00111110 00000000  253 240  62  0
    05 00011111 11000000 00001111 00000000  31 192  15  0
    06 00011111 10000000 00000111 00000000  31 128  7  0
    07 00011111 00000000 00000111 10000000  31  0  7 128
    08 00011110 00000000 00000011 10000000  30  0  3 128
    09 00011110 00000000 00000011 11000000  30  0  3 192
    10 00011100 00000000 00000001 11000000  28  0  1 192
    11 00011100 00000000 00000001 11000000  28  0  1 192
    12 00011100 00000000 00000001 11000000  28  0  1 192
    13 00011100 00000000 00000001 11000000  28  0  1 192
    14 00011100 00000000 00000001 11000000  28  0  1 192
    15 00011110 00000000 00000001 11000000  30  0  1 192
    16 00011110 00000000 00000011 11000000  30  0  3 192
    17 00011110 00000000 00000011 10000000  30  0  3 128
    18 00011111 00000000 00000111 10000000  31  0  7 128
    19 00011111 10000000 00001111 00000000  31 128  15  0
    20 00011111 11000000 00011111 00000000  31 192  31  0
    21 00011101 11110000 01111110 00000000  29 240 126  0
    22 00011100 11111111 11111100 00000000  28 255 252  0
    23 00011100 00111111 11110000 00000000  28  63 240  0
    24 00011100 00001111 11000000 00000000  28  15 192  0 
    						
    							11-72   Soft Font CreationEN
    Bitmap Landscape Character Example  
    To download the character descriptor and data for a landscape, 
    10 pitch, 12 point, upright, medium, Courier lower-case “p”, send:
    E
    C*c112E  (112 is the decimal character code for an ASCII 
    lower-case “p”)
    E
    C(s120W  [character descriptor and data] 25 00011100 00000000 00000000 00000000  28  0  0  0
    26 00011100 00000000 00000000 00000000  28  0  0  0
    27 00011100 00000000 00000000 00000000  28  0  0  0
    28 00011100 00000000 00000000 00000000  28  0  0  0
    29 11111111 11111100 00000000 00000000  255 252  0  0
    30 11111111 11111100 00000000 00000000  255 252  0  0
    31 11111111 11111100 00000000 00000000  255 252  0  0 Table 11-53 Portrait Character Data Example (continued)
    Table 11-54 Character Format, Continuation and Descriptor 
    FIELD NAME VALUE DESCRIPTION
    Format 4 LaserJet Printer Family
    Continuation 0 Not A Continuation Record
    Descriptor Size: 14  Bitmap
    Class: 1 Normal Raster
    Orientation: 1 Landscape
    Left Offset: -22 dots
    Top Offset: 27 dots
    Character Width: 31 dots
    Character Height: 26 dots
    Delta X: 120 Quarter Dots (30 dots) 
    						
    							ENCharacter Definition Examples 11-73 Table 11-55 Landscape Character Data Example
    Dot 
    Row Bit Map Decimal Equivalent
    01 00000000 01111110 00000000 00000000  0 126  0  0
    02 00000011 11111111 11000000 00000000  3 255 192  0
    03 00001111 11111111 11110000 00000000  15 255 240  0
    04 00011111 10000001 11111000 00000000  31 129 248  0
    05 00111110 00000000 01111100 00000000  62  0 124  0
    06 00111000 00000000 00111100 00000000  56  0 124  0
    07 01111000 00000000 00011110 00000000  120  0  30  0
    08 01110000 00000000 00001110 00000000  112  0  14  0
    09 11100000 00000000 00001111 00000000  224  0  15  0
    10 11100000 00000000 00000111 00000000  224  0  7  0
    11 11100000 00000000 00000111 00000000  224  0  7  0
    12 11100000 00000000 00000111 00000000  224  0  7  0
    13 11100000 00000000 00000111 00001110  224  0  7  14
    14 11100000 00000000 00000111 00001110  224  0  7  14
    15 01110000 00000000 00001110 00001110  112  0  14  14
    16 01110000 00000000 00001110 00001110  112  0  14  14
    17 00111000 00000000 00011100 00001110  56  0  28  14
    18 00111100 00000000 00111100 00001110  60  0  60  14
    19 00011110 00000000 01111000 00001110  30  0 120  14
    20 00001111 10000001 11110000 00001110  15 129 250  14
    21 01111111 11111111 11111111 11111110  127 255 255 240
    22 01111111 11111111 11111111 11111110  127 255 255 240
    23 01111111 11111111 11111111 11111110  127 255 255 240
    24 01110000 00000000 00000000 00001110  112  0  0  14 
    						
    							11-74   Soft Font CreationEN
    25 01110000 00000000 00000000 00001110  112  0  0  14
    26 01110000 00000000 00000000 00001110  112  0  0  14 Table 11-55 Landscape Character Data Example (continued) 
    						
    							ENIntroduction  12-1
    12
    Macros
    Introduction 
    A Macro is a group of PCL and H”P-GL/2 commands and/or data 
    created by the user that is downloaded and stored in the printer. 
    Once stored in the printer, a macro can be invoked upon request 
    (using the assigned macro ID number), using a single command. 
    When printing letters, for example, which include a company 
    letterhead, the letterhead is repeated for each letter. This 
    letterhead can be created as a macro and stored in the printer. 
    Thus, whenever the letter is printed a macro command, sent to 
    the printer, initiates the command sequence to print the 
    letterhead.
    NoteHP-GL/2 commands are not supported within macros on all 
    HP LaserJet printers. Refer to the “PCL Feature Suppor t Matrix” 
    in Chapter 1 of the PCL 5 Comparison Guide for specifics.
    Macros eliminate the need to download the same information 
    repeatedly, thus saving transmission time. However, the trade-off 
    is that they consume user memory. If memory usage is a 
    concern, a possible solution might be an HP custom macro 
    cartridge.
    Custom macros can be written and stored in ROM (read only 
    memory), such as font-type cartridges or SIMM modules. When 
    ROM-based macros are installed in the printer, they become 
    available for selection. There is no need to download the macro 
    and no user memory is consumed. 
    						
    							12-2   MacrosEN
    Hewlett-Packard provides a service to assist you by developing these 
    custom products. For information contact:
    Hewlett-Packard
    Boise Printer Division
    Attention: Product Specials
    11311 Chinden Blvd.
    Boise, ID 83714
    (208) 323-3684 
    						
    							ENMacro Creation 12-3
    Macro Creation 
    Designate a unique identification (ID) number prior to the definition 
    of a macro using the Macro ID command. This number is assigned to 
    the macro. If a macro is already associated with this ID number, the 
    previously existing macro is deleted from user memory during the 
    definition of the new macro. Subsequent macro operations are 
    accomplished using the macro ID number.
    A macro is created in the printer in several steps. First, the start 
    macro command is sent to the printer to indicate the start of a macro 
    definition. Next, the printer commands, control codes, and data that 
    constitute the macro are sent to the printer, in the intended order of 
    their execution. Finally, the End Macro command is sent to the printer 
    to indicate the end of the macro definition
    To invoke a macro, send the Macro ID command with the ID number 
    of the macro, then send the Macro Control command with a value 
    field of 2, 3, or 4 (
    E
    C&f2X, E
    C&f3X, or E
    C&f4X). This performs the 
    macro in the specified mode: Execute (value field=2), Call (value 
    field=3), or Overlay (value field=4). Refer to the following section 
    “Macro Invocation” for a description of these modes. Table 12-1
    Assign ID 
    Number Macro ID command (
    E
    C&f14Y) assigns a 
    unique identification number (14) to the macro.
    Start Macro 
    Definition Macro Control command, 
    E
    C&f0X, indicates the 
    following commands and data are to be stored 
    as a macro.
    Macro data
    z
    z
    z
    Macro data  Escape sequences, control codes, HP-GL/2 
    commands and text required to perform the 
    desired operation.
    Stop 
    MacroDefinition Macro Control command,
     E
    C&f1X, identifies the 
    end of the macro data (definition). 
    						
    							12-4   MacrosEN
    Macros occupy a portion of user memory. The number of macros that 
    can be stored simultaneously in user memory is limited only by the 
    amount of available user memory.
    Macro Invocation 
    There are three ways to invoke a macro: execute, call, and overlay, 
    using the Macro Control command.
    When a macro is executed, it begins performing its commands using 
    the current modified print environment. Changes made to feature 
    settings during macro execution are recorded in the modified print 
    environment; these changes are retained upon completion of the 
    macro execution.
    When a macro is called, it begins performing its commands using the 
    current modified print environment. Before the macro is performed, 
    the current modified print environment is saved. Changes made to 
    feature settings during a macro call are recorded in the modified 
    print environment; however, these changes are not retained upon 
    completion of the macro call. The modified print environment that 
    existed prior to the macro call is restored.
    When a macro is enabled for automatic overlay, its execution is 
    the final operation each time a page is printed. Before the macro 
    is performed, the current modified print environment is saved and 
    replaced with the overlay environment. The overlay environment 
    is a combination of the user default and the current modified print 
    environments. Changes, made to feature settings during macro 
    overlay, are recorded in the modified print environment; however, 
    these changes are not retained upon completion of the macro overlay. 
    The modified print environment that existed prior to the macro overlay 
    is restored.
    NoteHP-GL/2 commands are not supported within macros on all 
    HP LaserJet printers. Refer to the “PCL Feature Support Matrix” 
    in Chapter 1 of the PCL 5 Comparison Guide for specifics. 
    						
    All HP manuals Comments (0)

    Related Manuals for HP Pcl 5 Manual