PTX_PRM_PCL_II_P8_257400A PTX PRM PCL II P8 257400A

PTX_PRM_PCL_II_P8_257400A PTX_PRM_PCL_II_P8_257400A

PTX_PRM_PCL_II_P8_257400A PTX_PRM_PCL_II_P8_257400A

PTX_PRM_PCL_II_P8_257400A PTX_PRM_PCL_II_P8_257400A

User Manual: PTX_PRM_PCL_II_P8_257400A

Open the PDF directly: View PDF PDF.
Page Count: 304 [warning: Documents this large are best viewed by clicking the View PDF Link!]

Line Matrix Printers
PCL
®
-II/LinePrinter Plus
®
Programmer’s Reference Manual
Line Matrix Printers
PCL
®
-II/LinePrinter Plus
®
Programmer’s Reference Manual
Printronix, Inc. makes no representations or warranties of any kind regarding
this material, including, but not limited to, implied warranties of
merchantability and fitness for a particular purpose. Printronix, Inc. shall not
be held responsible for errors contained herein or any omissions from this
material or for any damages, whether direct, indirect, incidental or
consequential, in connection with the furnishing, distribution, performance or
use of this material. The information in this manual is subject to change
without notice.
This document contains proprietary information protected by copyright. No
part of this document may be reproduced, copied, translated or incorporated
in any other material in any form or by any means, whether manual, graphic,
electronic, mechanical or otherwise, without the prior written consent of
Printronix, Inc.
COPYRIGHT 2001, 2012, PRINTRONIX, INC.
All rights reserved.
Trademark Acknowledgements
IBM and Proprinter are registered trademarks, and PC-DOS is a trademark of
International Business Machines Corporation.
Centronics is a registered trademark of Genicom Corporation.
ENERGY STAR is a registered trademark of the United States
Environmental Protection Agency. As an ENERGY STAR® Partner,
Printronix has determined that this product meets the ENERGY STAR®
guidelines for energy efficiency.
Epson is a registered trademark of Seiko Epson Corporation.
Hewlett-Packard, HP and PCL are registered trademarks, and LineJet is a
trademark of Hewlett-Packard Company.
IGP, PGL, LinePrinter Plus, and Printronix are registered trademarks of
Printronix, Inc.
Magnum and QMS are registered trademarks, and Code V is a trademark of
Quality Micro Systems, Inc.
Microsoft, MS, Windows and MS-DOS are registered trademarks of Microsoft
Corporation.
PKUNZIP is a registered trademark of PKWARE, Inc.
Postnet is a registered trademark of the United States Postal Service.
This product uses Intellifont Scalable typefaces and Intellifont technology.
Intellifont is a registered trademark of Agfa Division, Miles Incorporated
(Agfa).
CG, Garth Graphic, Intellifont, and Type Director are registered trademarks,
and Shannon and CG Triumvirate are trademarks of Agfa Division, Miles
Incorporated (Agfa). CG Bodoni, CG Century Schoolbook, CG Goudy Old
Style, CG Melliza, Microstyle, CG Omega, and CG Palacio are products of
Agfa Corporation. CG Times, based on Times New Roman under license
from The Monotype Corporation Plc is a product of Agfa.
Univers is a registered trademark of Linotype AG and/or its subsidiaries.
Letraset is a registered trademark, and Aachen, Revue and University Roman
are trademarks of Esselte Pendaflex Corporation.
Futura is a registered trademark of Fundición Tipográfica Neufville, S.A.
ITC Avant Garde Gothic, ITC Benguiat, ITC Bookman, ITC Century, ITC
Cheltenham, ITC Clearface, ITC Galliard, ITC Korinna, ITC Lubalin Graph,
ITC Souvenir, ITC Tiepolo, ITC Zapf Chancery, and ITC Zapf Dingbats are
registered trademarks of International Typeface Corporation.
Albertus, Gill Sans, and Times New Roman are registered trademarks, and
Monotype Baskerville is a trademark of The Monotype Corporation Plc,
registered in the U.S. Pat. and TM office and elsewhere.
Hiroshige and Marigold are trademarks of AlphaOmega Typography, Inc.
Table of Contents
1 Introduction......................................................... 17
About this Guide .................................................................................. 17
Warnings and Special Information ................................................ 17
Related Product Information ......................................................... 18
Software Features ............................................................................... 19
PCL-II ............................................................................................ 19
P-Series ........................................................................................ 19
Proprinter III XL ............................................................................. 20
Epson FX-1050 ............................................................................. 20
2 HP PCL-II ........................................................... 21
Introduction.......................................................................................... 21
HP PCL-II Emulation Default Settings........................................... 22
Switching between the Emulations................................................ 23
Configuring the PCL-II Emulation with Control Codes......................... 23
Printer Feature Set Compatibility .................................................. 23
General Information ...................................................................... 24
Escape Sequences ....................................................................... 25
Bar Codes ..................................................................................... 28
US Postnet Barcodes.................................................................... 38
Character Density Selection.......................................................... 42
Character Font Selection .............................................................. 45
Character Overstrike ..................................................................... 47
Character Style Selection.............................................................. 47
Cursor Positioning......................................................................... 49
Display Functions Mode................................................................ 49
Horizontal Margin Selection .......................................................... 50
Line Spacing ................................................................................. 50
Logical Page Length Selection...................................................... 51
Perforation Skip Mode................................................................... 52
Print Mode Selection ..................................................................... 52
Print Pitch Selection ...................................................................... 53
Printing in the Hex 80 through Hex FF Region.............................. 53
PTX Linefeed ................................................................................ 53
Programmable Reset .................................................................... 54
Programmable VFC....................................................................... 55
Table of Contents
Raster Graphics ............................................................................ 63
Self-test ......................................................................................... 65
Standard (Computed) VFC ........................................................... 65
Stroke Weight (Bold) ..................................................................... 65
Switching Character Fonts ............................................................ 65
Text Length (Vertical Margin) Selection ........................................ 66
Transparent Print Data.................................................................. 66
Underline Mode............................................................................. 66
Vertical Forms Control (VFC)........................................................ 67
HP e3000 Information.......................................................................... 68
Feature Access and Transparent Modes ...................................... 68
VFC Download with a Serial Interface .......................................... 68
Carriage-Control Directives........................................................... 69
Graphics........................................................................................ 69
Printing in the Perforation Skip Region ......................................... 69
HP 1000 Information............................................................................ 70
Downloading VFC ......................................................................... 70
Perforation Skip Mode................................................................... 70
3 P-Series Printer Emulation ................................. 71
Overview.............................................................................................. 71
P-Series Default Values and States.............................................. 72
Configuring the P-Series Emulation with Control Codes ..................... 74
Format for Control Code Descriptions........................................... 74
Switching Between the Emulations ............................................... 74
Special Function Control Code (SFCC) Header ........................... 75
SFCC Command Line ................................................................... 75
Attribute Set and Reset Codes...................................................... 76
NUL Code ..................................................................................... 76
Print Modes Supported for Character Sets ................................... 76
The Control Codes ........................................................................ 77
Backspace..................................................................................... 79
Bell ................................................................................................ 79
Bold Print....................................................................................... 80
Bold Print Reset ............................................................................ 80
Carriage Return............................................................................. 81
Character Set Select ..................................................................... 82
Character Set Select: ECMA Latin 1 Extended............................. 84
Character Set Select: International Languages ............................ 85
Characters 80-9F (Control Codes)................................................ 86
Characters 80-9F (Printable Symbols).......................................... 86
Elongated (Double High) Print, One Line Only ............................. 87
Table of Contents
Elongated (Double High) Print, Set/Reset..................................... 88
Emphasized Print .......................................................................... 88
Emphasized Print Reset................................................................ 89
Emulation Reset............................................................................ 89
Expanded Print (Double Wide), One Line Only............................. 90
Expanded Print (Double Wide), Set/Reset.................................... 90
Extended Character Set................................................................ 91
Extended Character Set Cancel (Primary Set Select)................... 91
Form Feed..................................................................................... 92
Forms Length Set (Inches)............................................................ 92
Forms Length Set (Lines).............................................................. 93
Line Feed ...................................................................................... 93
Line Spacing 1/6 Inch (6 lpi).......................................................... 94
Line Spacing 1/8 Inch (8 lpi).......................................................... 94
Line Spacing 8 or 10.3 lpi (1 Line Only) ........................................ 95
Line Spacing 7/72 Inch.................................................................. 95
Line Spacing n/72 Inch.................................................................. 96
Line Spacing n/216 Inch................................................................ 97
Overscoring................................................................................... 97
Plot, Even Dot (P-Series High Density Graphics) ......................... 98
Plot, Odd Dot (P-Series Normal Density Graphics)....................... 98
Print Mode/Pitch Selection ............................................................ 99
Reverse....................................................................................... 102
Superscript/Subscript Printing..................................................... 103
Superscript/Subscript Printing Reset........................................... 103
Underline..................................................................................... 104
VFU Commands.......................................................................... 104
Vertical Tab ................................................................................. 104
4 IBM Proprinter III XL Emulation ........................ 105
Overview............................................................................................ 105
Proprinter III XL Emulation Default Settings................................ 106
Configuring the Proprinter III XL Emulation with Control Codes........ 108
Format for Control Code Descriptions......................................... 108
Escape Control Codes Overview ................................................ 108
Graphics Control Codes Overview.............................................. 109
Switching Between the Emulations ............................................. 111
The Control Codes ...................................................................... 112
Backspace................................................................................... 114
Bell .............................................................................................. 114
Bit Image Mode, Single Density (Normal Speed)........................ 115
Bit Image Mode, Double Density (Half Speed)............................ 116
Table of Contents
Bit Image Mode, Double Density (Normal Speed) ...................... 117
Bit Image Mode, Quadruple Density (Half Speed) ...................... 118
Bold Printing................................................................................ 119
Bold Printing, Cancel................................................................... 119
Cancel ......................................................................................... 120
Carriage Return........................................................................... 120
Carriage Return Set .................................................................... 121
Character Pitch 12 cpi................................................................. 121
Character Set Select: Set 1 (A)................................................... 121
Character Set Select: Set 2 (B)................................................... 121
Condensed Print ......................................................................... 122
Condensed Print, Cancel ............................................................ 122
Deselect Printer........................................................................... 123
Double Wide Print ....................................................................... 123
Double Wide Print (One Line Only)............................................. 124
Double Wide Print (One Line Only) Cancel................................. 124
Emphasized Print ........................................................................ 125
Emphasized Print, Cancel........................................................... 125
Form Feed................................................................................... 126
Forms Length Set in Inches ........................................................ 126
Forms Length Set in Lines .......................................................... 127
Initialize Parameters.................................................................... 128
Line Feed .................................................................................... 130
Line Feed n/216 Inch (One Line Only) ........................................ 131
Line Spacing 1/8 Inch (8 lpi)........................................................ 132
Line Spacing 7/72 Inch (10.3 lpi)................................................. 132
Line Spacing n/72 Inch (Executes) ............................................. 133
Line Spacing n/72 Inch (Storage)................................................ 134
Line Spacing n/216 Inch.............................................................. 135
Margin, Bottom............................................................................ 136
Margin Cancel, Bottom................................................................ 136
Margins, Horizontal ..................................................................... 136
Overscoring................................................................................. 137
Print All Characters ..................................................................... 137
Print Next Character.................................................................... 138
Print Mode................................................................................... 138
Print Quality................................................................................. 139
Proportional Spacing................................................................... 139
Select Attributes .......................................................................... 140
Set Top-of-Form.......................................................................... 141
Superscript/Subscript Printing..................................................... 141
Superscript/Subscript Printing, Cancel........................................ 142
Table of Contents
Tab, Horizontal............................................................................ 142
Tab Set/Clear, Horizontal............................................................ 142
Tab, Vertical ................................................................................ 143
Tab Set/Clear, Vertical ................................................................ 144
Tabs, Clear All (Return to default)............................................... 144
Underline..................................................................................... 145
Unidirectional Printing ................................................................. 145
5 Epson FX-1050 Emulation................................ 147
Overview............................................................................................ 147
Epson FX-1050 Default Values and States................................. 148
Epson Emulation Exceptions and Differences ............................ 150
Epson Character Sets ................................................................. 151
Configuring the Epson FX-1050 Emulation with Control Codes ........ 152
Format for Control Code Descriptions......................................... 152
Escape Sequences .................................................................... 152
Attribute Set and Reset Codes.................................................... 153
NUL Code ................................................................................... 153
Switching Between the Emulations ............................................. 153
The Control Codes ...................................................................... 154
Backspace................................................................................... 157
Bell .............................................................................................. 157
Cancel Line ................................................................................. 157
Carriage Return........................................................................... 158
Character Pitch 10 CPI ............................................................... 158
Character Pitch 12 CPI ............................................................... 158
Character Pitch 15 CPI ............................................................... 158
Character Set Select: International Languages .......................... 159
Clear Bit 7 of Incoming Data Bytes to 0 ...................................... 160
Condensed Print ......................................................................... 160
Condensed Print Reset ............................................................... 161
Cut-Sheet / Paper Feed Control.................................................. 161
Define a Download Character ..................................................... 161
Delete Character ......................................................................... 161
Double High Print, Set/Reset ...................................................... 162
Double Strike............................................................................... 162
Double Strike, Cancel ................................................................. 163
Double Wide Print ....................................................................... 163
Double Wide Print (One Line) ..................................................... 164
Double Wide Print (One Line), Cancel ........................................ 164
Emphasized Print ........................................................................ 165
Emphasized Print, Cancel........................................................... 165
Table of Contents
Enable Printing Hex Codes 00-1F and 80-9F ............................. 165
Form Feed................................................................................... 167
Graphics, Standard Density ........................................................ 167
Graphics, Double Density ........................................................... 168
Graphics, Double Density Double Speed.................................... 169
Graphics, Quadruple Density ...................................................... 170
Half Speed Mode, On/Off............................................................ 170
Horizontal Tab Execute............................................................... 171
Horizontal Tab Set/Release ........................................................ 171
Initialize Printer............................................................................ 172
Italic Printing................................................................................ 172
Italic Printing, Cancel .................................................................. 172
Line Feed .................................................................................... 173
Line Feed n/216 Inch .................................................................. 173
Line Spacing 1/6 Inch (6 lpi)........................................................ 174
Line Spacing 1/8 Inch (8 lpi)........................................................ 174
Line Spacing 7/72 Inch................................................................ 175
Line Spacing n/216 Inch.............................................................. 175
Line Spacing n/72 Inch................................................................ 176
Make Hex 80-9F Control Codes.................................................. 176
Make Hex 80-9F Printable .......................................................... 176
Master Print Select...................................................................... 178
Paper Out Detection, Enable ...................................................... 178
Paper Out Detection, Disable...................................................... 179
Pass Bit 7 from Host ................................................................... 179
Printer Select............................................................................... 179
Printer Deselect........................................................................... 179
Reassign Graphics Mode............................................................ 180
Remove Downloaded Characters ............................................... 180
Select Graphics Mode................................................................. 181
Select Italic Character Set........................................................... 182
Select 9-Pin Graphics Mode ....................................................... 182
Select Print Quality...................................................................... 183
Select/Deselect Proportional Spacing......................................... 183
Select Serif or Sans Serif Font.................................................... 184
Select User-Defined Font............................................................ 184
Select Vertical Tab Channel........................................................ 184
Set Absolute Horizontal Print Position in 1/60 Inch..................... 185
Set Bit 7 of Incoming Data Bytes to 1 ......................................... 185
Set Form Length in Inches .......................................................... 185
Set Form Length in Lines ............................................................ 186
Set Intercharacter Spacing in 1/120 Inch .................................... 186
Table of Contents
Set Margin, Left........................................................................... 186
Set Margin, Right ........................................................................ 187
Set Relative Horizontal Print Position in 1/120 Inch.................... 187
Set Vertical Tabs in Channels..................................................... 188
Skip Over Perforation.................................................................. 188
Skip Over Perforation, Cancel..................................................... 189
Superscript and Subscript Printing.............................................. 189
Superscript and Subscript Printing, Cancel................................. 190
Underline..................................................................................... 190
Unidirectional Printing, 1 Line...................................................... 190
Unidirectional Printing, Set/Reset................................................ 191
Vertical Tab, Execute .................................................................. 191
Vertical Tab, Set/Clear ................................................................ 192
6 Graphics ........................................................... 193
Overview............................................................................................ 193
Bit Image Graphics ............................................................................ 193
Designing a Bit Image Pattern .................................................... 195
Bit Image Density ........................................................................ 195
Bit Image Programming Format .................................................. 196
Bit Image Sample Program ......................................................... 197
Plot Mode........................................................................................... 198
Plot Density ................................................................................. 198
Plot Data Byte Format................................................................. 199
Plot Data Line Format ................................................................. 200
Plotting the Data.......................................................................... 202
Exiting from P-Series Plot Mode ................................................. 203
Combining Graphics and Text ........................................................... 204
Plot Data Byte Dot Patterns ........................................................ 205
7 Vertical Page Formatting .................................. 207
Overview............................................................................................ 207
Planning a Vertical Page Format ....................................................... 207
VFU Characteristics .................................................................... 208
Proprinter and Epson Vertical Tab Table........................................... 208
Executing Vertical Tabs .............................................................. 208
Vertical Tab Positions ................................................................. 209
P-Series EVFU (Electronic Vertical Format Unit) .............................. 210
Start Load Code - Hex 1E ........................................................... 210
Channel Assignment ................................................................... 210
End Load - Hex 1F ...................................................................... 210
Using the EVFU .......................................................................... 211
Clearing the EVFU Memory ........................................................ 212
Table of Contents
A Standard ASCII Character Set ......................... 213
B P-Series Emulation Character Sets.................. 215
Introduction........................................................................................ 215
IBM PC, Primary Subset: ASCII (USA).............................................. 216
IBM PC, Primary Subset: French....................................................... 217
IBM PC, Primary Subset: German..................................................... 218
IBM PC, Primary Subset: English (UK).............................................. 219
IBM PC, Primary Subset: Danish....................................................... 220
IBM PC, Primary Subset: Swedish .................................................... 221
IBM PC, Primary Subset: Italian ........................................................ 222
IBM PC, Primary Subset: Spanish..................................................... 223
IBM PC, Primary Subset: Japanese .................................................. 224
IBM PC, Primary Subset: French Canadian ...................................... 225
IBM PC, Primary Subset: Latin American.......................................... 226
IBM PC, Primary Subset: Danish II.................................................... 227
IBM PC, Primary Subset: Spanish II.................................................. 228
IBM PC, Primary Subset: Latin American II....................................... 229
IBM PC, Extended Subset: 0437 PC Character Set.......................... 230
IBM PC, Extended Subset: 0850 PC Multilingual .............................. 231
Multinational, ASCII (USA) ................................................................ 232
Multinational, EBCDIC....................................................................... 233
ECMA Latin 1, Primary Subset: ASCII (USA).................................... 234
ECMA Latin 1, Primary Subset: German........................................... 235
ECMA Latin 1, Primary Subset: Swedish .......................................... 236
ECMA Latin 1, Primary Subset: Danish............................................. 237
ECMA Latin 1, Primary Subset: Norwegian....................................... 238
ECMA Latin 1, Primary Subset: Finnish ............................................ 239
ECMA Latin 1, Primary Subset: English (UK).................................... 240
ECMA Latin 1, Primary Subset: Dutch............................................... 241
ECMA Latin 1, Primary Subset: French............................................. 242
ECMA Latin 1, Primary Subset: Spanish........................................... 243
ECMA Latin 1, Primary Subset: Italian .............................................. 244
ECMA Latin 1, Primary Subset: Turkish ............................................ 245
ECMA Latin 1, Primary Subset: Japanese ........................................ 246
ECMA Latin 1, Extended Subset: Multinational................................. 247
ECMA Latin 1, Extended Subset: Barcode 10 cpi ............................. 248
ECMA Latin 1, Extended Subset: Greek ........................................... 249
ECMA Latin 1, Extended Subset: Graphic......................................... 250
ECMA Latin 1, Extended Subset: Scientific 10 cpi ............................ 251
DEC Multinational, ASCII (USA)........................................................ 252
DEC Multinational, French................................................................. 253
Table of Contents
DEC Multinational, German ............................................................... 254
DEC Multinational, English (UK)........................................................ 255
DEC Multinational, Norwegian/Danish............................................... 256
DEC Multinational, Swedish .............................................................. 257
DEC Multinational, Italian .................................................................. 258
DEC Multinational, Spanish............................................................... 259
DEC Multinational, Japanese ............................................................ 260
DEC Multinational, French Canadian ................................................ 261
DEC Multinational, Dutch................................................................... 262
DEC Multinational, Finnish ................................................................ 263
DEC Multinational, Swiss................................................................... 264
OCR A ............................................................................................... 265
OCR B ............................................................................................... 266
C Proprinter Emulation Character Sets ............... 267
Introduction........................................................................................ 267
0437 PC Character Set...................................................................... 268
0850 PC Multilingual.......................................................................... 269
OCR A ............................................................................................... 270
OCR B ............................................................................................... 271
D Epson Emulation Character Sets..................... 273
Introduction........................................................................................ 273
0437 PC Character Set...................................................................... 274
0850 PC Multilingual.......................................................................... 275
Epson Set, ASCII (USA) .................................................................... 276
Epson Set, French............................................................................. 277
Epson Set, German ........................................................................... 278
Epson Set, English (UK) .................................................................... 279
Epson Set, Danish I ........................................................................... 280
Epson Set, Swedish........................................................................... 281
Epson Set, Italian............................................................................... 282
Epson Set, Spanish I ......................................................................... 283
Epson Set, Japanese......................................................................... 284
Epson Set, Norwegian ....................................................................... 285
Epson Set, Danish II .......................................................................... 286
Epson Set, Spanish II ........................................................................ 287
Epson Set, Latin American I .............................................................. 288
Epson Set, French Canadian............................................................. 289
Epson Set, Latin American II ............................................................. 290
OCR A ............................................................................................... 291
OCR B ............................................................................................... 292
Table of Contents
E Contact Information .......................................... 293
Printronix Customer Support Center.................................................. 293
Printronix Supplies Department ......................................................... 293
Corporate Offices............................................................................... 294
17
1
Introduction
About this Guide
This manual explains how to work with the standard emulations provided with
your printer so that it works properly and efficiently.
The Technical Reference Manual is designed so that you can quickly find the
information you need to use and configure your Printronix® P8000 Series
printer.
Warnings and Special Information
Read and comply with all information highlighted under special headings:
Warning Warning messages call attention to situations that could hurt you or
damage the equipment.
Caution Conditions that could damage the printer or related equipment.
Note A note gives you helpful hints about printer operation and maintenance.
18
Chapter 1
About this Guide
Related Product Information
Refer to the following books for printer operation:
P8000 User's Manual
Provides configuration instructions and descriptions and troubleshooting
guidelines.
P8000 Quick Setup Guide
Describes the keys on the control panel and provides quick reference
information on daily printer operations such as loading paper and
replacing ribbons. Italian, French, German, and Spanish are included.
P8000 Maintenance Manual
This manual is not shipped with the printer, but can be ordered. It explains
how to maintain and repair the LineJet printer at the field service level of
maintenance. This manual covers alignments and adjustments,
preventive and corrective maintenance, troubleshooting, and basic
principles of operation.
PCL-II
19
Software Features
This section outlines many of the features available with the software
described in this manual.
PCL-II
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, double wide,
etc.
Page Formatting. PCL-II commands allow you to set line spacing, page
length, and vertical forms control.
Font Typefaces. Also referred to as print modes. The five typefaces
include Near Letter Quality (NLQ), Data Processing (DP), High Speed
(HS), OCR A, and OCR B.
Character Sets. Forty-seven character sets are available. You can print
the character sets in the different print modes. (OCR A and B character
sets must be printed in OCR A and OCR B print modes.)
Bar codes. Several bar codes are available, including Code 3 of 9,
Industrial 2 of 5, Interleaved 2 of 5, UPC A, EAN 8, EAN 13, UCC/EAN-
128, UPCE, Royal Mail (including KIX format), Postnet® 11.3 cpi, and
Postnet 4 cpi.
P-Series
The P-Series 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, double high, double wide, etc.
Page Formatting. Commands allow you to set line spacing, page length,
and vertical tabbing.
Font Typefaces. Also referred to as print modes. The five typefaces
include: Near Letter Quality (NLQ) with or without serifs, Data Processing
(DP), High Speed (HS), OCR A, and OCR B.
Different character sets are available. You can print the character sets in
the different print modes. (OCR A and B character sets must be printed in
OCR A and OCR B print modes.)
Note For software installation instructions, refer to the User’s Manual.
20
Chapter 1
Software Features
Proprinter III XL
The Proprinter® emulation software provides the following features:
Graphics and print densities. You can specify different graphics modes
which use different dpi's (dots per inch).
Print Attributes. Characters can be bold, italic, double high, double wide,
etc.
Page Formatting. Commands allow you to set line spacing, page length,
and vertical tabbing.
Font Typefaces. Also referred to as print modes. The five typefaces
include: Near Letter Quality (NLQ) with or without serifs, Data Processing
(DP), High Speed (HS), OCR A, and OCR B.
Numerous character sets are available. You can print the character sets
in the different print modes. (OCR A and B character sets must be printed
in OCR A and OCR B print modes.)
Epson FX-1050
The Epson® emulation software provides the following features:
Graphics and print densities. You can enable graphics mode and specify
a density mode (dots per inch).
Print Attributes. Characters can be bold, italic, double high, double wide,
etc.
Page Formatting. Epson commands allow you to set line spacing, page
length, and vertical tabbing.
Font Typefaces. Also referred to as print modes. The five typefaces
include: Near Letter Quality (NLQ) with or without serifs, Data Processing
(DP), High Speed (HS), OCR A, and OCR B.
Character Sets. Thirty character sets are available. You can print the
character sets in the different print modes. (OCR A and B character sets
must be printed in OCR A and OCR B print modes.)
21
2
HP PCL-II
Introduction
This chapter describes the HP® PCL-II emulation host control codes that are
supported for your P8000 printer. Emulation refers to the ability of a printer to
execute the commands of a particular printer control language. A printer
control language is the coding system used to convey, manipulate, and print
data. It contains character codes and command sequences that configure the
emulation. In this manual, the terms emulation, printer protocol, and printer
control language are synonymous.
In the HP PCL-II emulation mode, your printer can print files coded for the HP
PCL-II printer control language. To select the PCL-II emulation mode as the
active printer emulation, select PCL-II in the ACTIVE EMULATION menu and
then the PCL-II menu will appear under the EMULATION menu, as described
in the User's Manual.
The PCL-II emulation provides many configurable parameters. The default
parameter values for this emulation are shown in Table 1. You can modify the
emulation parameter values in two ways:
The PCL-II host control codes. An extensive set of PCL-II control code
commands can be sent to the printer from an attached host computer via
the host data stream. Most of this chapter is devoted to describing the
PCL-II control code commands.
The printer configuration menus. You can modify a subset of the PCL-II
emulation parameters using the printer configuration menus and control
panel keys as described in the User's Manual.
A parameter value set by a host control code overrides a value set from the
printer's control panel.
Note Configuration values selected from the menus or via host control codes
can be saved to memory so that they will not be lost when you power off
the printer. The menu selection for saving a configuration to memory is
described in the User's Manual.
22
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.
*The Reset Command can also be set to Disable, Current Config, or Factory
Config. See the User's Manual for more information.
Table 1. PCL-II Menu Option Factory Settings
Parameter Default Setting
Primary/Secondary Character Set
ID 0
Symbol Set Roman-8(8U)
Pitch 10.0 cpi
Density Data Processing
Page Length Representation Inches/Page
Face, CPI Delay Enable
Graphics Density 60 dpi
Max. Line Width 13.2 inches
Perforation Skip Disable
Display Functions Disable
LF after CR Disable
CR after LF Disable
CR after FF Disable
CR after VT Enable
PTX Linefeed Disable
LPI Adjust 6 LPI
Page L. /Lines 66 lines
Page L. /Inches 11 Inches
*Reset Cmd CFG Ld Power-Up Config.
Switching between the Emulations
23
Switching between the Emulations
The printer supports four emulations: PCL-II (the default), LinePrinter Plus®,
Code V™ and IGP/PGL. The LinePrinter Plus has three protocols from which
to choose: P-Series, Proprinter III XL, and Epson FX-1050.
You can switch between PCL-II and any of the LinePrinter Plus protocols by
sending one of the following commands:
ESC%-00000X Switches from PCL-II to P-Series
ESC%-00001X Switches from PCL-II to Proprinter III XL
ESC%-00002X Switches from PCL-II to Epson FX-1050
SFCC|};K0 Switches from any of the LinePrinter Plus emulations
to PCL-II
Configuring the PCL-II Emulation with Control Codes
The remainder of this chapter describes the PCL-II printer control language
codes that may be sent from a host computer attached to the printer.
The escape (ESC) control code is used to select most of the programmable
features.
Commands and control codes sent from a host system override settings in the
configuration menus. However, any configuration settings from host control
codes will be gone once the printer is powered off (or reset to the default
values). Host control codes are never reflected in the PCL-II configuration
menu. In order to save a configuration, it is necessary to select the desired
options from the front panel and save the options to one of the printers eight
user-selectable configurations. The User's Manual describes the menu option
for saving changes to the printer memory.
Printer Feature Set Compatibility
The printer uses the “Printer Control Language” which standardizes printer
features and user access of these features, providing compatibility between
HP printers. “Printer Control Language” structure consists of five feature
levels:
Level I Print and Space
Level II EDP
Level III Word Processing
Level IV Page Formatting
Level V Enhanced Page Formatting
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.
24
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Each PCL level supersedes features of the levels below it. The P8000 printers
are Level II printers, meaning that all applications for Level I and II printers will
operate correctly on your printer with no modifications. In addition to
supporting Level I and Level II features, the printer supports a limited set of
additional features that may not be supported by other HP products.
Applications written using these additional features may not operate as
intended on other Hewlett-Packard printers which do not have these
capabilities.
General Information
Programmatic Printer Control
Control codes, multi-character escape sequences, and parameterized escape
sequences are all used to control the printers.
The printers execute parameters sequentially, in the order they are received.
Therefore, the order of the parameters is significant. Unrecognized escape
sequences are ignored in their entirety and may cause erroneous printing
since the printer may be unable to perform the requested operation.
Logical and Physical Pages
The limits of the logical page determine the area in which printing can take
place. Logical page length is set programmatically (in lines per page).
Physical page length is set via the control panel and indicates the actual size
of a single page. The physical page length cannot be changed
programmatically. Refer to the Quick Reference Guide for more information.
Table 2. Control Codes
Function Symbol Binary Level Description
Backspace BS 1000 II Move one column left.
Horizontal
Tab
HT
1001 V Move the current active position to the next
tab stop on the current line. The tab stops are
at the left margin and every 8th column
between the left and right margins. If new
position crosses the right margin, the new
position is set to the right margin.
Line Feed LF
1010 I Move to next print line while maintaining
current column position
Form Feed FF
1100 I Move to first line at top of the next page while
maintaining current column position
Carriage
Return
CR 1101 IMove to the left margin on current print line
Escape Sequences
25
Escape Sequences
An escape sequence consists of the ESC control code followed by one or
more characters in succession. Both two-character and parameterized
escape sequences control the printer. Two-character escape sequences take
the form ESCX, where X is a character from the ASCII table (0 through ~).
Parameterized escape sequences are structured in the following form:
ESCXy[parameter]Z
This sequence is explained below:
ESCXy Prefix. This part of the escape sequence indicates that the
escape sequence is parameterized and also specifies which type
of control is being performed. “X” is referred to as the
parameterized character; “y” is referred to as the group character.
Parameter This string of ASCII characters specifies a value (either numeric
or alphanumeric).
ZTerminator. This ASCII character indicates the function to which
the previous parameter value applies. If this character is lower
case (a,b,c, etc.), it indicates a combined escape sequence,
meaning that more parameterized information will follow. If the
character is upper case (A,B,C, etc.), it terminates the escape
sequence string.
Shift Out SO 1110 I Select following characters from the current
secondary character font until receipt of a
Shift In
Shift In SI 1111 I Select following characters from the current
primary character font until receipt of a Shift
Out
Escape ESC
11011 I The following characters are a special control
sequence
Table 2. Control Codes
Function Symbol Binary Level Description
Note Brackets [ ] are shown in many of the escape sequences for clarification
purposes, but are not actually part of the escape sequence. For example,
the brackets in the escape sequence for selecting page length (ESC&l[1-
128]P) specify a range of values (1 through 128) for page length. To
specify a page length of 35 lines, the escape sequence ESC&l35P would
be sent to the printer.
26
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Combining Escape Sequences
Parameterized escape sequences can be combined to save keystrokes.
Combining sequences involves adding the parameter value and terminator of
one or more sequences to another escape sequence. Parameterized
sequences can be combined only if their prefixes are identical. When a
parameter/terminator of one sequence is added to another sequence, all of
the terminators except the last should be lower case. For example, to set the
left and right margins using two separate escape sequences, the following
two sequences would be sent:
Set left margin at position 10 ESC&a10L
Set right margin at position 99 ESC&a99M
Using one combined escape sequence, the following would be sent to the
printer:
ESC&a10l99M
The list below shows 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).
FUNCTION ASCII CODE PAGE
PCL LEVEL I
Display Functions Mode on ESCY 49
Display Functions Mode off ESCZ 49
Perforation Skip Mode on ESC&l1L 52
Perforation Skip Mode off ESC&l0L 52
Print Mode Selection (10 & 16.67 cpi) ESC&k[0,2]S 52
Programmable reset ESCE 54
Raster Graphics start ESC*rA 63
Raster Graphics data ESC*b[#]W[data]63
Raster Graphics end ESC*rB 63
Self-test ESCz 65
Stroke Weight (Bold) ESC[(,)]s[#]B 65
Underline Mode on ESC&d[DEFGLMNOTUVW\}^] 66
Underline Mode off ESC&d[@CHIJKPQRSWXZ[] 66
PCL LEVEL II
Character Font Selection ESC[(,)]ID 45
Cursor Control (absolute row) ESC&a[#]R 47
Cursor Control (absolute column) ESC&a[#]C 47
Cursor Control (relative row) ESC&a[+#]R 47
Cursor Control (relative column) ESC&a[+/-#]C 47
Horizontal Margin Selection (Left) ESC&a[print position]L 50
Horizontal Margin Selection (Right) ESC&a[print position]M 50
Horizontal Margin Selection (Reset) ESC9 50
Line Spacing ESC&l[6,8]D 50
Logical Page Length Selection ESC&l[1-128]P 51
Print Pitch Selection ESC[(,)]s[Cpi]H 53
Text Length (Vertical Margin) Selection ESC&l[1-128]F 66
Transparent Print Data ESC&p[# of bytes]X 66
Escape Sequences
27
FUNCTION ASCII CODE PAGE
PCL LEVEL III
Character Density Selection ESC[(,)]s[0,1,-1]Q 42
Character Style Selection ESC[(,)]s[0,1]S 47
Cursor Positioning (horizontal) ESC&a[#]H 49
Cursor Positioning (vertical) ESC&a[#]V 49
Print Mode Selection (12 cpi) ESC&k4S 52
Raster Graphics start ESC*r[#]A 63
Additional Commands
Bar Code Data ESC*z[<bar code data>]Z 28
Bar Code Height ESC*z[#]H 28
Bar Code Header Control ESC*z[#]Q 28
Bar Code Label Placement ESC*z[#]C 28
Bar Code Selection ESC*z[#]V 28
Emulation Switching ESC%-[0000,0001,0002]X 23
Print Mode Selection (double size) ESC&k8S 52
PTX Linefeed ESC*t[0,1]L 53
Programmable VFC ESC&l[#bytes]W[data]55
Raster Graphics: Move # raster lines ESC*b[#]Y 63
Raster Graphics: Resolution ESC*t[70,140]R 63
Raster Graphics: Horizontal ResolutionESC*r[60,70,120,140]L 63
Raster Graphics: Vertical Resolution ESC*r[72,144]V 63
Standard (Computed) VFC ESC&l[0-16]V 67
28
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Bar Codes
To print bar codes, escape sequences are sent to the printer specifying the
type of code, bar code height, bar code header information, placement
information, and bar code data. The following five escape sequences are
used for bar code printing:
ESC*z#V Bar Code Selection
This sequence selects the type of bar code to be used in subsequent printing
of bar code data. If a number other than those available is selected, the
previously selected bar code type will be used. The following table lists the
bar code types available and their corresponding value field numbers.
ESC*z#H Bar Code Height
This escape sequence defines the height of the bar code label in tenths of an
inch as specified in the value field (#). To specify a bar code height of .8
inches, the ESC*z8H escape sequence would be sent to the printer. A zero in
the value field specifies that bar code height is determined by the current line
spacing (1/6 or 1/8 inch for 6/8 LPI respectively, or 1/3 or 1/4 inch for double-
high/double-wide). The default bar code height is 0.6 inches.
Table 3. Bar Code Types
Bar Code Type Character Length Value Field No.
Code 3 of 9 (default) Variable 0
Industrial 2 of 5 Variable 1
Interleaved 2 of 5 Variable 4
UPC A Fixed 8
UPC E Fixed 9
EAN 8 Fixed 10
EAN 13 Fixed 11
UCC/EAN 128 Fixed 12
Postnet Fixed 13, 14
Royal Mail (including KIX format) Variable 15, 16
Note The Postnet Barcodes type 13 & 14 print 24 bars per inch. See the section
on 256x Postal Barcodes for information on the 20 bars per inch and 22.5
bars per inch Postal Barcodes.
Bar Codes
29
ESC*z#C Bar Code Label Placement
This escape sequence specifies the horizontal starting location of a bar code
by specifying the column number based on the currently active print pitch.
The value field (#) indicates the absolute column position the bar code will
begin printing. A plus or minus sign in the value field is ignored. A value field
whose position is less than the current active printing position is illegal and
causes the cursor to move to the next column position to the right of the
current active printing position. When printing bar codes, always allow at least
1/4 inch margin in all directions from each bar code. This will limit the
interference from other characters and help readability. If you need to print
text and bar codes on the same line, see the “Printing Bar Codes With Text
discussion later in this chapter.
ESC*z#Q Bar Code Header Control
This sequence specifies the placement of the bar code header. A number 1 in
the value field specifies that a header will be printed above the bar code label
and a 2 specifies that it will be placed below the bar code. A zero in the value
field specifies that no header will be printed. The printer default places the
header above the bar code.
ESC*z<Bar Code Data>Z Bar Code Label Data
This sequence sends the bar code label data in the form of an alphanumeric
string enclosed in angled brackets. The header (if enabled) will print in the
location specified by the bar code header control sequence.
The printer automatically formats the bar code, inserts start and stop bits, and
calculates and inserts the checksum (if applicable-not for Code 3 of 9,
Industrial 2 of 5, or Interleaved 2 of 5 ).
For UPC E bar codes, a zero (0) must be in the first position of the bar code
data.
Note Upon termination of the bar code label data escape sequence, the printer
will print all buffered bar code data and generate a carriage return.
30
Chapter 2
Configuring the PCL-II Emulation with Control Codes
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
code data.
Step 1
Before positioning and printing the bar code data, the type of code, height of
the label, and header placement may be specified. Once this is done, the
succeeding labels will be printed using these specifications until a new type,
height, or header control is specified. In other words, the bar code print
specifications can be sent once and need not be sent again unless the printer
is reset or new print specifications are desired. The following example
specifies the print specifications for bar codes that are 0.5 inches in height,
have a header above the label, and are printed in the UPC A code.
ESC*z8v5h1Q
ESC*z8v Select UPC A code
5h Label is to be .5 inches high
1Q Places header above bar code
Notice that the last letter in the escape sequence (Q) is upper-case while the
other letters in the sequence (v and h) are lower-case. (See “Escape
Sequences” on page 25 for more information concerning combining two or
more sequences.)
Step 2
To print a bar code label, the cursor must be placed in the desired position
and the bar code data must be sent. The following escape sequence moves
the cursor to column 25, sends the data “1234567” to the printer, and initiates
printing.
ESC*z25c<1234567>Z
ESC*z25c Places start of label at column 25
< Indicates start of bar code data
1234567 Bar code data
> Signals end of bar code data
Z Upper case Z initiates printing *
*Note that an upper-case “Z” terminator results in the bar code being printed
and an automatic carriage return (CR) being executed.
Bar Codes
31
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 (signalled by an upper-case Z)
causes the bar code to be printed and a carriage return to be executed, all of
the label information must be sent in the same escape sequence. The
following example shows an escape sequence used to print three labels on a
single line:
ESC*z5c<label1>z20c<label2>z35c<label3>Z
ESC*z5c Moves cursor to column 5
<label1> Bar code data
z20c Moves cursor to column 20
<label2> Bar code data
z35c Moves cursor to column 35
<label3> Bar code data
Z Initiates printing
Printing Bar Codes with Text
When printing bar codes with text, since the printer automatically generates a
carriage return and line feed at the end of the terminating character (upper
case Z), potential problems exist. As a general rule, for each line of bar code
mixed with text, send the text information first, followed by a carriage return
without a line feed (ASCII 13), and then overlay the bar code. (The carriage
return is required so that the bar code cursor position will be correct.) The
following example illustrates how to print text and bar codes on the same line.
This example involves a three-line bar code (and three escape sequences) as
shown below:
ESC*z0v25c1q<12345>Z
ESC*z0v Selects Code 3 of 9
25c Moves cursor to column 25
1q Specifies header placement above label
<12345> Bar code data
Z Enables printing this portion of the bar code
ESC*z75CThis is textCRESC*z0q25c<12345>Z
ESC*z75C Moves cursor to column 75
This is text Text for right of bar code
CR Carriage return without a line feed
ESC*z0q Disables header for this portion
25c Moves cursor to column 25
<12345> Bar code data
Z Initiates printing this portion
ESC*z25c0q<12345>Z
ESC*z25c Moves cursor to column 25
0q Disables header for lower portion
<12345> Bar code data
Z Initiates printing for lower portion of label
32
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Bar Code Width Information
The following paragraphs contain information concerning the size of the
printed bar codes. If you are designing a form that contains bar codes, this
information may prove useful in judging how much space the bar code will
occupy.
The following table lists the number of characters sent by the user for each
type of bar code:
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 on the same line
as the bar code label. However, if the header is disabled, text can be
placed next to the bar code label. For example, if you want a label and also
wish to enclose the bar code with a box, you may not use automatic
headers. Instead, you may set the height of the bar code to the text height
and manually print the header.
Table 4. Bar Code Character
Bar Code Number of Characters Sent
Code 3 of 9 Variable
Industrial 2 of 5 Variable
Interleaved 2 of 5 Variable
UPC A 11
UPC E 11
EAN 8 7
EAN 13 12
UCC/EAN 128 19
Postnet 5 (6), 9(10), or 11(12)
Royal Mail (incl. KIX) Variable
Note For Postnet Barcodes printed using the P8000 style, if 5, 9, or 11 digits are
sent, your printer will automatically calculate and print the check digit.
If 6, 10, or 12 digits are sent, the printer will verify the check digit. Should
the check digit be inaccurate, or an invalid bar code length is sent, your
P8000 printer will not attempt to print the invalid data.
Bar Codes
33
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
non-valid character is used in the string, a blank non-readable bar code will be
printed; non-valid characters are not substituted or deleted. Optional
checksums are not inserted in the bar code. The width of the printed bar code
can be approximated by the following equation:
Width in inches = (number of characters)/3.14 + 0.50
INDUSTRIAL 2 of 5
A variable-length data string of up to 32 ASCII characters may be printed
using the Industrial 2 of 5 bar code. The string may be an odd or even length
and may use any character from 0 through 9. If a non-valid character is used
in the string, a blank non-readable bar code will be printed; non-valid
characters are not substituted or deleted. Optional checksums are not
inserted in the bar code. The width of the printed bar code can be
approximated by the following equation:
Width in inches = (number of characters)/3.7 + 0.38
INTERLEAVED 2 of 5
A variable-length data string of up to 32 ASCII characters may be printed
using the Interleaved 2 of 5 bar code. The string may be an odd or even
length. However, if the string is an odd length, a leading zero will be inserted
to make a string of an even length. Valid data characters are 0 through 9. If a
non-valid character is used in the string, a blank non-readable bar code will be
printed; non-valid characters are not substituted or deleted. Optional
checksums are not inserted in the bar code. The width of the printed bar code
can be approximated by the following equations:
Width in inches = (even number of characters)/6.25 + 0.15
UPC A
A fixed-length data string of 11 ASCII characters may be printed using the
UPC A bar code. The string must have a length of 11 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 characters are
not substituted or deleted. The width of the printed bar code does not vary
and is 1.56 inches.
34
Chapter 2
Configuring the PCL-II Emulation with Control Codes
UPC E
A fixed-length data string of 11 ASCII characters may be printed using the
UPC E bar code. The string length must be 11 and may use any of the
standard characters 0 through 9 (however, the data pattern must meet the
format of UPC E bar codes; UPC E is a shortened version of very specific
patterns printable with UPC A). If a non-valid character or string length is
used, a blank non-readable bar code will be printed; non-valid characters are
not substituted or deleted. For UPC E, a zero (0) is required in the first
position of the bar code data (the number system character). The width of the
printed bar code is not variable and is 0.81 inches.
EAN 8
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 characters are not
substituted or deleted. The width of the printed bar code is not variable and is
1.25 inches.
EAN 13
A fixed-length data string of 12 ASCII characters may be printed using the
EAN 13 bar code. The string length must be 12 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 characters are
not substituted or deleted. The width of the printed bar code is not variable
and is 1.56 inches.
Royal Mail
A variable length data string may be printed using the “Royal Mail 4 State
Customer Code”. The string may use any character from 0 through 9 and
alpha characters A through Z. A complete bar code consists of a set of distinct
bars and spaces for each character followed by a checksum character and
enclosed by a unique start bar, stop bar and quiet zone. A second version of
the Royal Mail barcode prints with no stop bar, start bar or checksum
character.
The KIX format for Royal Mail does not include the start/stop code or the
check digit, but will allow lowercase alpha characters a through z.
UCC/EAN 128
The UCC/EAN 128 bar code contains special characters which use unique
codes to identify the leading and trailing end of the bar code. EAN/UCC 128
supports a full ASCII character set and provides standard alphanumeric
keyboard characters and control and special characters.
The EAN/UCC 128 data structure requires an Application Identifier (AI) at the
beginning of barcode data. Each AI determines the format and length of the
data which follows. Refer to Table 5 for more detail.
Bar Codes
35
Table 5. UCC/EAN 128 Application Identifiers
Application
Identifier (AI) Content Format
00 Serial Shipping Container Code n2+n18
02 Item Num. of Goods Within Another Unit n2+n14
10 Batch or Lot Number n2+an..20
11 (*) Production Date (YYMMDD) n2+n6
13 (*) Packaging Date (YYMMDD) n2+n6
15 (*) Sell By Date (Quality) (YYMMDD) n2+n6
17 (*) Expiration Date (Safety) (YYMMDD) n2+n6
20 Product Variant n2+n2
21 Serial Number n2+an..20
22 HIBCC = Quantity, Date, Batch and Link n2+an..29
23 (**) Lot Number (Transitional Use) n3+n..19
240 Additional Product ID Assigned By Manufacturer n3+an..30
250 Secondary Serial Number n3+an..30
30 Quantity n2+n..8
310 (***) Net Weight, Kilograms n4+n6
311 (***) Length or 1st Dimension, Meters n4+n6
312 (***) Width, Diameter or 2nd Dimension, Meters n4+n6
313 (***) Depth, Thickness, Height or 3rd Dimension, Meters n4+n6
314 (***) Area, Square Meters n4+n6
315 (***) Volume, Liters n4+n6
316 (***) Volume, Cubic Meters n4+n6
320 (***) Net Weight, Pounds n4+n6
321 (***) Length or 1st Dimension, Inches n4+n6
322 (***) Length or 1st Dimension, Feet n4+n6
323 (***) Length or 1st Dimension, Yards n4+n6
324 (***) Width, Diameter, or 2nd Dimension, Inches n4+n6
325 (***) Width, Diameter, or 2nd Dimension, Feet n4+n6
326 (***) Width, Diameter, or 2nd Dimension, Yards n4+n6
327 (***) Depth, Thickness, Height, or 3rd Dimension, Inches n4+n6
328 (***) Depth, Thickness, Height, or 3rd Dimension, Feet n4+n6
329 (***) Depth, Thickness, Height, or 3rd Dimension, Yards n4+n6
330 (***) Gross Weight-Kilograms n4+n6
331 (***) Length or 1st Dimension, Logistics n4+n6
332(***) Width, Diameter, or 2nd Dimension, Meters, Logistics n4+6
333 (***) Depth, Thickness, Height or 3rd Dimension, Meters, Logistics n4+n6
36
Chapter 2
Configuring the PCL-II Emulation with Control Codes
334 (***) Area, Square Meters, Logistics n4+n6
335 (***) Gross Volume, Liters n4+n6
336 (***) Gross Volume, Cubic Meters n4+n6
337 (***) Kilograms Per Square Meter n4+n6
340 (***) Gross Weight, Pounds n4+n6
341 (***) Length or 1st Dimension, Inches, Logistics n4+n6
342 (***) Length or 1st Dimension, Feet, Logistics n4+n6
343 (***) Length or 1st Dimension, Yards, Logistics n4+n6
344 (***) Width, Diameter, or 2nd Dimension, Inches, Logistics n4+n6
345 (***) Width, Diameter, or 2nd Dimension, Feet, Logistics n4+n6
346 (***) Width, Diameter, or 2nd Dimension, Yards, Logistics n4+n6
347 (***) Depth, Thickness, Height or 3rd Dimension, Inches, Logistics n4+n6
348 (***) Depth, Thickness, Height or 3rd Dimension, Feet, Logistics n4+n6
349 (***) Depth, Thickness, Height or 3rd Dimension, Yards, Logistics n4+n6
350 (***) Area, Square Inches n4+n6
351 (***) Area, Square Feet n4+n6
352 (***) Area, Square Yards n4+n6
353 (***) Area, Square Inches, Logistics n4+n6
354 (***) Area, Square Feet, Logistics n4+n6
355 (***) Area, Square Yards, Logistics n4+n6
356 (***) Net Weight, Troy Ounce n4+n6
357 (***) Net Volume, Ounces n4+n6
360 (***) Volume, Quarts n4+n6
361 (***) Volume, Gallons n4+n6
362 (***) Gross Volume, Quarts n4+n6
363 (***) Gross Volume, Gallons n4+n6
364 (***) Volume, Cubic Inches n4+n6
365 (***) Volume, Cubic Feet n4+n6
366 (***) Volume, Cubic Yards n4+n6
367 (***) Gross Volume, Cubic Inches n4+n6
368 (***) Gross Volume, Cubic Inches n4+n6
369 (***) Gross Volume, Cubic Inches n4+n6
37 Quantity of Units Contained (For Use With AI 02 Only) n2+n..8
400 Customer's Purchase Order Number n3+an..30
401 Consignment Number n3+an..30
410 Ship To (Deliver To) Location Code Using EAN 13 n3+n13
Table 5. UCC/EAN 128 Application Identifiers (continued)
Application
Identifier (AI) Content Format
Bar Codes
37
(*)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 - alpha-numeric characters n3 - 3 numeric characters, fixed length
an..3 - up to 3 alpha-numeric characters n..3 - up to 3 numeric characters
411 Bill To (Invoice To) Location Code Using EAN 13 n3+n13
412 Purchase From (Location Code of Party From Whom Goods Are
Purchased)
n3+n13
413 Ship For UCC/EAN Location Code n3+n13
414 EAN Location Code For Physical Identification n3+n13
420 Ship To (Deliver To) Postal Code Within a Single Postal Authority n3+an..20
421 Ship To (Deliver To) Postal Code With 3-Digit ISO Country Code Prefix n3+n3+an..9
8001 Roll Products-Width, Length, Core Diameter, Direction and Splices n4+n14
8003 UPC/EAN Number and Serial Number or Returnable Asset n4+n14+an..16
8004 UCC/EAN Serial Identification n4+an..30
8005 Identifies the Price Per Unit of Measure n4+n6
8006 Component of an Article n4+n14+n2+n2
8018 Service Relation Number n4+n18
8100 Coupon Extended Code-Number System Character and Offer n4+n1+n5
8101 Coupon Extended Code-Number System Character, Offer and End of Offer n4+n1+n5+n4
8102 Coupon Extended Code-Number System Character Preceded by Zero n4+n1+n1
90 Mutually Agreed, Between Trading Partners n2+an..30
91 Intra-Company (Internal) n2+an..30
92 Intra-Company (Internal) n2+an..30
93 Intra-Company (Internal) n2+an..30
94 Intra-Company (Internal) n2+an..30
95 Internal-Carriers n2+an..30
96 Internal-Carriers n2+an..30
97 Intra-Company (Internal) n2+an..30
98 Intra-Company (Internal) n2+an..30
99 Internal n2+an..30
Table 5. UCC/EAN 128 Application Identifiers (continued)
Application
Identifier (AI) Content Format
38
Chapter 2
Configuring the PCL-II Emulation with Control Codes
US Postnet Barcodes
The P8000 printer can print barcodes in three different formats. The default,
24 bars per inch, uses the same syntax as the other barcodes. It is suggested
to use the ESC*Z0Q command to disable placement of a header on postal
barcodes. The P8000 printer will also print barcodes using the 256X format
for 20 and 22.5 bars per inch postal barcodes. See the section on 256X - US
Barcodes for more details. P8000 style Postnet barcodes will automatically
generate the check digit if it is not present. The 256X-compatibility barcodes
require the host to generate the check digit. If a non-valid character or string
length is used, a blank non-readable bar code will be printed; non-valid
characters are not substituted or deleted. The width of the printed bar code is
not variable and is 1.33 (5 digit), 2.17 (9 digit), or 2.59 (11 digit) inches.
256X US POSTNET BAR CODE
The US POSTNET Bar Code is an HP 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
bars per inch). Both bar codes are printed by replacing normal printable
characters with vertical bars. Both options use different characters to
represent the desired bar codes, as a result the methods by which they are
produced are incompatible.
11.3 CPI (22.5 bars per inch) US POSTNET BAR CODE
Font Selection
You may select either of the US POSTNET character sets from either the
front panel or through escape sequences. (Refer to the User's Manual for
details on front panel menus.)
The following escape sequence will configure the 11.3 cpi POSTNET BAR
CODE as a secondary font:
ESC)1KESC)s11.3H
The sequence above sets the secondary font symbol set to 11.3 cpi
POSTNET BAR CODE, and sets the pitch to 11.3 cpi. Once the Secondary
character set is configured for 11.3 cpi Postnet Bar Codes, the Shift Out
command can be used to activate the bar codes:
Shift Out: hex 0E
After the bar code is printed, the normal print mode is activated by using the
Shift In command:
Shift In: hex 0F
Note It is recommended setting the US POSTNET Bar Code character set as
the secondary set, with the normal operation mode as the primary font.
US Postnet Barcodes
39
Printing 11.3 CPI US POSTNET Bar Code Information
The US POSTNET BAR CODES represent digits 0 - 9 with five vertical bars.
Each digit consists of two long bars (1's) and three short bars (0's). The
Delivery Point Bar Code font is designed to be printed only at 11.3 cpi or 22.5
bars per inch. A Delivery Point Bar Code is an eleven digit postal code. (For
five or nine postal bar codes, use the 4.0 cpi US POSTNET Bar Code.) The
eleven numeric characters are: ZIP + 4 + 2
To make the bar code scannable, you must add frame bars and a check digit.
The check digit is calculated by adding all of the digits and subtracting the
sum from the next highest multiple of ten. Consequently, the sum of the
eleven digits, and the check digit, will be an even multiple of ten.
The printer does not calculate the check digit or automatically generate frame
bars. They must be generated by the computer resident software and sent to
the printer. To do this, it is necessary to design a program that will convert a
pair of digits into ten vertical bars.
Note Each digit is five bars, with each printable character being two bars. Thus,
2 1/2 characters are needed to print one digit.
40
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Follow the example below to convert a ZIP Code into a bar code:
1. Calculate the check digit for the ZIP Code 45834-8844-70:
a. Add the digits of the ZIP code:
4+5+8+3+4+8+8+4+4+7+0 = 51
b. Subtract from the next highest multiple of ten:
60-51 = 9
The check digit is 9, so the number for conversion is 45834-8844-709.
2. Separate the ZIP Code + digit into digit pairs:
45834-8844-709 = 45 83 48 84 47 09
3. Convert the digit pairs into binary code:
Example:
45 = 01001 01010
4. Convert the binary code into pairs:
01001 01010 = 01 00 10 10 10
5. Convert each pair into its text equivalent:
01 00 10 10 10 = }~{{{
6. Add the frame bars. This can be done in one of two ways: Method 1
(Table 6) uses the frame bars as separate characters, and Method 2
(Table 7) “links” the frame bars to the first and last characters:
Table 6: Method 1
ZIP Code + digit Frame Bar
+
Digit Pairs
Binary
Code
Conversion
Text
Equivalent Converted ZIP Code
(Text To Printer)
45 83 48 84 47 09
Frame Bar 1 \
45 01 00 10 10 10 }~{{{
83 10 01 00 01 10 {}~}{
48 01 00 11 00 10 }~`~{ SO\}~{{{{}~}{}~`~{{}~{}}~}~}`~}}~^SI
84 10 01 00 10 01 {}~{}
47 01 00 11 00 01 }~}~}
09 11 00 01 01 00 `~}}~
Frame Bar 1 ^
Note: SO = Shift Out (hex 0E), and SI = Shift In (hex 0F)
US Postnet Barcodes
41
4.0 CPI (20 bars per inch) US POSTNET Bar Code
Font Selection
You may select either of the US POSTNET character sets from the front
panel, or through escape sequences. (Refer to your User's Manual for details
on front panel menus.)
The following escape sequence will configure the 4.0 cpi POSTNET BAR
CODE as a secondary font:
ESC)0K (Compatible with 256XC series printers.)
ESC)0KESC)s4.0H (Compatible with C235XA series printers.)
The sequence above sets the secondary font symbol set to 4.0 cpi POSTNET
BAR CODE, and sets the pitch to 4.0 cpi. Once the Secondary character set
is configured for 4.0 CPI Postnet Bar Codes, the Shift Out command can be
used to activate the bar codes:
Shift Out: hex 0E
After the bar code is printed, the normal print mode is activated by using the
Shift In command:
Shift In: hex 0F
Table 7: Method 2
ZIP Code + digit Frame Bar
+
Digit Pairs
Binary
Code
Conversion
Symbol
Equivalent Converted ZIP Code
(Text To Printer)
45 83 48 84 47 09
Frame Bar + 4 10 10 01 {{}
58 01 01 01 00 10 }}}~{
34 00 11 00 10 01 ~`~{}
88 10 01 01 00 10 {}}~{ SO{{}}}}~{~`~{}{}}~{}~{{}{~`{~{{}SI
44 01 00 10 10 01 }~{{}
79 10 00 11 10 00 {~`{~
9 + Frame Bar 10 10 01 {{}
Note: SO = Shift Out (hex 0E), and SI = Shift In (hex 0F)
Note It is recommended setting the US POSTNET Bar Code character set as
the secondary set, with the normal operation mode as the primary font.
42
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Perform the following steps to determine the check digit for 45834-8844-70:
1. Calculate the check digit:
Add the digits of the postal code: 4+5+8+3+4+8+8+4+4+7+0 = 51
2. Subtract from the next highest multiple of ten:
60 - 51 = 9
The check digit is 9.
3. Text sent to Printer:
SONUL458348844709.SI
SO = Shift Out (hex 0E)
NUL = Nul (hex 00)
SI = Shift In (hex 0F)
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
primary font
ESC(s1Q Select High-Density (18 x 12 dot matrix, 180 x 96 dpi) for the
primary font
ESC(s-1Q Select High-speed Draft Printing (12 x 6 dot matrix, 120 x 48 dpi)
for the primary font
Secondary Selection
ESC)s0Q Select Standard-Density (12 x 9 dot matrix, 120 x 72 dpi) for the
secondary font
ESC)s1Q Select High-Density (18 x 12 dot matrix, 180 x 96 dpi) for the
secondary font
ESC)s-1Q Select High-speed Draft Printing (12 x 6 dot matrix, 120 x 48 dpi)
for the secondary font
The default density is that of the default font specified from the control panel.
If the symbol set selected is not available in the requested density, the printer
will print blank space. However, OCR-A, OCR-B, and Postal Barcodes force
density changes to ensure scanability.
When draft printing is selected, the printer prints less dots vertically (5 dots).
This reduction in dots results in an increase in print speed of up to 30%.
ESC(0UESC(s10h0s-1Q
To cue high-speed draft with Roman Extension:
ESC(0EESC(s10h0s-1Q
Character Density Selection
43
The following table lists all the Symbol Sets available to the PCL II Emulation.
Each Symbol Set is followed by its selection Code, and the Characters Per
Inch (CPI) available in it. With the exception of OCR-A and OCR-B, selecting
a symbol set in a CPI combination not listed in the chart below will result in
spaces being printed in place of the desired character.
Table 8. Available Symbol Sets
Name Code CPI in High Speed (HS),
Data Processing (DP) and
Near Letter Quality (NLQ)
Roman-8 8U 5 - 20 cpi
1
in HS, DP and NLQ
Turkish-8 8T 5 - 20 cpi
1
in HS, DP and NLQ
Arab-8 8V 5 - 20 cpi
1
in DP and NLQ; 10 cpi in HS only
Cyrillic 8R 5 - 20 cpi
1
in HS, DP and NLQ
PC858 MtLi 13U 5 - 20 cpi
1
in HS, DP and NLQ
MC Text 12J 5 - 20 cpi
1
in HS, DP and NLQ
Roman-9 4U 5 - 20 cpi
1
in HS, DP and NLQ
Latin-9 9N 5 - 20 cpi
1
in HS, DP and NLQ
Win 3.0Lat-1 9U 5 - 20 cpi
1
in HS, DP and NLQ
Japan Postnet 15Y 4 cpi in NLQ only
Katakana Post n/a
2
11.25 cpi in NLQ only
ASCII 0U 5 - 20 cpi
1
in HS, DP and NLQ
Math Sym 0A/0M 5 - 20 cpi
1
in HS, DP and NLQ
LineDraw 0B/0L 5 - 20 cpi
1
in DP only
ISO Den/Nor 0D 5 - 20 cpi
1
in HS, DP and NLQ
Roman Ext. 0E 5 - 20 cpi
1
in HS, DP and NLQ
ISO UK 1E 5 - 20 cpi
1
in HS, DP and NLQ
ISO France 0F 5 - 20 cpi
1
in HS, DP and NLQ
ISO German 0G 5 - 20 cpi
1
in HS, DP and NLQ
Hebrew 0H 5 - 20 cpi
1
in HS, DP and NLQ
Japan ASCII 0K 5 - 20 cpi
1
in HS, DP and NLQ
Katakana 1K 10 cpi in DP and NLQ only
Block Char 1L 5 - 20 cpi
1
in DP only
OCR-A 0O 10 cpi in OCR typeface only
OCR-B 1O 10 cpi in OCR typeface only
44
Chapter 2
Configuring the PCL-II Emulation with Control Codes
ISO Swe/Fin 0S 5 - 20 cpi
1
in HS, DP and NLQ
ISO Spain 1S 5 - 20 cpi
1
in HS, DP and NLQ
ISO Italian 0I 5 - 20 cpi
1
in HS, DP and NLQ
ISO Portugu 4S 5 - 20 cpi
1
in HS, DP and NLQ
Latin-1 0N 5 - 20 cpi
1
in HS, DP and NLQ
Latin-2 2N 5 - 20 cpi
1
in HS, DP and NLQ
Latin-5 5N 5 - 20 cpi
1
in HS, DP and NLQ
Latin-6 6N 5 - 20 cpi
1
in HS, DP and NLQ
Baltic 19L 5 - 20 cpi
1
in HS, DP and NLQ
PC8 DanNor 11U 5 - 20 cpi
1
in HS, DP and NLQ
PC8 Cd437 10U 5 - 20 cpi
1
in HS, DP and NLQ
PC850 MtLi 12U 5 - 20 cpi
1
in HS, DP and NLQ
PC851 LtGk 12G 5 - 20 cpi
1
in HS, DP and NLQ
PC852 Lat2 17U 5 - 20 cpi
1
in HS, DP and NLQ
PC Turkish 9T 5 - 20 cpi
1
in HS, DP and NLQ
PC Hebrew 15H 5 - 20 cpi
1
in HS, DP and NLQ
PC Lat/Ara 10V 5 - 20 cpi
1
in DP and NLQ; 10 cpi
in HS only
PC Cyrillic 3R 5 - 20 cpi
1
in HS, DP and NLQ
Win3.1Lat1 19U 5 - 20 cpi
1
in HS, DP and NLQ
Win3.1Lat-2 9E 5 - 20 cpi
1
in HS, DP and NLQ
Win3.1Lat-5 5T 5 - 20 cpi
1
in HS, DP and NLQ
Math-8 8M 5 - 20 cpi
1
in DP and NLQ only
PS Math 5M 5 - 20 cpi
1
in DP and NLQ only
Greek 7 12N 5 - 20 cpi
1
in HS, DP and NLQ
Postnet4 15Y 4 cpi in NLQ only
Postnet11.25 1K 11.25 cpi in NLQ only
Greek-8 8G 5 - 20 cpi
1
in HS, DP and NLQ
Hebrew-8 8H 5 - 20 cpi
1
in HS, DP and NLQ
Table 8. Available Symbol Sets (continued)
Name Code CPI in High Speed (HS),
Data Processing (DP) and
Near Letter Quality (NLQ)
Character Font Selection
45
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
available character font is printed along with a parameter number to the left of
the printed font.
Katakana-8 8K 10 cpi in DP and NLQ only
DEC 256 Greek n/a
2
5 - 20 cpi
1
in HS, DP and NLQ
ELOT 928 Greek n/a
2
5 - 20 cpi
1
in HS, DP and NLQ
Greek 3 n/a
2
5 - 20 cpi
1
in HS, DP and NLQ
ABY Greek n/a
2
5 - 20 cpi
1
in HS, DP and NLQ
ABG Greek n/a
2
5 - 20 cpi
1
in HS, DP and NLQ
ELOT 927 Greek n/a
2
5 - 20 cpi
1
in HS, DP and NLQ
Greek 437 n/a
2
5 - 20 cpi
1
in HS, DP and NLQ
Greek 8859-7 n/a
2
5 - 20 cpi
1
in HS, DP and NLQ
NOTES
5 - 20 cpi
1
= 5, 10, 12, 13.3, 15, 16.67, 20 cpi
n/a
2
= not applicable. There is no designated code for this font; you can
select it only from the control panel.
Table 8. Available Symbol Sets (continued)
Name Code CPI in High Speed (HS),
Data Processing (DP) and
Near Letter Quality (NLQ)
Note Many earlier models of HP printers could not select certain combinations of
character sets. Your P8000 printer does not have this limitation. The
P8000 printer produces different characters than the previous models, and
your application may be requesting the old character set. You will need to
modify your application's settings to prevent it from selecting the old
character set.
46
Chapter 2
Configuring the PCL-II Emulation with Control Codes
There are two ways to select a font from those available:
By entering the parameter number via the control panel (function 1 =
primary character set; function 2 = secondary character set)
By specifying the attributes of the desired fonts using escape sequences.
The list below contains the font attributes, listed in order of descending
priority:
Symbol Set (ASCII, Roman-8, Line Draw, etc.)
Pitch (10,12,13.3,15,16.67, 20)
Style (Upright/Italic)
Density (High-Speed, Near Letter Quality)
The attributes are specified for both primary and secondary fonts so that you
may switch between the primary and secondary fonts using the Shift Out (SO)
and Shift In (SI) control codes. Notice that the only difference between the
primary and secondary font escape sequences is the direction of the
parentheses. The left parenthesis “(“ is used for primary fonts and the right
parenthesis “)” for secondary. Upon receiving these font attribute commands,
the printer selects the best fitting font from those available.
It is not necessary to specify all four font attributes when selecting a font. If
any of the attributes are not specified, the printer defaults to those attributes
last specified (or, if none have been specified, from the control panel default
font). For example, if you wish to select a font without selecting a print pitch,
the print pitch last specified will be in effect. If you had not previously specified
a print pitch, the printer will use the print pitch of the default font that was last
specified from the control panel (provided that the particular symbol set
selected is available in the current pitch).
The escape sequences used for specifying the character font attributes are
explained in the following paragraphs.
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 the set and
in their locations within memory. The default symbol set is that of the default
font specified from the control panel.
The following escape sequences are used to specify the primary and
secondary symbol sets:
ESC(ID Select symbol set for primary character font
ESC)ID Select symbol set for secondary character font
Table 8 lists the codes needed to select each symbol set. For example, to
select the Roman-8 symbol set for the primary font, you would send the
ESC(8U escape sequence. To select OCR-B for the secondary font, you
would send ESC)1O to the printer.
Character Overstrike
47
An ASCII symbol set table is provided in Appendix A.
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 or a carriage return with no line feed. The overstrike print line will be held
in the print buffer and will be merged with the next line to form a single printed
line with superimposed characters.
Attempting to print more than two characters in any one print location will
result in a loss of data integrity. (Only the last two characters received will be
retained.)
When the automatic underlining enhancement is used (ESC&dD), the
underlined character is not considered an overstrike character. Therefore, if
the underlining enhancement was used to underline a character, another
character could still be printed over it without risking data loss.
Character Style Selection
The printer has two types of character styles: upright and italic. The following
escape sequences select either the upright or the italic print style for the
primary and secondary character fonts:
ESC(s0S Selects the upright style for the primary font
ESC(s1S Selects the italic style for the primary font
ESC)s0S Selects the upright style for the secondary font
ESC)s1S Selects the italic style for the secondary font
Italics cannot be selected or saved from the control panel. The printer will
default to the upright style when the printer is first powered on. Changing
emulations, loading a configuration, or sending the ESCE command to the
printer will cancel the italic style for the primary and secondary fonts.
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 Vertical Cursor Position in Rows
ESC&a#R
Move cursor to absolute vertical cursor position in rows
(where # is an unsigned integer)
Relative Vertical Cursor Position in Rows
ESC&a[+#]R
Note Any number of fonts may be printed on each line, but to do this, each font
must be the same pitch and typeface. That is, only one print pitch, or
typeface is allowed per line.
48
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Move cursor vertically in rows relative to the current
position (where # is a signed [+ only] integer)
Absolute Vertical Cursor Position in Decipoints
ESC&a#V
Move cursor to absolute vertical cursor position in
decipoints (where # = x/720 inch increments). Fractional
decipoint values are not allowed.
Relative Vertical Cursor Position in Decipoints
ESC&a[+/-#]V
Move cursor vertically in decipoints relative to the
current position (where # is a signed [+/-] integer at
x/720 inch increments)
.
Fractional decipoint values are
not allowed.
Absolute Horizontal Cursor Position in Columns
ESC&a#C
Move cursor to absolute horizontal cursor position in
columns (where # is an unsigned integer)
Relative Horizontal Cursor Position in Columns
ESC&a[+/-#]C
Move cursor horizontally in columns relative to the
current position (where # is a signed [+/-] integer)
Absolute Horizontal Cursor Position in Decipoints
ESC&a#H
Move cursor to absolute horizontal cursor position in
decipoints (where # = x/720 inch increments). Fractional
decipoint values are not allowed.
Relative Horizontal Cursor Position in Decipoints
ESC&a[+/-#]H
Move cursor horizontally in decipoints relative to the
current position (where # is a signed [+/-] integer at
x/720 inch increments). Fractional decipoint values are
not allowed.
The vertical cursor positioning commands move the current active position to
the same column on a new line; the vertical movement is based on the active
vertical line spacing or x/720 inch line spacing.
The horizontal cursor positioning commands move the current active position
to a new column on the same line; the horizontal movement is based on the
active horizontal print pitch or x/720 inch horizontal spacing.
Note A plus (+) or minus (-) sign in front of the value indicates that the new
position is relative to the current active position. A (+) sign means the new
position is to the right (horizontal) or that paper motion is forward (vertical).
A (-) sign means that the new cursor position is to the left (horizontal) or
backwards (vertical). The paper cannot be moved backwards past the top-
of-form.
Cursor Positioning
49
The first column/row within a line/page is column/row zero. Therefore, the
upper left-most position is position (0,0). This escape sequence ignores
margins and can therefore be used to set the current active position to any
location within the printer's physical limits. If a request is made for a location
outside the printer's physical limits, the current active position is moved to the
appropriate limit.
Cursor Positioning
The Cursor Positioning commands are used to move the cursor horizontally
or vertically in 1/720 inch increments. Absolute and relative positions are
supported, but not fractional decimals. Do not use Cursor Positioning
commands to go beyond page boundaries.
Horizontal ESC&a[#]H
Vertical ESC&a[#]V
Reverse paper motion may occur if vertical positioning is set to a
value higher than the current position.
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 actually executing the control
characters. In this mode, the carriage return (CR) control character will cause
a CR symbol to be printed and an actual carriage return and line feed to be
performed. The display functions mode can be exited by sending an ESCZ
sequence. The ESCZ will be printed before the mode is terminated. Display
Functions Mode “off” is the printer default state.
When the printer is printing in high-speed draft mode, display function
characters will not be printed.
Note After a Cursor Positioning command, the backspace commands do not
function.
Note The system driver may only allow the printer to print one line in the display
functions mode.
50
Chapter 2
Configuring the PCL-II Emulation with Control Codes
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 in the range 0 through
131 @ 10cpi (0 - 65 for Double-size, 5 cpi, 0-219 for compressed, 16.67 cpi).
The print position represents the column using the print pitch active when the
margin is set. For example, if the character pitch is 10 characters/inch and the
left margin is set to column 20, the left margin will be two inches from the left
physical limit of the printer. If the pitch is then changed to 5 characters/inch,
the left margin would still be in the same logical position, but column 20 would
be four inches from the left physical limit of the printer instead of 2 inches.
Margins can be set at any column, regardless of the present printing position.
If the new margin selected is to the right of the current print position, then the
new setting takes effect immediately. If the new margin setting is to the left of
the current print position, then the new setting does not take effect until the
cursor is reset to zero.
The first column within a line is designated column 0. If a print position greater
(or less) than the printer's physical limit is specified, the right (or left) margin
will be set to the limits of the printer. Power-on and set the margins to the
maximum limits.
Commands are ignored if the result would place the left margin to the right of
the right margin. The only way to move the current active position outside the
margins is by using the escape sequences for horizontal cursor control.
To release the right margin use one of the following escape sequences:
ESC&a132M for 10 cpi
ESC&a158M for 12 cpi
ESC&a175M for 13.3 cpi
ESC&a198M for 15 cpi
ESC&a220M for 16.7 cpi
The ESC9 command resets the left and right margins. The left margin is set to
the left edge of the logical page (column 0) and the right margin is set to the
right edge of the logical page.
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 is entered, the command is ignored and no line
spacing change is made.
Note Changing the line spacing causes the standard VFC table to be
recalculated.
Logical Page Length Selection
51
Logical Page Length Selection
(PCL Level II)
Two page length definitions exist for the printer; physical page length and
logical page length. The physical page length is the length of the paper in
inches. The printer also allows you to set page length in lines per page.
The logical page length is that which is received via an escape sequence and
is calculated in lines per page. Therefore, one physical page can contain
more than one logical page.
The default logical page length is the physical page length. In most cases,
formatting problems can be solved by changing the physical page length and
using the default logical page length.
The logical page length is set using the ESC&l[1-128]P sequence, where the
value field (1-128) is the desired number of lines per page. This command
also defaults the text length to be one inch less than the logical page length,
unless the logical page length is one inch or less, in which case the text length
is set equal to the page length. Requests for a page length of zero cause the
logical page length to equal the physical page length. Requests for a page
length greater than 128 are ignored.
Although the logical page is specified in number of lines, this number
represents the space occupied by that many lines (using the line spacing that
was effective at the time the logical page length was specified). Therefore, if a
logical page length of 66 lines is specified and the line spacing is currently at 6
LPI, the logical page length is 11 inches. If the line spacing is changed (to 8
LPI) in the middle of the page, the actual length of the page would still be 11
inches but the number of print lines would be 88 (8 LPI x 11 inches).
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 the logical page length changes the standard VFC table.
Note When loading a different size of form in the printer, it is usually best to have
the operator set the physical page (from the control panel) to the actual
size of the paper rather than programmatically setting the logical page to
match the length of the new form (and leaving the physical page length at
its previous value). This practice avoids problems if a paper-out occurs.
52
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Perforation Skip Mode
(PCL Level I)
When perforation skip is enabled, the printer skips to the next Top of Form if
the bottom margin is entered following a line feed. The following escape
sequences enable and disable the perforation skip mode:
ESC&l1L Enable perforation skip mode
ESC&l0L Disable perforation skip mode
If a programmable VFC is enabled, the end of text is determined by the first
occurrence of channel 2. If channel 2 is completely clear, the end of text is the
end of the page (that is, there is no perforation region). The text length
defaults to one inch less than the logical page length unless the text length
has been specified with the ESC&l[1-128]F sequence.
Perforation skip mode defaults as configured from the control panel.
When the perforation skip mode is disabled, the printer will print in the margin
space below the desired bottom of text. This can be avoided if a VFC select to
the next Top of Form is performed immediately following the last desired line
of text on the page.
Print Mode Selection
The standard, compressed, and double-high/double-wide print modes are
selected using the ESC&k[0,2,4,8]S sequence as shown in the following
table. This escape sequence affects both the primary and secondary
character fonts. The default print mode is that of the default font specified
from the control panel. Only one print mode is allowed per line.
* Dependent on current line spacing.
** Double high/double wide character set selection.
Note Many systems perform an automatic page eject which overrides the
printer's perforation skip mode. If the user desires to print in the perforation
skip region, the system's automatic page eject must be disabled.
Table 9. Print Mode Selection
Mode Horizontal Pitch
(in characters/inch) Vertical Pitch
(in lines/inch)*
010.0 6 or 8
216.67 6 or 8
412.0 6 or 8
8** 5.0 3 or 4
Print Pitch Selection
53
Print Pitch Selection
Print pitch is specified using the following escape sequences:
ESC(s[5,10,12,13.3,15,16.7,20.0]H
Select print pitch for primary character font
ESC)s[5,10,12,13.3,15,16.7,20.0]H
Select print pitch for secondary character font
When specifying a pitch, if no font with the exact size specified is available,
the next larger pitch will be designated. If a larger pitch does not exist, the
pitch will be set to 16.67. Only one pitch per line may be selected. The default
print pitch is that of the primary font specified from the control panel.
Printing in the Hex 80 through Hex FF Region
The P8000 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 font is 7-bit, characters in the hex 80
through FF range will be ignored. If the symbol set is 8-bit, the printer will
attempt to process the characters.
There are two different types of 8-bit sets. Some have characters that are
printable in the hex 80 through 9F region, while others do not. If the active
symbol set does not have printables in the hex 80 through 9F range, the
characters are ignored.
To determine symbol set properties, perform a symbol set print from the PCL
menu. 7-bit sets print only one line of characters, while 8-bit sets print two. 8-
bit sets, with printables in the hex 80 through 9F range, print characters in the
space below the control code on the first line. Those without printables in that
range leave the area under the control codes blank.
PTX Linefeed
Determines the vertical text alignment when a Linefeed command is sent.
ESC*t1L Enabled
ESC*t0L Disabled
When PTX Linefeed is enabled, the Linefeed moves to the next line as
calculated from the Top of Form position, thereby retaining vertical text
alignment. When printing graphics or bar codes, you may want to set the PTX
Linefeed parameter to Enable to maintain text alignment.
When PTX Linefeed is disabled, the Linefeed is to be performed as calculated
from the bottom of the graphics or barcode, thereby disrupting the vertical text
alignment.
See Figure 1 for an example of this parameter enabled and disabled.
Note Refer to the User's Manual to see which pitches are available for different
symbol set and typeface combinations.
54
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Figure 1. PTX Linefeed
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 following
states. The printer remains on-line after a programmable reset. When the
printer is reset, it is set to a known state as follows:
Primary and secondary character sets (fonts) as configured from the
control panel.
Vertical line spacing (6/8 LPI) as configured from the control panel.
Paper moves to the next Top of Form position (if not currently at Top of
Form).
Data buffer is printed and then the buffer is cleared.
Standard VFC channel assignments selected as defined by physical page
length.
Margins set at maximum limits and/or Left margin set at first column (0).
Physical page length remains as configured from the control panel.
Logical page length = physical page length
Text length = logical page length minus one inch
All character font attributes (symbol set, pitch, style, and density) default
to the character font configured from the control panel.
Display functions off and Underline enhance disabled.
Perforation skip mode as configured from the control panel.
Enable/Disable Label Card as configured from control panel.
Printronix linefeed emulation as configured from control panel.
Raster graphics horizontal resolution as configured from the control
panel. Vertical resolution set to 72 dots per inch.
*The Reset Command can also be set to Disable, Current Config, or Factory
Config. See the User's Manual for more information.
LINE 1
LINE 3
LINE 2
LINE 1
LINE 3
LINE 2
PTX Linefeed Enabled PTX Linefeed Disabled
Linefeed
Linefeed
Programmable VFC
55
Programmable VFC
Programmable VFC allows the user to specify paper movement information
other than the standard VFC definitions shown in Table 12. VFC information
is stored in the memory (RAM) table just as the standard VFC is, only the
bytes of information are loaded into RAM using the following escape
sequence:
ESC&l[byte count]W[VFC data]
The byte count parameter specifies the number (in decimal 0 - 255) of VFC
data bytes to expect immediately following the termination of the escape
sequence.
VFC data is the binary data which is loaded into the VFC table in RAM. These
8-bit bytes are sent in the following order following the ESC sequence
terminator: the most significant byte of the first word followed by the least
significant byte of the first word, followed by the most significant byte of the
second word, etc. The most significant bit of each word is channel 16 and the
least significant bit of each word is channel 1.
VFC Data = (MS byte) (LS byte) (MS byte) (LS byte) . . .
(word 1 = line 1) (word 2 = line 2) . . .
Once the VFC has been loaded into the RAM table, the VFC channels are
selected using the ESC&l[0 through 16]V sequence in the same manner as
the standard VFC. The standard and programmable VFC both use the same
table in RAM. Resetting the printer causes the standard VFC to be
recalculated using the current page and text (form) length and a new table to
be overwritten in RAM. The VFC table is also recalculated when the line
spacing, text length, or page length changes.
Special VFC Considerations
Before loading a VFC table, it is recommended that a VFC select of channel 0
be performed. This will bring the printer to the top of the physical page.
When a programmed VFC is loaded into RAM, the logical page length is
automatically calculated using the following formula:
Logical Page Length (in number of lines) = byte count /2
The example on page 61 shows a VFC table which uses “standard” VFC
definitions and also illustrates a programmable VFC.
Example: Defining a 3.5 inch form at six lines per inch.
1 inch = 6 lines x 3.5 inches = 21 lines
Note An even byte count must be indicated. If an odd byte count is indicated, the
VFC table in RAM will not be overwritten and the data bytes following the
ESC sequence are read and discarded.
Note If the I/O is configured for 7 bit data, channels 8 and 16 cannot be
downloaded with confidence since the eighth bit is used for the
communication protocol. Selecting channels 8 or 16 for 7 bit data is not
recommended.
56
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 to
override the default VFC of the printer. This escape sequence can be hard-
coded into a program or ASCII file.
VFC's are best understood by reviewing an actual example of how to
implement them. For this discussion, the example consists of a 3.5 inch form
at six lines per inch with several different channels defined for use on the form
to be printed.
1 inch = 6 lines per inch x 3.5 inches = 21 lines; therefore this would be a 21
line form.
First, establish the VFC length: with a 3.5” form and 6 LPI print, we have 21
potential lines of print (3.5 x 6 = 21). Refer to the following figure for an
example of the desired finished output.
There are many methods to accomplish this task. The simplest way is to
provide a “1” in CH3 (Channel 3) for all possible print lines and simply call
CH3 for each line (including blank lines). This is called “line counting” and
leaves the burden of positioning with the programmer (adding or deleting a
line causes an adjustment elsewhere to be made).
EXAMPLE FORM
Line 1 Company name
Line 2 Street address
Line 3
Line 4
Line 5
Line 6
Line 7 Opening line
Line 8
Line 9
Line 10 Body
Line 11 Body
Line 12 Body
Line 13
Line 14
Line 15
Line 16
Line 17 Closing line
Line 18
Line 19
Line 20 P.S. line
Line 21
Note The TEXT LENGTH command could be used in conjunction with the
standard VFC and accomplish the above requirements. The assumption is
there are reasons to use a customized VFC; this example has been
simplified for clarification purposes.
Programmable VFC
57
A second method involves only providing a “1” in CH3 where print will occur.
The programmer then simply calls CH3 and the blank lines are skipped.
There still is no flexibility for adding or deleting lines without VFC modification,
but line counting is minimized.
A third method involves assigning VFC channels to each section of the letter
and performing a call to CH3 within each section. To do this, the manufacturer
highly recommends following these guidelines:
CH1 should always define TOF and must be present for a valid load.
CH2 should always define BOF allowing for vertical margin (if any) and
must be present for valid paper out conditions.
CH3 should be present for any potential print line except in the vertical
margin area (if any).
For this example, CH1 will occur at line 1 and is aligned with the Company
Name. We will arbitrarily assign CH4 to occur at line 7 (Opening Line), CH5 to
occur at line 10 (Body), CH6 to occur on line 17 (Closing Line) and CH7 to
occur on line 20 (P.S. Line).
With the above channel assignments in mind, the programmer would call CH1
to begin the letter. After printing the name and address (using calls to CH3 to
“move” to each line) the programmer would call CH4 to skip to line 7 and print
the opening line. Next, a call is made to CH5 to skip to line 10 and print the
body, CH6 to print the closing and CH7 to print the P.S. line. This gives each
section flexibility by allowing variable sizes, limited by the physical room
available before interfering with the next section and avoiding the drudgery of
line count.
The above VFC would look like:
Channel 12345678910111213141516
Line 1 1 1
Line 2 1
Line 3 1
Line 4 1
Line 5 1
Line 6 1
Line 7 1 1
Line 8 1
Line 9 1
Line 10 1 1
Line 11 1
Line 12 1
Line 13 1
Line 14 1
Line 15 1
Line 16 1
Line 17 1 1
Line 18 1
Line 19 1
Line 20 1 1
Line 21 1 1
58
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Notice that for each line channel 3 is selected, this would select a single
space advance. A 1 could be placed in any or all other channels and the VFC
would still be valid since the printer will only look at the channel selected and
advance to the next line that contained a 1 in that channel. For example, if the
printer was on line 2 and channel 7 was selected, the printer would advance
or slew down to line 20 which is the first line where there is a “1” in channel 7.
The next step would be to convert the above VFC definition into the escape
sequence format. The VFC data portion of the escape sequence reverses the
order of the channels. Once reversed, the 16 bits are then divided into two, 8-
bit bytes, with channel 16 being the Most Significant Bit (MSB) of the word
and channel 1 the Least Significant Bit (LSB) of the word. Refer to Table 10.
Since the escape sequence requires the VFC data to be in ASCII format this
binary data must be converted to ASCII. As in our example, many characters
may convert to “unprintable” ASCII characters (below ASCII OCTAL 037).
Refer to the ASCII Symbol Set chart in Appendix A. Entering unprintable data
can be done in several ways:
The easiest and preferred method involves using “dummy” VFC channels to
cause the converted character to become a printable one. For example,
always have bit 7 and bit 15 a “1”, thus adding %100 to the unprintable
character, and eliminating the confusion of entering unprintable data. Do not
“call” the corresponding channel bit 7 or 15 or else improper spacing will
occur.
If the VFC channels that bits 7 and 15 represent must be used, these
unprintable characters must be manipulated for data entry. In most cases, this
can be dealt with by using the DISPLAY FUNCTIONS mode of your terminal.
Type in the “ESC&l[byte count]W” followed by the ASCII characters using the
CONTROL key with the corresponding letter. (Since the CONTROL key
subtracts %100 (100 OCTAL) simply add %100 to the “unprintable” character.
For example, 00000101 converts to %5, adding %100 gives you a %105
which is an E, therefore, pressing a CONTROL E gives the desired result.)
If your terminal doesn't have a DISPLAY FUNCTIONS mode, some EDITOR
programs allow entering the OCTAL equivalents. Some editors do not allow
the user to directly enter OCTAL numbers. In this case, a “dummy” character
would be entered as the VFC data. Next, the EDITOR “CHANGE” command
would be used to change the dummy character to the desired ASCII
character. For example, place an “x” as a dummy character in the VFC data
and use the CHANGE command to replace the “x” with an ASCII 01 (SOH
character) by typing “CHANGEQ “x” to ‘01”. This would replace the “x” with
the unprintable ASCII 01; your escape sequence would appear one character
shorter without DISPLAY FUNCTIONS mode turned on.
This could also be accomplished by changing the specific column to the
ASCII character required. It is important to specify the starting and stopping
column or the CHANGE command will act as a column INSERT. For
Note A “1” corresponds to a hole punched in a physical paper tape.
Programmable VFC
59
example, if column 10 on line 2 is to be changed to an ASCII 04 you would
type “CHANGEQ 10/10 TO '04 IN 2”.
The HP e3000 Workstation Configurator allows entering the VFC data in an
initialization string. This is only applicable when using a printer with a serial
interface and has some limitations. The most significant limitation is that the
initialization string can contain only 120 formatted (compiled) characters. This
limits use to VFCs of 57 lines or less (6 escape sequence characters + 114
VFC data characters = 120). Any other commands in the initialization string
reduces this further. Space available in the initialization string data entry field
(three lines) is NOT an accurate indicator of the number of formatted
characters; careful counting is necessary. Using VFC channels 8 and 16 is
also not allowed due to a limitation of entering data with an octal value above
177.
There are several methods to enter data in the Workstation Configurator:
Entering data as a decimal number, i.e. 13 for a carriage return.
As an OCTAL number (one byte at a time) by preceding the number with
the % sign.
As a two or three character mnemonic such as BS or DC1 (see Appendix
B of the Workstation Configuration manual).
By entering the control characters with the up-arrow or circumflex
character preceding the character, i.e. a backspace would be an ^H.
By entering the actual ASCII character within single quotes, i.e. 'A' would
equate to an OCTAL %101.
Each character entered, with the exception of multiple ASCII characters within
the single quote, MUST BE separated by commas. An example would be
“ESC, '&16W', %101, 'ABC', BS, 13”.
Note The “ ' ” is the single quote and not the prime character.
Note Only one byte may be specified at a time in OCTAL, thus allowing a
maximum of OCTAL 377 which would place a 1 in columns 1-8.
60
Chapter 2
Configuring the PCL-II Emulation with Control Codes
* DO NOT depress the Control Key on these BOLDFACE characters since
they are printable characters.
This VFC data can now be entered into the escape sequence in an ASCII file
or programmatically and be either embedded into the application or merged
with the spool file.
Table 10. Converting VFC Format to VFC Data
Most Significant Byte Least Significant Byte
16 15 14 13 12 11 10 987654321Octal ASCII CTL
MSB/LSB MSB/LSB MSB/LSB
Line 1 0 000000000000101%000%005 NulEnq @E
Line 2 0000000000000101%000%004 NulEot @D
Line 3 0000000000000101%000%004 NulEot @D
Line 4 0 000000000000100%000%004 NulEot @D
Line 5 0 000000000000100%000%004 NulEot @D
Line 6 0 000000000000100%000%004 NulEot @D
Line 7 0 000000000001100%000%014 NulFF @L
Line 8 0 000000000000100%000%004 NulEot @D
Line 9 0 000000000000100%000%004 NulEot @D
Line 10 0 000000000010100%000%024 NulDc4 @T
Line 11 0 000000000000100%000%004 NulEot @D
Line 12 0 000000000000100%000%004 NulEot @D
Line 13 0 000000000000100%000%004 NulEot @D
Line 14 0 000000000000100%000%004 NulEot @D
Line 15 0 000000000000100%000%004 NulEot @D
Line 16 0 000000000000100%000%004 NulEot @D
Line 17 0 000000000100100%000%044 Nul$ @$*
Line 18 0 000000000000100%000%004 NulEot @D
Line 19 0 000000000000100%000%004 NulEot @D
Line 20 0 000000001000100%000%104 NulD @D*
Line 21 0 000000000000110%000%006 NulAck @F
Programmable VFC
61
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 Form
Bottom of Form
Single Spacing
Double Spacing**
Triple Spacing**
Half Form
Quarter Form
Tenth Line
Bottom of Form
Bottom of Form - 1
Top of Form - 1
Top of Form
Seventh Line
Sixth Line
Fifth Line
Fourth Line
Channels 12345678910111213141516
Line 1 1 111111 11111
Line 2 1
Line 3 1 1
Line 4 1 1
Line 5 1 1 1 1
Line 6 1 1
Line 7 1 1 1 1
Line 8 1 1
Line 9 1 1 1 1 1
Line 10 1 1
Line 11 1 1 1 1
Line 12 1
Line 13 1 1 1 1 1 1
Line 14 1 1
Line 15 1 1 1 1 1
Line 16
Line 17
Line 18
Line 19
Line 20
Line 21 1
*This sample shows a 21-line VFC table at 6 LPI. The text ends at line 14,
leaving 6 blank lines (one inch) at the bottom of the page.
**These channels cause a move to the next double/triple space line.
Press the CONTROL key before each letter of the VFC data except for the
two BOLDFACE characters.
ESC&142W@E@D@D@D@D@D@L@D@D@T@D@D@D@D@D@
$@D@D@D@F
VFC data
This would display the corresponding ASCII character, i.e., the Nul for CTL
@.
62
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Another method using a text editor would be to do a CHANGE command
replacement to convert the characters to ASCII characters. This is shown as:
\ADD 1
1 ESC&142WabcdefghijklmnopqrstuvwxyzABCDEFGHIJ
2 //
\CHANGEQ 7/7 TO '00
\CHANGEQ 8/8 TO '05
\CHANGEQ 9/9 TO '00
.
.
.
\CHANGEQ 48/48 TO '06
This could also be input by not entering the letters, but simply changing the
specific column to the desired ASCII character. In the above example the
“abc... HIJ” would not be entered and the CHANGE command would be used
as follows:
\CHANGEQ 7 TO '00 \CHANGEQ 8 TO '05
.
.
.
An example for the Workstation Configurator might be input in several
formats. An example showing the various formats is shown below:
ESC, '&142W' ,NUL,ENQ, '@, 'D, 00, 04, %0, %4, ....%0, %6
As you can see, the escape sequence for the Programmable VFC can be
quite complicated. This should only be used after attempting to satisfy VFC
requirements using the standard (computed) VFC and the TEXT and PAGE
LENGTH escape sequences.
The most common errors in successfully implementing the Programmable
VFC escape sequence usually involve improper VFC byte counting or
attempting to manipulate “unprintable” characters and getting confused.
Converting these “unprintable” characters to printable ones is the easiest way
to avoid data entry confusion.
Summary of Recommended Steps to Implement Programmable VFC
1. Layout the required VFC in a standard channel 1-16 format.
2. Reverse the resulting bit image so that channel 1 is now where channel
16 was and channel 16 is now where channel 1 was.
3. Divide this 16 bit image into two 8-bit bytes.
4. Decode these 8-bit bytes into ASCII characters using the chart in
Appendix A. If the corresponding decoded character is not a printable
character (below %37), it is highly suggested to convert to one by using a
“dummy” channel (7 and/or 15).
5. Enter these characters into the Programmable VFC escape sequence as
the VFC data. This data MUST be an even byte count and is CASE
SENSITIVE (upper/lower). As in all escape sequences, do not include the
brackets ([ ]); they are for clarification only.
Raster Graphics
63
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.
Raster Graphics
Graphics are sent to the printer using the following escape sequences:
ESC*t[70, 140]RRaster 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 horizontal
and vertical raster graphics resolutions independently. Valid raster graphics
resolutions are 70 DPI by 72 DPI, 140 DPI by 72 DPI, 70 DPI by 144 DPI, and
140 DPI by 144 DPI. The following table lists the graphics resolution and the
corresponding escape sequence used to select that graphics resolution.
There are many different valid ways to select a given graphics resolution. The
following table lists only one of the many valid ways.
The ESC*t#R escape sequence allows you to select a graphics resolution of
either 70 x 72 dots per inch (default) or 140 x 144 dots per inch (high
resolution). For example, to specify high-resolution, you would send the
ESC*t140R escape sequence to the printer. Using the standard resolution,
the maximum amount of graphics data that can be printed is 115.5 bytes
versus 231 bytes for high-resolution.
Note If either the RS-232E or the RS-422B interface is installed in the printer,
the interface can be configured to have such things as STRIP NULLS AND
DELETES. The Null and/or Delete character could be used as valid
characters, so the user must either combine other channels on the same
line to generate another character, or not configure the printer to strip
these characters. Another factor may be the use of 8-bit data. If the user
desires to use channels 8 and 16, then 8-bit data must be configured. For
more detail please refer to the User's Manual.
Table 11. Graphics Resolution
Horizontal DPI Vertical DPI Escape Sequence
70 72 ESC*r70l72V
140 72 ESC*r140l72V
70 144 ESC*r70l144V
140 144 ESC*r140l144V
64
Chapter 2
Configuring the PCL-II Emulation with Control Codes
ESC*rA or ESC*r#A Prepare for raster graphics
(PCL Level III)
ESC*b[# of bytes] W[binary data] Raster data transfer (PCL Level I)
ESC*b[# of raster lines]Y Move paper # number of raster lines
ESC*rB Raster graphics complete (PCL Level I)
The ESC*rA or ESC*r#A sequence informs the printer that a raster graphics
dump is to follow the sequence. If value of # is 0 and the printer has received
a partial line of ASCII data before this sequence is received, then the ASCII
data prints with a carriage return and line feed following. If the value of # is 1,
then the graphics will start at the current horizontal position. If no value is
entered for #, then 0 is assumed.
The ESC*b#W[binary data] sequence actually sends the raster data to the
printer. This escape sequence must be sent for each raster line to be printed.
The # of bytes parameter is the decimal number of bytes of binary graphics
data to be sent to the printer. The binary data consists of a 1 for every dot to
be printed and a 0 for every blank space.
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
currently set vertical raster graphics resolution. The advantage of using this
escape sequence over sending multiple raster data transfer escape
sequences containing blank raster lines is the escape sequence is processed
faster and the paper is moved faster.
The ESC*rB sequence informs the printer that all the raster data has been
transferred.
The following example illustrates how to send three lines of raster graphics to
the printer.
ESC*rAESC*b2WDc
ESC*rA Prepares printer for raster graphics
ESC*b2W Indicates two bytes of data to follow
D First byte of graphics data
c Second byte of graphics data
ESC*b2WL@
ESC*b2W Indicates two bytes of data to follow
L First byte of graphics data
@ Second byte of graphics data
ESC*b2W$+ESC*rB
ESC*b2W Indicates two bytes of data to follow
$ First byte of graphics data
+ Second byte of graphics data
ESC*rB Raster graphics complete
Many systems perform an automatic line feed after each line of data. The
system's automatic line feed must be suppressed or else the raster lines will
not be adjacent to each other. A file equation which specifies the line length
(for example, RESC=-219) may be used to suppress the automatic line feed
along with carriage control directives, such as “+”.
Self-test
65
Graphics files must be raster graphics files in the format described here in
order to print on the printer. To print vector graphics files, such as graphics
files created for plotters, a vector-to-raster conversion must be performed on
the data. (Vector-to-raster conversion is NOT a standard feature of the
printer.) Text and graphics cannot mix on the same line due to grid conflicts.
Raster graphics use 8-bit data.
Self-test
(PCL Level I)
ESCz prints the PCL-II configuration report, which shows available character
sets, symbol sets, bar codes, etc.
Standard (Computed) VFC
The printer VFC uses the logical page and form length (text length) to
calculate the distance to be skipped for each VFC channel. This information is
then loaded into the printer's VFC “table.” The “table” is 16 channels wide and
n lines long, where n is the logical page length in number of lines. A VFC
channel contains a 1 in this table on every line it can access. If the VFC
channel cannot access the line, a 0 is placed on that line for that channel. For
example, to specify a skip to the next half form, a program would specify VFC
channel 6. Notice in the sample on page 61 that 1's are placed in the table at
the half form position (lines 1 and 9). Then, for example, if the printer has
finished printing line 2 and channel 6 is selected, the paper will be advanced
to line 9.
To use the standard VFC, perform the ESC&l[0-16]V sequence using the
appropriate parameter number listed in Table 12.
Stroke Weight (Bold)
The Stroke Weight command designates the thickness of the strokes that
compose the characters of a font.
ESC(s#B Primary stroke weight
ESC)s#B Secondary stroke weight
The value field (#) must be 0 for standard stroke weight, or 3 for bold stroke
weight.
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 access the secondary
font; the SI (CTRL O) control code is sent to select the primary font.
66
Chapter 2
Configuring the PCL-II Emulation with Control Codes
Text Length (Vertical Margin) Selection
(PCL Level II)
The length of a form within a logical page is set using the ESC&l[1-128]F
sequence, where the number of lines desired (1-128) is specified. The first
line of text is printed at the Top of Form position. The physical page length
minus the text length defines the total vertical margin (top plus bottom margin)
for the page.
If a text length of zero is received, the text length defaults to one inch less
than the logical page length. The default text length, which is invoked any time
the logical page length is changed, is one inch less than the logical page
length. If the logical page length is one inch or less, the text length is set equal
to the logical page length.
Transparent Print Data
This feature allows the printing of binary data which is required in certain
applications. The escape sequence ESC&p[# of bytes]X enables the printer to
print data as in the display functions mode, except that no control codes or
escape sequences (including CR and ESCZ) are executed. The number
specified in the value field is the exact number of bytes that will be interpreted
as binary.
Underline Mode
The ESC&dD sequence enables the automatic underlining mode. In this
mode, each printed character and space is underlined until the printer
receives an ESC&d@ sequence. The underline enhancement is disabled in
the default state. Underlining only affects forward horizontal movement such
as SP (space), DATA, or forward horizontal cursor moves; reverse
movements such as BS (backspace), CR (carriage return) and negative
horizontal cursor moves are not affected.
Vertical Forms Control (VFC)
67
Vertical Forms Control (VFC)
Vertical forms control (VFC) is a feature which allows increased throughput by
enabling the printer to skip to predetermined print locations. Key page
locations, such as top of form, half form, double space, and triple space, are
referred to as channels (0 through 16) and are stored in a VFC “table.”
The printer has both a standard (computed) VFC and a programmable VFC.
*All escape sequences except ESC&l0V refer to the logical page rather than
the physical page. This escape sequence causes a skip to the top of the next
physical page (unless already at top of page).
**These channels cause a move to the next double/triple space line, and
therefore may not actually perform a double/triple space.
Note In most situations, the printer's standard (computed) VFC page length
setting, as determined from the front panel, meets the application
requirements. Refer to the User's Manual for information on setting the
page length from the front panel.
Table 12. VFC Default Channel Definitions
Prefix Parameter Terminator Explanation
ESC&l 0v/V *Conditional Top of Physical Page
1Top of Form (first line of text)
2Bottom of Form (last line of text)
3Single spacing
4**Double spacing
5**Triple spacing
6Half form
7Quarter form
8Tenth line
9Bottom of Form
10 Bottom of Form - 1
11 Top of Form - 1
12 Top of Form
13 Seventh line
14 Sixth line
15 Fifth line
16 Fourth line
68
Chapter 2
HP e3000 Information
HP e3000 Information
This section contains information which is specific to HP e3000 users. It
explains the use of the feature access and transparent modes, environment
files, downloading VFC files, carriage control, perforation skip mode, and
discusses recoverability.
Feature Access and Transparent Modes
During system device configuration, the P8000 printer is configured to default
to either the transparent or feature access mode. In the transparent mode, the
printer prints (but does not execute) all data including control codes and
escape sequences. In the feature access mode, the supported control codes
and escape sequences are executed. The user can access the non-default
mode using either the FDEVICECONTROL intrinsic (for programs) or an
environment file.
VFC Download with a Serial Interface
Typically, VFC download was only possible for 256X and HP 2300 Series
printers with an HPIB interface using the CIPER driver. MPE V/E T-MIT and
above support a software product called Workstation Configurator that allows
serial printers to “download” VFC by placing the VFC escape sequence in an
initialization string instead of embedding them within the application.
The process of downloading VFC using Workstation Configurator is different
than when using an HPIB printer. Workstation Configurator has a utility that
allows modification to two different files that allow for, among other things,
setting initialization strings, flow control, and VFC. Workstation Configurator
has a terminal type file that is used for certain functions and a VFC file that is
used for setting the initialization strings and the VFC. These files are not in the
same format as the HPIB VFC file and must be created using Workstation
Configurator.
When using the VFC file created using Workstation Configurator, the user
must specify the terminal type file in the HP e3000 I/O Configuration, or by
referencing it with the ENV parameter of the FILE statement. The
DOWNLOAD command will NOT operate in this configuration.
If the ENV parameter of the FILE statement is used, the associated terminal
type file that has been configured with the printer will still be sent to the printer
first and the terminal type file that has been specified with the ENV parameter
will be sent NEXT. This does not create any problems, it just should be noted
when using a datascope or analyzing a spool file.
Carriage-Control Directives
69
Carriage-Control Directives
The HP e3000 software drivers allow users to embed the following carriage-
control directives in files:
ASCII SYMBOL CARRIAGE ACTION
“ ” Single space (with or without automatic page eject).
“+” No space, return (next printing at column 1).
“-” Triple space (without automatic page eject).
“0” Double space (without automatic page eject).
“1” Page eject (form feed). Selects VFC channel 1.
“C” Sets single-space option, without automatic page
eject (66 lines-per-page).
The carriage-control directive is placed in column 1 of the file and is executed
(but not printed) when the file is printed. When using this feature, all other
characters placed in column 1 will be ignored (not printed).
When using the carriage-control directives, the application must use carriage
control and [;CCTL] must be included in the file equation as shown in the
following example:
:file [filename];dev=[device number];cctl
Graphics
When using graphics, the line feed generated by the driver must be
suppressed or there will be 1/6” or 1/8” spacing between raster lines. One way
to do this is to add a “+” to the front of the file as carriage control (the file
equation must have “;CCTL.”)
Printing in the Perforation Skip Region
When using the HP e3000, an automatic page eject occurs when the
perforation skip region is entered. There are three ways to avoid a page eject
and allow printing in the perforation skip region:
Set the text length = logical page length = physical page length on the
front panel.
Use carriage control with a “C” in column 1 (the application must use
carriage control).
Set the carriage control to null (no CR-LF at end of line) and
programmatically add a CR-LF to the end of each record.
70
Chapter 2
HP 1000 Information
HP 1000 Information
The P8000 printer may be commanded in either transparent or feature access
mode. In the transparent mode, the printer prints (but does not execute) all
data including control codes and escape sequences. In the feature access
mode, the control codes and escape sequences are executed.
All configuration information is located in the DVC12 Graphics Printer Driver
Reference Manual (P/N 92068-90022). For HP 1000 A-Series information,
refer to the Driver Reference Manual (P/N 92077-90011) and the RTE-A
System Design Manual (P/N 92077-90013). To set transparent mode with the
DVC12 driver, the following command can be used where LU is the logical
unit address of the printer: --CN,LU,30B,20B
Downloading VFC
All information concerning downloading VFC files is contained in the DVC12
Graphics Printer Driver Reference Manual (P/N 92068-90022).
B-4 Carriage-Control Directives
The HP 1000 software drivers allow users to embed the following carriage-
control directives in files:
ASCII SYMBOL CARRIAGE ACTION
“ ” Single space (with or without automatic page eject).
“+” or “*” No space, return (next printing at column 1).
“-” Triple space (without automatic page eject).
“0” Double space (without automatic page eject).
“1” Page eject (form feed). Selects VFC channel 1.
The carriage-control directive is placed in column 1 of the file and is executed
(but not printed) when the file is printed. When using this feature, all other
characters placed in column 1 are ignored (not printed).
Perforation Skip Mode
To override the HP 1000 driver's automatic page eject, see the Control
Requests section of the DVC12 Graphics Printer Driver Reference Manual
(P/N 92068-90022).
71
3
P-Series Printer Emulation
Overview
This chapter describes the P-Series emulation host control codes.
“Emulation” refers to the ability of a printer to execute the commands of a
particular printer control language. A printer control language is the coding
system used to convey, manipulate, and print data. It contains character
codes and command sequences that configure the emulation. In this manual,
the terms emulation, printer protocol, and printer control language are
synonymous.
In the P-Series emulation mode, your printer can print files coded for the P-
Series printer control language. To select the P-Series emulation mode as the
active printer emulation, select LinePrinter+ from the EMULATION menu and
P-Series from the Printer Protocol menu, as described in the User's Manual.
The P-Series emulation provides many configurable parameters. The default
parameter values for this emulation are shown in Table 13. You can modify
the emulation parameter values in two ways:
The P-Series host control codes. An extensive set of P-Series control
code commands can be sent to the printer from an attached host
computer via the host data stream. Most of this chapter is devoted to
describing the P-Series control code commands.
The printer configuration menus. You can modify a subset of the P-
Series emulation parameters using the printer configuration menus,
control panel keys and LCD, as described in the User's Manual.
A parameter value set by a host control code generally overrides a value set
from the printer's control panel.
Note Configuration values selected from the menus or via host control codes
can be saved to the printer's NVRAM memory so that they will not be lost
when you power off the printer or reset it to the factory defaults. The menu
selection for saving a configuration to memory is described in the User's
Manual.
72
Chapter 3
Overview
P-Series Default Values and States
The factory settings for the P-Series emulation menu options are shown in
Table 13. Table 14 lists additional factory settings for parameters provided by
the LinePrinter+ formatting menus. (The EMULATION menu options are
described in the User's Manual). Host control codes can override many of the
settings for these menu options.
Table 13. P-Series Default Settings
Characteristic Default Setting
Control Code 06 8.0 LPI
Control Code 08 Elongated
Define CR Code CR = CR
Auto LF Disable
Overstrike Enable
Define LF Code LF = CR + LF
Select SFCC 1
EVFU Selected Enable
Alternate Set 80-9F Control Code
Character Set IBM PC
Primary Subset ASCII (USA)
Extended Subset Code Page 437
SFCC d Command Even Dot Plot
P-Series Default Values and States
73
Table 14. LinePrinter+ Menu Option Factory Settings
Characteristic Default Setting
CPI 10.0
LPI 6.0
Typeface Data Processing
Proportional Spacing Disable
Bold Print Disable
Italic Print Disable
Slashed Zero Disable
Left Margin 0 columns
Right Margin 0 columns
Bottom Margin 0 lines
Perforation Skip Disable
Form Length 11.0 inches
279.4 millimeters
66 lines
Form Width 13.6 inches
345.4 millimeters
136 characters
Reset Cmd CFG Ld Disable
74
Chapter 3
Configuring the P-Series Emulation with Control Codes
Configuring the P-Series Emulation with Control Codes
The remainder of this chapter describes the P-Series printer control language
codes that may be sent from a host computer attached to the printer, in order
to invoke and configure numerous P-Series emulation functions.
Format for Control Code Descriptions
The following information is listed for each code function (where applicable):
Name The title or function of the command.
ASCII Code The ASCII mnemonic for the command is shown. Command
sequences are in 7-bit (ASCII) form.
Hex Code The code or command sequence in hexadecimal numbers.
Dec Code The code or command sequence in decimal numbers.
Purpose The function(s) of the control code.
Discussion A discussion of the uses of the code or command sequence,
including exceptions or limitations to its use.
Example A sample is provided for some control codes when it is possible
to illustrate the effect of a control code, or if a specific syntax is
required to complete the program statement (i.e. Horizontal Tab
set, Vertical Tab set/clear).
Switching Between the Emulations
The printer supports several different emulations. PCL-II is the default. P-
Series, Proprinter III XL, and Epson FX-1050 are all a part of the LinePrinter
Plus emulation.
The following command switches from PCL-II to P-Series:
ESC%-00000X
To switch from P-Series to PCL-II, send the following command to the printer:
ESC|};KD
Note If you specify any parameters for a control code other than the ones that
are defined in the control code description, unpredictable results may
occur.
Special Function Control Code (SFCC) Header
75
Special Function Control Code (SFCC) Header
A Special Function Control Code (SFCC) is used to extend the control code
protocol. The SFCC is the control code introducer (or header); it is the first
input in the sequence of parameters. The general control code sequence is:
(SFCC)(parameter 1)(parameter 2)...(parameter n)
P-Series codes can be configured to use any value from 1 through 127 (hex
01 through hex 7F) as control code introducers. For example, bold print could
be configured to be enabled in the P-Series protocol using any of the control
code introducers listed in Table 15.
SFCC Command Line
Print format, print mode, or international language selection can be controlled
by a longer sequence known as a command line. Command lines are string
type commands placed between complete lines of text and affect the text
which follows. The protocol has six command lines: PMODE, OSET, PSET,
LPI, LINES, and INCHES. Each of these command lines is discussed in this
chapter under the appropriate Control Code function.
For example, the forms length (in inches) can be set using the following
command line:
SFCC INCHES; n.f
where: n is the whole number of inches, and f is the fractional increment
in 0.5 inch increments.
When using the SFCC in a command line, the SFCC must be the first non-
blank symbol in the line (space, hex 20, is a blank symbol). In addition,
characters following spaces (other than a valid line terminator) in a command
line are ignored so that user comments can be included on the command line.
The valid line terminators are Form Feed (FF), Line Feed (LF), and Carriage
Return (CR); however, when used in the command line, these line terminators
do not cause any paper motion. If a command line contains an error, the
command will not be executed.
Table 15. SFCC Example (Bold Print)
ASCII Hex Decimal
SOH G
ETX G
ESC G
^ G
~ G
01 47
03 47
1B 47
5E 47
7E 47
01 71
03 71
27 71
94 71
126 71
76
Chapter 3
Configuring the P-Series Emulation with Control Codes
Attribute Set and Reset Codes
Certain print attributes are set and reset (turned on or off) by using the
appropriate SFCC code sequence and the numbers 1 or 0. These may be
either the hexadecimal code 01 and 00, or the ASCII code for the printable
symbols of decimal 1 and 0 (hexadecimal code 31 and 30, respectively).
Expanded Print, Super/Subscript Print, and Underline are attributes that are
set/reset this way.
NUL Code
NUL (hex 00) is ignored by the printer and can be used as a fill character;
however, it can not be used to add blank spaces since it is not a space
character.
Print Modes Supported for Character Sets
All print modes are supported for all character sets; however, for the character
sets listed in Table 16, only the print modes listed are supported.
Note Hex 80 in the 0437 PC Character Set and hex 7F in the 0850 PC Character
Set are treated as a NUL; however, these two controls can not be used as
parameter terminators.
Table 16. Print Modes Supported
Character Set Mode Pitch
Barcode 10 cpi DP 10
Multinational DP 10 cpi DP 10
Multinational DP 12 cpi DP 12
Multinational NLQ 10 cpi NLQ 10
Greek DP 10 cpi DP 10
Greek DP 12 cpi DP 12
Greek NLQ 10 cpi NLQ 10
Graphic DP 10 cpi DP 10
Graphic NLQ 10 cpi NLQ 10
Scientific DP 10 cpi DP 10
Scientific DP 12 cpi DP 12
Scientific NLQ 10 cpi NLQ 10
OCR-A OCR-A 10
OCR-B OCR-B 10
The Control Codes
77
The Control Codes
This index lists each printer command by function, ASCII mnemonic, and the
page where the command is explained in detail. “N/A” means not applicable.
The rest of this chapter defines the control code functions for P-Series
Emulation mode. The commands are listed in alphabetical order.
FUNCTION ASCII CODE PAGE
Paper Motion
Form Feed FF 92
Line Feed LF 93
Reverse SFCC } ; n102
Vertical Tab VT 104
Page Format
Backspace BS 79
Carriage Return CR 81
Forms Length Set (Inches) SFCC INCHES; n.f 92
Forms Length Set (Lines) SFCC LINES; n93
Line Spacing 1/6 Inch (6 lpi) SFCC 2 94
SFCC LPI
Line Spacing 1/8 Inch (8 lpi) SFCC 0 94
SFCC LPI
Line Spacing 8 or 10.3 LPI ACK 95
(1 line only) SFCC f
Line Spacing 7/72 Inch SFCC 1 95
Line Spacing n/72 Inch SFCC A 96
Line Spacing n/216 Inch SFCC 3 97
VFU Commands N/A 104
Print Attributes
Bold Print SFCC G 80
Bold Print (1 line only) SFCC j 80
Bold Print Reset SFCC H 80
Elongated (Double High) Print,
One Line Only SFCC h 87
Elongated (Double High) Print,
Set/Reset SFCC w n88
Emphasized Print SFCC E 88
Emphasized Print Reset SFCC F 89
Expanded Print (Double Wide)
One Line Only SFCC k 90
Expanded Print (Double Wide) SFCC W n 90
Overscoring SFCC _ n97
Print Mode/Pitch Selection SFCC X m n 99
SFCC PMODE; n
SFCC [ n q
Note Some control code functions can be accomplished using another control
code sequence or via control panel selection.
78
Chapter 3
Configuring the P-Series Emulation with Control Codes
FUNCTION ASCII CODE PAGE
Print Attributes (continued)
Superscript/Subscript Printing SFCC S n103
Superscript/Subscript Printing
Reset SFCC T 103
Underline SFCC - n104
Graphics
Plot, Even Dot (High Density) EOT 98
SFCC d
Plot, Odd Dot (Normal Density) ENQ 98
SFCC e
Other Functions
Bell BEL 79
Character Set Select SFCC l xyz 82
Character Set Select:
ECMA Latin 1 Extended SFCC OSET; n 84
Character Set Select:
International Languages SFCC R n85
SFCC PSET; n
Characters 80-9F
(Control Codes) SFCC 7 86
Characters 80-9F
(Printable Symbols) SFCC 6 86
Emulation Reset SFCC @ 89
Extended Character Set SO 91
SFCC SO
SFCC n
SFCC 4
Extended Character Set Cancel SI 91
(Primary Set Select) SFCC SI
SFCC o
SFCC 5
Backspace
79
Backspace
ASCII Code BS
Hex Code 08
Dec Code 08
Purpose Moves the logical print head to the left one character space
toward the first character column.
Discussion When configured from the control panel for backspace, BS
moves the character position indicator (the logical print head
position) one character space to the left at the current character
pitch setting. The code is ignored if the logical print head is
positioned at the first character column.
Example If you were to print five “T” characters, then two BS commands,
then two “=” characters, the output would look like the sample
below:
Bell
ASCII Code BEL
Hex Code 07
Dec Code 07
Purpose Sounds the printer's buzzer/beeper.
Discussion The BEL function will sound the buzzer/beeper for 0.2 seconds
upon receipt of this command.
80
Chapter 3
Configuring the P-Series Emulation with Control Codes
Bold Print
ASCII Code SFCC G SFCC j
Hex Code SFCC 47 SFCC 6A
Dec Code SFCC 71 SFCC 106
Purpose Selects bold character printing.
Discussion When the bold character printing control code is received, all
characters are printed in bold until reset by the bold print reset
control code or printer reset. Bold Print is the same as
emphasized printing.
When SFCC j is used, bold printing is selected for one line only
and reset by the bold print reset control code, emulation reset, or
a paper motion command.
Example The following sample illustrates bold character printing.
Bold Print Reset
ASCII Code SFCC H
Hex Code SFCC 48
Dec Code SFCC 72
Purpose Resets bold character printing.
Discussion This control code resets the bold print character attribute. Other
print attributes such as double wide printing are not affected.
Example Refer to the Bold Print control code for a sample of bold
character print set and reset.
Carriage Return
81
Carriage Return
ASCII Code CR
Hex Code 0D
Dec Code 13
Purpose Returns the logical print head to the first character column
(resets the pointer to the first character position).
Discussion The CR code may or may not cause printing or paper motion,
depending on the Define CR Code value defined in the
configuration menus. If the Define CR Code submenu displays:
The characters following the CR are printed over the previous
characters on the line. If identical characters are placed in the
same position on the line, those characters will be printed in
emphasized print when the Overstrike mode is enabled from the
control panel.
The CR=CR configuration causes subsequent printable data to
overprint previous data at half speed if Overstrike is enabled
from the control panel (and prints somewhat faster if Overstrike
is disabled), unless an intervening paper motion command is
received.
If the Define CR Code submenu displays:
Control code CR is converted to perform a carriage return and
line feed function.
Define CR Code
CR = CR*
Define CR Code
CR = CR+LF*
82
Chapter 3
Configuring the P-Series Emulation with Control Codes
Character Set Select
ASCII Code SFCC l xyz (lowercase “L”)
Hex Code SFCC 6C xyz
Dec Code SFCC 108 xyz
Purpose Selects the character set, extended character set, and the
international language for a specific character set.
where x is the character set (Table 17);
y is the international language for the selected character set
(Table 18);
z is the extended character set for the selected character set
(Table 19);
Discussion An asterisk (*) (hex 2A) may be submitted for x, y, or z. If the
asterisk (*) is the value selected for x, the character set will not
change. If * is the value selected for y or z, the previously
selected international language and/or extended character set
for the selected character set will be used.
The character set, international language and extended
character set can also be selected from the printer control panel,
via the Character Set and Print Language options; however, the
control code setting will override the control panel selection.
Except for the asterisk value discussed above, values other than
those shown in the tables will result in the control sequence
being terminated.
Table 16 on page 76 provides detailed notes on print mode
support for each character set.
Table 17. Character Set Select (x)
xCharacter Set
0 (hex 30) IBM PC
1 (hex 31) Multinational
2 (hex 32) ECMA Latin 1
3 (hex 33) DEC Multinational
Character Set Select
83
Table 18. International Language Select (y)
yx = 0 (hex 30) x = 1 (hex 31) x = 2 (hex 32) x = 3 (hex 33)
IBM PC Multinational ECMA Latin 1 DEC Multinational
0 (hex 30) ASCII (USA) ASCII (USA) ASCII (USA) ASCII (USA)
1 (hex 31) French EBCDIC German French
2 (hex 32) German Swedish German
3 (hex 33) English (UK) Danish English (UK)
4 (hex 34) Danish Norwegian Norwegian/Danish
5 (hex 35) Swedish Finnish Swedish
6 (hex 36) Italian English (UK) Italian
7 (hex 37) Spanish Dutch Spanish
8 (hex 38) Japanese French Japanese
9 (hex 39) French Canadian Spanish French Canadian
10 (hex 3A) Latin American Italian Dutch
11 (hex 3B) Norwegian Turkish Finnish
12 (hex 3C) Danish-II Japanese Swiss
13 (hex 3D) Spanish-II
14 (hex 3E) Latin American-II
Table 19. International Language Select (z)
zx = 0 (hex 30) x = 1 (hex 31) x = 2 (hex 32) x = 3 (hex 33)
IBM PC Multinational ECMA Latin 1 DEC Multinational
0 (hex 30) IBM PC (0437) Mult. Extended Set Barcode 10 cpi DEC Mult. Ext. Set
1 (hex 31) IBM PC (0850) Mult. DP 10 cpi
2 (hex 32) Mult. DP 12 cpi
3 (hex 33) Mult. NLQ 10 cpi
4 (hex 34) Greek DP 10 cpi
5 (hex 35) Greek DP 12 cpi
6 (hex 36) Greek NLQ 10 cpi
7 (hex 37) Graphics DP 10 cpi
8 (hex 38) Graphics NLQ 10 cpi
9 (hex 39) Scientific DP 10 cpi
10 (hex 3A) Scientific DP 12 cpi
11 (hex 3B) Scientific NLQ 10 cpi
12 (hex 3C) Multinational (at Primary set mode and pitch)
84
Chapter 3
Configuring the P-Series Emulation with Control Codes
Character Set Select: ECMA Latin 1 Extended
ASCII Code SFCC OSET; n
Purpose Selects the print mode and pitch at which the extended
characters will print.
OSET is valid only when the ECMA Latin 1 character set has
been selected from the control panel. OSET will be ignored if the
IBM PC, Multinational, or DEC Multinational Character Sets are
active.
Discussion n ranges from 0 through 12 (hex 00 through 0B) to select the
print mode/pitch combinations available from Table 20. All other
values will result in an error message.
Extended characters will print at the print mode and pitch
selected by the OSET command, even if that mode and pitch
differs from the currently selected print mode and pitch. If the
print mode differs between the extended and primary characters,
the first character in the data stream selects the print mode at
which that line will print. Different pitches can be printed on the
same line.
Table 20. Print Modes/Pitches Available Using P-Series OSET (ECMA
Latin 1, Extended Character Set Only)
nPrint Mode/Pitch Select
0Barcode DP 10 cpi
1Multinational DP 10 cpi
2Multinational DP 12 cpi
3Multinational NLQ 10 cpi
4Greek DP 10 cpi
5Greek DP 12 cpi
6Greek NLQ 10 cpi
7Graphics DP 10 cpi
8Graphics NLQ 10 cpi
9Scientific DP 10 cpi
10 Scientific DP 12 cpi
11 Scientific NLQ 10 cpi
12 Multinational at Primary Character Set Mode and Pitch
Character Set Select: International Languages
85
Character Set Select: International Languages
ASCII Code SFCC PSET;nSFCC R n
Hex Code SFCC 52 n
Dec Code SFCC 82 n
Purpose Specifies the international language set identified by n in the
basic character set selected from the control panel (ECMA Latin
1, IBM PC, Multinational, and DEC Multinational).
where n specifies a language, as shown in Table 21.
Table 21. International Character Sets
nCharacter Set Selected
SFCC R
(hex) PSET ECMA Latin 1 IBM PC (0437 or
0850) Multinational DEC
Multinational
0 (30) 0ASCII (USA) ASCII (USA) ASCII (USA) ASCII (USA)
1 (31) 1German French EBCDIC French
2 (32) 2Swedish German German
3 (33) 3Danish English (UK) English (UK)
4 (34) 4Norwegian Danish Norw./Danish
5 (35) 5Finnish Swedish Swedish
6 (36) 6English (UK) Italian Italian
7 (37) 7Dutch Spanish Spanish
8 (38) 8French Japanese Japanese
9 (39) 9Spanish French Canadian French Canadian
0A (3A) 10 Italian Latin American Dutch
0B (3B) 11 Turkish Danish-II Finnish
0C (3C) 12 Japanese Spanish-II Swiss
0D (3D) 13 Latin American-II
0E (3E) 14
(currently undefined)
0F (3F) 15
10 (40) 16
11 (41) 17
12 (42) 18
13 (43) 19
14 (44) 20
15 (45) 21
86
Chapter 3
Configuring the P-Series Emulation with Control Codes
Discussion The international character set can also be selected from the
control panel via the Print Language option; however, the control
code setting will override the control panel character set
selection. Values other than those selectable from Table 21 will
be ignored.
Example The following example illustrates international character
selection using the IBM PC character set.
Characters 80-9F (Control Codes)
ASCII Code SFCC 7
Hex Code SFCC 37
Dec Code SFCC 55
Purpose Selects hex codes 80 through 9F in the character sets as control
codes. Cancels the command SFCC 6.
Discussion This control code overrides the control panel setting.
Characters 80-9F (Printable Symbols)
ASCII Code SFCC 6
Hex Code SFCC 36
Dec Code SFCC 54
Purpose Selects hex codes 80 through 9F in the character sets as
printable symbols. Cancels the command SFCC 7.
Discussion This control code overrides the control panel setting.
Elongated (Double High) Print, One Line Only
87
Elongated (Double High) Print, One Line Only
ASCII Code SFCC h BS
Hex Code SFCC 68 08
Dec Code SFCC 104 08
Purpose Selects elongated (double high) character printing for one line
only. Elongated characters are approximately double height but
standard width.
Discussion The elongated character control code is a line-by-line print
attribute; when the control code is received, one entire line of
elongated characters is printed and then automatically reset.
When configured for double high print, the P-Series control code
BS (Hex 08) also selects elongated character printing for a
single line.
When using this feature with relative line slewing, the paper will
be moved n + 1 lines rather than n lines. Refer to “Vertical Page
Formatting” on page 207 for more information on relative line
slewing. When using small line spacing and the lines overlap, an
unexpected print format may result.
Example The following sample illustrates elongated character printing.
88
Chapter 3
Configuring the P-Series Emulation with Control Codes
Elongated (Double High) Print, Set/Reset
ASCII Code SFCC w n
Hex Code SFCC 77 n
Dec Code SFCC 119 n
Purpose Turns double-high character printing on and off. Double-high
characters are standard width but twice as high.
where n = 1 or 49 (hex 01 or hex 31) turns double high printing on
n = 0 or 48 (hex 00 or hex 30) turns double high printing off
Discussion The OCR A and OCR B fonts cannot be printed in double high.
If Superscript/Subscript (SFCC S) is combined with Double High
printing, only Double High printing will occur.
Example The following illustrates double-high character printing.
Emphasized Print
ASCII Code SFCC E
Hex Code SFCC 45
Dec Code SFCC 69
Purpose Selects emphasized character print format.
Discussion When the emphasized print control code is received, all
characters will be printed in emphasized print until reset by the
emphasized print reset control code or printer reset. The
emphasized print attribute is implemented by horizontal
“shadow” printing.
Emphasized print is ignored during superscript or subscript
printing, and when 15-20 cpi characters have been selected.
Example The following sample illustrates emphasized character printing.
Note It is recommended to use double Line Feeds and Carriage Returns when
double-high character printing is on (after an SFCC w control code has
been sent), or else the printer will overstrike text that has already printed.
Emphasized Print Reset
89
Emphasized Print Reset
ASCII Code SFCC F
Hex Code SFCC 46
Dec Code SFCC 70
Purpose Resets emphasized character printing.
Discussion The emphasized print reset control code only resets the
emphasized print character attribute.
Example See the Emphasized Print control code example for an example
of Emphasized Print Reset.
Emulation Reset
ASCII Code SFCC @
Hex Code SFCC 40
Dec Code SFCC 64
Purpose Initializes all print mode related parameters to their factory
default or power-up configuration values.
Discussion Print mode, line spacing, international language selection,
margins, form length, skip-over perforation, and character pitch
are reset to their selected power-up configuration values.
Character-by-character and line-by-line attributes are canceled.
The vertical format unit is cleared. The current line is set to the
top-of-form position. Interface parameters and printer protocol
selection are not affected.
If the menu option “Reset Cmd CFG Ld” is disabled, the factory
default configuration is loaded. If it is enabled, the power-up
configuration is used. The default is the factory default.
90
Chapter 3
Configuring the P-Series Emulation with Control Codes
Expanded Print (Double Wide), One Line Only
ASCII Code SFCC k
Hex Code SFCC 6B
Dec Code SFCC 107
Purpose Selects expanded (double wide) print for one line only.
Discussion This expanded print control code is a line-by-line print attribute;
when the SFCC k control code is received, the current line is
printed double wide and then automatically reset.
This control code can be reset by a paper motion control code
(LF, VT, CR, etc.), SFCC @ (printer reset), CAN or SFCC W
(double wide print).
Example The following sample illustrates Expanded Print for one line only.
Another example of expanded printing is shown for Expanded
(Double Wide) Print, SFCC W on page 90.
Expanded Print (Double Wide), Set/Reset
ASCII Code SFCC W n
Hex Code SFCC 57 n
Dec Code SFCC 87 n
Purpose Selects or resets expanded (double wide) print.
where n = SOH (hex 01) or 1 (hex 31) selects expanded print.
n = NUL (hex 00) or 0 (hex 30) resets expanded print.
Discussion When expanded print using SFCC W is received, all characters
will be printed double wide until reset by the expanded print reset
control code or a printer reset.
Example The following sample illustrates expanded character printing and
expanded character printing reset.
Extended Character Set
91
Extended Character Set
ASCII Code SO SFCC SO SFCC n SFCC 4
Hex Code 0E SFCC 0E SFCC 6E SFCC 34
Dec Code 14 SFCC 14 SFCC 110 SFCC 52
Purpose Accesses the extended character set in the range hex A0
through FF using codes 32 through 127 (hex 20 through 7F).
Discussion Used in 7-bit systems as if data bit 8 was set to 1. For example,
sending code hex 20 accesses the symbol at code point hex A0.
If a printable symbol is not available at the code point, a space is
printed.
SFCC 4 is not cancelled by the next paper motion command;
SO, SFCC SO, and SFCC n are cancelled by paper motion.
Example The following sample illustrates the Extended Character Set and
Extended Character Set Cancel (see page 91) control codes.
Extended Character Set Cancel (Primary Set Select)
ASCII Code SI SFCC SI SFCC o SFCC 5
Hex Code 0F SFCC 0F SFCC 6F SFCC 35
Dec Code 15 SFCC 15 SFCC 111 SFCC 53
Purpose Cancels Extended Character Set as selected by SO, SFCC SO,
SFCC n, and SFCC 4, and selects the Primary Character Set.
Discussion Used in 7-bit systems. If data bit 8 is disabled, this control code
selects the range as if data bit 8 is set to 0, and data is printed as
characters from 32 through 127 (hex 20 through 7F).
Example Refer to the Extended Character Set example on page 91.
92
Chapter 3
Configuring the P-Series Emulation with Control Codes
Form Feed
ASCII Code FF
Hex Code 0C
Dec Code 12
Purpose Prints the data in the buffer, advances the paper position to the
next top-of-form and moves the character position to the first
character column.
Discussion The default forms length is determined by the printer
configuration. Forms length is set by using the control panel or
forms length control codes. Code FF cancels all single-line only
print attributes.
The default form length is 11 inches. The Form Feed command
will react differently when the VFU is active. Refer to Chapter 7.
Forms Length Set (Inches)
ASCII Code SFCC INCHES; n.f
Purpose Sets the length of forms (paper) in inches.
where n = 1 through 24 (hex 01 through 18) specify the number of
inches on a page.
f = fractional number in .5-inch increments (minimum forms
length is .5 inches).
Discussion Upon receipt of this code, the current line becomes the first line
of the form, and the fo