Page 3 - -II Programmer’s Reference Manual
5525B/31/32 Line Matrix PrinterPCL ® -II Programmer’s Reference Manual P/N 422932-001
Page 5 - Trademark Acknowledgements
Trademark Acknowledgements IBM and Proprinter are registered trademarks, and PC-DOS is a trademark of International Business Machines Corporation. Compaq is a registered trademark of Compaq Computer Corporation. Epson is a registered trademark of Seiko Epson Corporation. Hewlett-Packard, HP and PCL ...
Page 7 - Table of Contents
Table of Contents 1 Introduction ............................................................. 9 About This Guide ................................................................................. 9 Warnings and Special Information ................................................ 9 Related Product In...
Page 9 - Introduction; About This Guide; Warnings and Special Information; WARNING; CAUTION; IMPORTANT; Related Product Information
9 1 Introduction About This Guide Your printer comes equipped with the standard Hewlett-Packard ® Printer Control Language (PCL ® -II) emulation. This manual explains the emulation in detail. The Programmer’s Reference Manual is designed so that you can quickly find the information you need to use a...
Page 10 - Chapter; Software Features
10 Chapter 1 Software Features Software Features The PCL-II emulation software provides the following features: • Graphics and a selection of print densities. You can enable graphics mode and specify a density mode (dots per inch). • Print Attributes. Characters can be bold, italic, double high, dou...
Page 12 - HP PCL-II Emulation Default Settings; Switching Between the Emulations
12 Chapter 2 Introduction HP PCL-II Emulation Default Settings The factory settings for the PCL-II emulation menu options are shown in Table 1 . Host control codes can override the settings for these menu options. Switching Between the Emulations The printer supports four emulations: PCL-II (the def...
Page 13 - Configuring the PCL-II Emulation with Control Codes; Printer Feature Set Compatibility
Printer Feature Set Compatibility 13 NOTE: The SFCC is the Special Function Control Code. From the P-Series protocol, this code is selectable from the front panel. The default value is hex 01. For the Proprinter and Epson emulations, the SFCC is always the ESC (hex 1B) character. Configuring the PCL...
Page 14 - General Information; Programmatic Printer Control
14 Chapter 2 Configuring the PCL-II Emulation with Control Codes General Information Programmatic Printer Control Control codes and multi-character escape sequences are used to control the printers. The printers execute command parameters in the order they are received. Therefore, the order of the p...
Page 15 - Escape Sequences; Combining Escape Sequences
Escape Sequences 15 Escape Sequences An escape sequence consists of the ESC control code followed by one or more characters in succession. Both two-character and structured escape sequences control the printer. Two-character escape sequences take the form ESCX, where X is a character from the ASCII ...
Page 16 - PCL LEVEL I
16 Chapter 2 Configuring the PCL-II Emulation with Control Codes Table 3 lists the escape sequences you can use with the printer. Note that the brackets [ ] used in these escape sequences are for clarification purposes only (the brackets are not actually part of the commands). Table 3. Line Printer ...
Page 17 - PCL LEVEL III
Escape Sequences 17 PCL LEVEL III ESC[(,)]s[0,1]S Italics for primary/secondary font 22 ESC[(,)]s[0,1,-1]Q Density for primary/secondary font 22 ESC&k4S 12 cpi selection 26 ESC*t[70,140]R Raster graphics vertical and horizontal dpi selection 41 ESC*r[60,70,120,140]L Raster graphics horizontal dp...
Page 18 - Programmable Reset
18 Chapter 2 Configuring the PCL-II Emulation with Control Codes Programmable Reset The programmable reset escape sequence (ESCE) causes the printer to eject paper to the top-of-form (position 0,0) if not already at top-of-form. This command resets all current printer configuration values to the fol...
Page 19 - Character Font Selection
Character Font Selection 19 Character Font Selection The printer can print several different character sets (fonts). By performing a printer self-test, you can see which fonts are installed in your printer. You may specify any of these fonts from an application. On the self-test printout, each avail...
Page 20 - Symbol Set Selection
20 Chapter 2 Configuring the PCL-II Emulation with Control Codes Symbol Set Selection The printer allows you to select a symbol set. A symbol set is a set of characters that are mapped to certain locations in the printer’s memory. Symbol sets differ from one another in the characters contained in th...
Page 22 - Printing in the Hex 80 through Hex FF Region; Print Pitch Selection; Character Style Selection
22 Chapter 2 Configuring the PCL-II Emulation with Control Codes Printing in the Hex 80 through Hex FF Region The printer exhibits different behaviors as it processes characters in the hex 80 through FF range. Behavior is based upon the symbol set of the active font. If the symbol set of the active ...
Page 23 - Character Density Selection; Primary Selection; Secondary Selection
Character Density Selection 23 Character Density Selection (PCL Level III) Standard-density print, high-density print, and high-speed draft printing can be specified using the following escape sequences: Primary Selection ESC(s0Q Select Standard-Density (12 x 9 dot matrix, 120 x 72 dpi) for the prim...
Page 25 - Switching Character Fonts
Switching Character Fonts 25 NOTE: All fonts support the following pitches unless otherwise noted: (5, 10, 12, 13.3, 15, 16.67, 20). Switching Character Fonts Character fonts can be accessed using the Shift In/Shift Out (SI/SO) control codes. The SO (CTRL N) control code is sent to the printer to ac...
Page 26 - Display Functions Mode; Print Mode Selection
26 Chapter 2 Configuring the PCL-II Emulation with Control Codes Display Functions Mode (PCL Level I) The display functions mode can be entered using the ESCY sequence. In the display functions mode, the printer prints representative character symbols for the control code characters instead of actua...
Page 27 - Line Spacing
Line Spacing 27 Line Spacing Vertical line spacing of 6 or 8 LPI (lines per inch) can be selected either from the control panel or remotely using the ESC&l[6 or 8]D sequence. When the printer is reset, the vertical line spacing is as set from the control panel. If a parameter other than 6 or 8 i...
Page 29 - Programmable VFC; Special VFC Considerations
Programmable VFC 29 Programmable VFC Programmable VFC allows the user to specify paper movement information other than the standard VFC definitions shown in Table 7 . VFC information is stored in the memory (RAM) table just as the standard VFC is, only the bytes of information are loaded into RAM us...
Page 30 - Programmable VFC Using PCL; EXAMPLE FORM
30 Chapter 2 Configuring the PCL-II Emulation with Control Codes Programmable VFC Using PCL Programmable VFC’s using PCL seem to cause a lot of problems and misunderstandings. Most of the misunderstanding concerns the use of the escape sequence used to set the VFC file. This escape sequence is used ...
Page 35 - Example VFC Data Entry Methods
Programmable VFC 35 Example VFC Data Entry Methods The example escape sequence may be created while the DISPLAY FUNCTIONS key has been enabled as shown below.* Top of FormBottom of FormSingle SpacingDouble Spacing**Triple Spacing**Half FormQuarter FormTenth LineBottom of FormBottom of Form - 1Top of...
Page 37 - Logical Page Length Selection
Logical Page Length Selection 37 6. This escape sequence must be sent to the printer before the data by embedding in the application or as part of an initialization string. A programmable or hardware RESET will clear the VFC RAM causing the printer to return to the default VFC. NOTE: If either the R...
Page 38 - Perforation Skip Mode
38 Chapter 2 Configuring the PCL-II Emulation with Control Codes Before changing the page length, it is recommended that a VFC select of channel 0 be performed. This will bring the printer to the top of the next physical page (unless the printer is already at the top of the physical page). Changing ...
Page 39 - Horizontal Margin Selection; Transparent Print Data
Horizontal Margin Selection 39 Horizontal Margin Selection Absolute left and right margin selection is accomplished using the following escape sequences: ESC&a[ print position ]L Set left margin ESC&a[ print position ]M Set right margin The print position specified indicates a decimal number...
Page 40 - Cursor Control
40 Chapter 2 Configuring the PCL-II Emulation with Control Codes Cursor Control Absolute and relative cursor control are provided for the printer. Cursor moves are made in the current active pitch and current active vertical spacing. The following escape sequences perform these functions: Absolute R...
Page 41 - Raster Graphics
Raster Graphics 41 Raster Graphics Graphics are sent to the printer using the following escape sequences: ESC*t[70, 140]R Raster graphics resolution ESC*r#L Horizontal raster graphics resolution ESC*r#V Vertical raster graphics resolution The ESC*r#L and ESC*r#V escape sequences allow you to set the...
Page 42 - Underlining
42 Chapter 2 Configuring the PCL-II Emulation with Control Codes The ESC*b#Y escape sequence allows you to skip multiple adjacent blank lines. The # of raster lines parameter is the decimal number of blank raster lines to skip. The size of the blank raster line to be skipped is equivalent to the cur...
Page 43 - Character Overstrike
Character Overstrike 43 Character Overstrike To create special symbols and underline selected portions of your output, one character (maximum) may be printed over another on a character-by-character or line-by-line basis. A character overstrike is accomplished using either the backspace control code...
Page 45 - Printing Bar Codes
Bar Codes 45 Printing Bar Codes Generally, sending bar code information to the printer is performed in two steps: Step 1: Selecting the bar code printing specifications; bar code type, height, and header control information. Step 2: Moving the cursor to the desired label location and sending the bar...
Page 46 - Printing Multiple Labels On The Same Line
46 Chapter 2 Configuring the PCL-II Emulation with Control Codes Printing Multiple Labels On The Same Line Printing more than one label on the same line involves no more than positioning the cursor and sending the data for each label to be printed. Since the termination of the bar code data sequence...
Page 47 - Bar Code Width Information
Bar Codes 47 NOTE: When a header is enabled, sending one line of information causes the printer to print two lines; one line containing the header along with any text you may have sent in that line, and one line containing the bar code label. When a header is enabled, no information can be printed o...
Page 48 - INDUSTRIAL 2 OF 5
48 Chapter 2 Configuring the PCL-II Emulation with Control Codes CODE 3 OF 9 A variable-length data string of up to 32 ASCII characters may be printed using the Code 3 of 9 bar code. The string may be an odd or even length and may use any of the standard characters (specified in MIL-STD-1189). If a ...
Page 49 - Royal Mail
Bar Codes 49 EAN8 A fixed-length data string of 7 ASCII characters may be printed using the EAN 8 bar code. The string length must be 7 and may use any of the standard characters 0 through 9. If a non-valid character or string length is used, a blank non-readable bar code will be printed; non-valid ...
Page 52 - US Postnet Barcodes
52 Chapter 2 Configuring the PCL-II Emulation with Control Codes (*)To indicate only year and month, DD must be filled with “00”(**) Plus one digit for length indication(***) Plus one digit for decimal point indication Data Value Representation:a - alphabetic characters n - numeric characters an - a...
Page 53 - 56X US POSTNET BAR CODE; FONT SELECTION; Printing 11.3 CPI US POSTNET Bar Code Information
US Postnet Barcodes 53 256X US POSTNET BAR CODE The US POSTNET Bar Code is a Compaq character set which meets the US Postal Office specifications for Postnet bar coding, including the latest Delivery Point Bar Code, or DPBC. US POSTNET Bar Codes print at 4.0 cpi (20 bars per inch) and 11.3 cpi (22.5...
Page 57 - KEY
57 A Standard ASCII Character Set KEY ASCII CHARACTER ESC 3327 1B OCTALDECIMALHEX B7 0 0 0 0 1 1 1 1 B6 0 B5 0 0 1 1 0 1 1 0 0 0 1 1 0 1 1 COLUMN 0 1 2 3 4 5 6 7 BITS ROW B4 B2 B3 B1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1...
Page 58 - Appendix A
Page 59 - Index
59 Index A ASCII Character Set, 57 Available symbol sets Table, 24 B Bar Code Types Table, 43 Bar codes PCL-II, 43 Bar Code, US POSTNET, 256X US POSTNET Bar Code, 53 Binary data, printing PCL-II, 39 C Character density selection PCL-II, 23 Character font selection PCL-II, 19 Character overstrike PCL...
Page 64 - Compaq Computer Corporation
170117-001A 5525B/31/32 Line Matrix Printer Compaq Computer Corporation P/N 422932-001