Printronix SL5000 Series, T5000 Series Programmer's Reference Manual

LinePrinter Plus® Emulation for SL5000/T5000 series Printers Programmer’s Reference Manual
LinePrinter Plus® Emulation for SL5000/T5000 series Printers 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 © 1999, 2006, PRINTRONIX, INC.
All rights reserved.
Trademark Acknowledgements
ANSI is a registered trademark of American National Standards Institute, Inc. AS/400, IBM, and Proprinter are registered trademarks of International
Business Machines Corporation. Bull is a registered trademark of Bull Information Systems S.A. Data General is a registered trademark of Data General Corporation. Dataproducts is a registered trademark of Dataproducts Corp. DEC is a registered trademark of Digital Equipment Corporation. Epson is a registered trademark of Seiko Epson Corporation. HP and LaserJet are registered trademarks of Hewlett-Packard Company. LinePrinter Plus, PGL, ThermaLine and Printronix are registered trademarks,
of Printronix, Inc. NCR is a registered trademark of NCR Corporation. Okidata is a registered trademark of OKI America, Inc. Siemens is a registered trademark of Siemens Corporation. Unisys is a registered trademark of Unisys Corporation. UPS is a registered trademark of United Parcel Service of America, Inc. 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 Overview............................................................... 17
Introduction .............................................................................................17
About This Manual ...........................................................................17
Software Features ............................................................................18
Printer Configuration ........................................................................ 19
2 P-Series Printer Protocol ...................................... 21
Introduction .............................................................................................21
P-Series Default Values and States.................................................22
Configuring the P-Series Emulation with Control Codes ........................24
Format for Control Code Descriptions..............................................24
Special Function Control Code-Control Code Header ..................... 24
Command Line ................................................................................. 25
Attribute Set and Reset Codes.........................................................26
Control Code Reference Index.........................................................26
Backspace........................................................................................28
Bell ...................................................................................................28
Bold Print..........................................................................................29
Bold Print Reset ...............................................................................29
Carriage Return................................................................................30
Character Set Select ........................................................................31
Characters 80-9F (Control Codes)...................................................33
Characters 80-9F (Printable Symbols).............................................33
Character Set Select: ECMA-94 Latin 1 Extended........................... 34
Character Set Select: International Languages................................35
Download A Character Set Overlay ................................................. 36
Elongated (Double High) Print (One Line Only) ...............................39
Elongated (Double High) Print, Set/Reset........................................40
Emphasized Print .............................................................................41
Emphasized Print Reset...................................................................41
Emulation Reset ............................................................................... 42
Expanded (Double Wide) Print.........................................................42
Expanded (Double Wide) Print (One Line Only) ..............................43
Extended Character Set...................................................................43
Extended Character Set Cancel (Primary Character Set Select).....44
Form Feed........................................................................................45
Table of Contents
Forms Length Set (Inches)...............................................................45
Forms Length Set (Lines).................................................................46
Form Margins, Set............................................................................46
Line Feed ......................................................................................... 47
Line Spacing 1/6 Inch (6 lpi).............................................................48
Line Spacing 1/8 Inch (8 lpi).............................................................49
Line Spacing 8 or 10.3 lpi (One Line Only) ...................................... 49
Line Spacing 7/72 Inch.....................................................................50
Line Spacing n/72 Inch.....................................................................51
Line Spacing n/216 Inch...................................................................52
Overscoring...................................................................................... 52
Plot, Even Dot (P-Series High Density Graphics) ............................53
Plot, Odd Dot (P-Series Normal Density Graphics) .........................53
Print Mode/Pitch Selection ............................................................... 54
Superscript/Subscript Printing..........................................................57
Superscript/Subscript Printing Reset ............................................... 57
Super-Set Commands......................................................................58
Underline.......................................................................................... 58
VFU Commands (P-Series) ............................................................. 59
Vertical Tab ......................................................................................59
3 P-Series XQ Printer Protocol ................................ 61
Introduction .............................................................................................61
P-Series XQ Default Values and States...........................................62
Configuring the XQ Emulation with Control Codes................................. 64
Format for Control Code Descriptions..............................................64
Edit Mode ......................................................................................... 64
NUL Code ........................................................................................65
Control Code Index .......................................................................... 65
Alternate Character Set Deselect (Shift In) ......................................66
Alternate Character Set Select (Shift Out) ....................................... 67
Carriage Return................................................................................67
Compressed Print ............................................................................68
Delete...............................................................................................69
Electronic Vertical Format Unit (EVFU)............................................69
Elongated Characters (Double High Print) ....................................... 70
Form Feed........................................................................................70
Line Feed ......................................................................................... 71
Line Spacing (8 or 10.3 lpi) .............................................................. 71
Plot, Even Dot (P-Series XQ High Density Graphics) ...................... 72
Plot, Odd Dot (P-Series XQ Normal Density Graphics .................... 73
Select Letter Gothic (DP) .................................................................73
Table of Contents
Space ...............................................................................................74
Underline..........................................................................................74
Vertical Tab ......................................................................................75
4 Serial Matrix Printer Protocol................................ 77
Introduction .............................................................................................77
Serial Matrix Default Values and States...........................................78
Configuring the Serial Matrix Emulation with Control Codes .................. 80
Format for Control Code Descriptions..............................................80
Escape Control Code Header .......................................................... 80
Attribute Set and Reset Codes.........................................................80
Control Code Index .......................................................................... 81
Backspace........................................................................................83
Bell ...................................................................................................83
Bit Image Mode, Single Density .......................................................84
Bit Image Mode, Double Density......................................................84
Bit Image Mode, Double Density Double Speed .............................. 85
Bit Image Mode, Quadruple Density ................................................86
Bold Print Set ...................................................................................86
Bold Print Reset ...............................................................................87
Cancel ..............................................................................................87
Carriage Return................................................................................88
Character Pitch 10 cpi ...................................................................... 88
Character Pitch 12 cpi ...................................................................... 89
Character Set Select ........................................................................89
Characters 80-9F (Control Codes)...................................................91
Characters 80-9F (Printable Symbols).............................................91
Characters 80-9F (Printable Symbols).............................................92
Character Set Select: International Languages................................92
Condensed Print ..............................................................................94
Condensed Print Reset ....................................................................94
Delete...............................................................................................94
Elongated (Double High) Print (One Line Only) ...............................95
Elongated (Double High) Print, Set/Reset........................................96
Emphasized Print .............................................................................96
Emphasized Print Reset...................................................................97
Emulation Reset ............................................................................... 97
Expanded (Double Wide) Print.........................................................98
Expanded (Double Wide) Print (One Line Only) ..............................98
Extended Character Set...................................................................99
Extended Character Set Cancel (Primary Character Set Select)...100
Form Feed......................................................................................100
Table of Contents
Forms Length Set (Inches).............................................................100
Forms Length Set (Lines)...............................................................101
Form Margins, Set..........................................................................102
Horizontal Tab................................................................................102
Horizontal Tab Set .........................................................................103
Line Feed ....................................................................................... 103
Line Feed n/216 Inch (One Line Only) ...........................................104
Line Spacing 1/6 Inch.....................................................................105
Line Spacing 1/8 Inch (8 lpi)...........................................................105
Line Spacing 7/72 Inch...................................................................106
Line Spacing n/72 Inch...................................................................106
Line Spacing n/216 Inch.................................................................107
Overscoring.................................................................................... 108
Print Mode/Pitch Selection ............................................................. 108
Printer Deselect..............................................................................112
Printer Select..................................................................................112
Skip-Over Perforation.....................................................................112
Skip-Over Perforation Cancel ........................................................113
Superscript/Subscript Printing........................................................113
Superscript/Subscript Printing Reset ............................................. 114
Super-Set Commands....................................................................114
Underline........................................................................................ 114
Vertical Tab ....................................................................................115
Vertical Tab, Set/Clear ...................................................................116
5 IBM Proprinter III XL Printer Protocol ................. 117
Introduction ...........................................................................................117
Proprinter III XL Emulation Default Settings...................................118
Configuring the Proprinter III XL Emulation with Control Codes...........120
Escape Control Code Header ........................................................ 120
Attribute Set and Reset Codes.......................................................120
Control Code Index ........................................................................ 121
Backspace......................................................................................123
Bell ................................................................................................. 123
Bit Image Mode, Single Density .....................................................124
Bit Image Mode, Double Density....................................................124
Bit Image Mode, Double Density Double Speed ............................ 125
Bit Image Mode, Quadruple Density .............................................. 125
Bold Print Set .................................................................................126
Bold Print Cancel ...........................................................................126
Bottom Margin, Set ........................................................................ 127
Bottom Margin Cancel....................................................................127
Table of Contents
Cancel ............................................................................................128
Carriage Return..............................................................................128
Carriage Return, Set ...................................................................... 129
Character Pitch 12 cpi .................................................................... 129
Characters 80-9F (Control Codes).................................................129
Characters 80-9F (Printable Symbols)...........................................129
Condensed Print ............................................................................130
Condensed Print Reset ..................................................................130
Deselect Printer..............................................................................131
Emphasized Print ...........................................................................131
Emphasized Print Reset.................................................................131
Expanded (Double Wide) Print.......................................................132
Expanded (Double Wide) Print (One Line Only) ............................133
Expanded (Double Wide) Print Reset (1 Line) ...............................133
Form Feed......................................................................................134
Forms Length Set (Inches).............................................................134
Forms Length Set (Lines)...............................................................135
Horizontal Tab ................................................................................ 135
Horizontal Tab Set/Reset ...............................................................136
Horizontal/Vertical Tabs Clear........................................................136
Initialize Parameters.......................................................................137
Line Feed ....................................................................................... 139
Line Feed n/216 Inch (One Line Only) ...........................................140
Line Spacing 1/6 Inch (6 lpi)...........................................................141
Line Spacing 1/8 Inch (8 lpi)...........................................................141
Line Spacing 7/72 Inch (10.3 lpi)....................................................142
Line Spacing n/72 Inch...................................................................143
Line Spacing n/216 Inch.................................................................144
Margins, Left/Right, Set..................................................................144
Overscoring....................................................................................145
Print Control Codes ........................................................................ 145
Print One Control Code .................................................................. 145
Select Attributes .............................................................................146
Select Font (Print Mode) ................................................................ 148
Select Proportional Spacing...........................................................148
Superscript/Subscript Printing........................................................149
Superscript/Subscript Printing Reset.............................................. 149
Super-Set Commands....................................................................150
Top-of-Form ................................................................................... 150
Underline........................................................................................150
Unidirectional Printing ....................................................................151
Table of Contents
Vertical Tab ....................................................................................151
Vertical Tab Set/Clear ....................................................................152
6 Epson FX-1050 Printer Protocol ......................... 153
Introduction ...........................................................................................153
Epson FX-1050 Default Values and States....................................154
Epson Emulation Exceptions and Differences ............................... 156
Epson Character Sets ....................................................................157
Configuring the Epson FX-1050 Emulation with Control Codes ........... 158
Format for Control Code Descriptions............................................158
Escape Sequences ........................................................................ 158
Set and Reset Codes .....................................................................159
NUL Code ......................................................................................159
Print Modes Supported for Character Sets .................................... 160
Control Code Index ........................................................................ 161
Backspace......................................................................................164
Bell ................................................................................................. 164
Cancel Line .................................................................................... 165
Carriage Return..............................................................................165
Character Pitch 10 cpi .................................................................... 165
Character Pitch 12 cpi .................................................................... 165
Character Pitch 15 cpi .................................................................... 166
Character Set Select: International Languages .............................166
Clear Bit 7 of Incoming Data Bytes to 0 ......................................... 168
Condensed Print ............................................................................168
Condensed Print Reset .................................................................. 169
Cut-Sheet / Paper Feed Control.....................................................169
Define a Download Character ........................................................169
Delete Character ............................................................................169
Double High Print, Set/Reset ......................................................... 170
Double Strike..................................................................................171
Double Strike, Cancel ....................................................................171
Double Wide Print ..........................................................................172
Double Wide Print (1 Line) ............................................................. 173
Double Wide Print (1 Line), Cancel................................................173
Emphasized Print ........................................................................... 174
Emphasized Print, Cancel..............................................................174
Enable Printing Hex Codes 00-1F and 80-9F ................................ 175
Form Feed......................................................................................177
Graphics, Standard Density ........................................................... 177
Graphics, Double Density .............................................................. 178
Graphics, Double Density Double Speed.......................................179
Table of Contents
Graphics, Quadruple Density .........................................................180
Half Speed Mode, On/Off ............................................................... 180
Horizontal Tab Execute .................................................................. 181
Horizontal Tab Set/Release ........................................................... 181
Initialize Printer...............................................................................182
Italic Printing...................................................................................182
Italic Printing, Cancel .....................................................................182
Line Feed ....................................................................................... 183
Line Feed n/216 Inch .....................................................................183
Line Spacing 1/6 Inch (6 lpi)...........................................................184
Line Spacing 1/8 Inch (8 lpi)...........................................................184
Line Spacing 7/72 Inch...................................................................185
Line Spacing n/72 Inch...................................................................185
Line Spacing n/216 Inch.................................................................186
Make Hex 80-9F Control Codes.....................................................187
Make Hex 80-9F Printable..............................................................187
Master Print Select ......................................................................... 189
Paper Out Detection, Enable .........................................................190
Paper Out Detection, Disable.........................................................190
Pass Bit 7 from Host ......................................................................190
Printer Deselect..............................................................................191
Printer Select..................................................................................191
Reassign Graphics Mode...............................................................191
Remove Downloaded Characters .................................................. 192
Select Graphics Mode....................................................................192
Select Italic Character Set..............................................................193
Select 9-Pin Graphics Mode........................................................... 193
Select Print Quality.........................................................................194
Select/Deselect Proportional Spacing ............................................194
Select Serif or Sans Serif Font.......................................................194
Select User-Defined Font...............................................................195
Select Vertical Tab Channel...........................................................195
Set Absolute Horizontal Print Position in 1/60 Inch........................195
Set Bit 7 of Incoming Data Bytes to 1 ............................................196
Set Intercharacter Spacing in n/120 Inch .......................................196
Set Margin, Left ..............................................................................196
Set Margin, Right ........................................................................... 197
Set Forms Length by Lines ............................................................ 197
Set Forms Length in Inches ........................................................... 198
Set Relative Horizontal Print Position in n/120 Inch.......................198
Set Vertical Tabs in Channels........................................................199
Skip Over Perforation.....................................................................199
Table of Contents
Skip Over Perforation, Cancel........................................................200
Super-Set Commands....................................................................200
Superscript and Subscript Printing.................................................201
Superscript and Subscript Printing, Cancel....................................201
Underline........................................................................................ 202
Unidirectional Printing, 1 Line ........................................................ 202
Unidirectional Printing, Set/Reset .................................................. 202
Vertical Tab, Execute .....................................................................203
Vertical Tab, Set/Clear ...................................................................203
7 Super-Set Programming ..................................... 205
Introduction ...........................................................................................205
The Super-Set Commands ...................................................................205
Character Set Selection .................................................................206
Character Set Selection (UTF8) – T5000r Only .............................209
Character Spacing n/240 Inch........................................................209
Font Selection ................................................................................209
Font Size ........................................................................................211
TrueType Font Selection ................................................................212
Form Length and Width..................................................................212
Host Form Size ..............................................................................213
Horizontal Movements in Printer Resolution ..................................214
PCX Data ....................................................................................... 214
Line Spacing n/288 Inch.................................................................214
Page Orientation Select .................................................................215
Print Engine Options ...................................................................... 217
Printer Protocol Select ................................................................... 225
Software Page Eject....................................................................... 225
Bar Codes.............................................................................................226
Bar Code Format............................................................................ 227
Australian 4-State...........................................................................232
Codabar .........................................................................................234
Code 39..........................................................................................236
Code 93..........................................................................................238
Code 128........................................................................................240
EAN 8.............................................................................................245
EAN 13........................................................................................... 246
FIM .................................................................................................247
Interleaved 2/5 (I-2/5) and German I-2/5........................................249
Maxicode........................................................................................250
MSI................................................................................................. 252
PDF 417 .........................................................................................253
Table of Contents
PostBar and Royal Mail..................................................................254
POSTNET ...................................................................................... 255
Telepen .......................................................................................... 256
UCC/EAN-128................................................................................ 258
UPC-A ............................................................................................263
UPC-E ............................................................................................265
UPC Shipping.................................................................................268
UPS 11...........................................................................................269
8 Graphics ............................................................. 271
Introduction ...........................................................................................271
Bit Image Graphics ...............................................................................272
Plotting a Bit Image Pattern ...........................................................273
Bit Image Density ...........................................................................275
Bit Image Programming Format ..................................................... 276
P-Series Compatible Plot Mode (Odd/Even Dot Plotting).....................278
Plot Density .................................................................................... 278
Plot Data Byte Format .................................................................... 279
Plot Data Line Format .................................................................... 280
Plotting the Data.............................................................................282
To Exit the P-Series Plot Mode ......................................................283
Combining Graphics and Text ..............................................................283
9 Vertical Page Formatting .................................... 285
Introduction ...........................................................................................285
General P-Series EVFU Programming Information ..............................285
VFU Load/Save/Clear ....................................................................286
P-Series EVFU .....................................................................................287
Start Load Code-Hex 1E or 6E ......................................................287
Channel Assignment ......................................................................287
End Load Code-Hex 1F or 6F ........................................................288
Using the EVFU .............................................................................288
Clearing the EVFU Memory ...........................................................290
Relative Line Slewing ..................................................................... 291
Serial Matrix VFU..................................................................................292
Executing Vertical Tabs ................................................................. 293
Vertical Tab Positions ....................................................................293
Table of Contents
A Standard ASCII Character Set ........................... 295
B PTR_SETUP Option........................................... 297
Overview............................................................................................... 297
The PTR_SETUP Commands .............................................................. 297
Commands..................................................................................... 298
C Character Library ............................................... 305
D P-Series Plot Byte Definition .............................. 311
E Glossary ............................................................. 313
F Contact Information ............................................ 323
Printronix Customer Support Center.....................................................323
Printronix Supplies Department ............................................................323
Corporate Offices.................................................................................. 324
17
1 Overview
Introduction
The Printronix® LinePrinter Plus® (LP+) Emulation is a software application on two diskettes capable of emulating five different impact printer protocols:
Printronix
®
P-Series P3000/6000/9000, hereafter called P-Series
Printronix P-Series XQ P300/600, hereafter called P-Series XQ
Printronix Serial Matrix
IBM
®
Proprinter® III XL, hereafter called Proprinter XL
Epson
®
FX-1050
The software is designed to be compatible with a variety of paper sizes as well as different print engine dots-per-inch ratios.
About This Manual
This manual is designed so you can quickly find the information you need to use your LinePrinter Plus Emulation software.
Warnings and Special Information
Read and comply with all information highlighted under special headings:
WARNING
WARNING tells you about conditions that could cause you physical harm.
CAUTION
CAUTION tells you about conditions that could damage the printer or related equipment.
IMPORTANT
IMPORTANT gives you information vital to proper operation. NOTE: Information affecting printer operation considered important enough
to emphasize.
Glossary
The Glossary defines computer terms and acronyms used in this manual. It is located just before the Index.
18
Chapter 1 Introduction
Software Features
The LinePrinter Plus Emulation software provides the following features:
Printer Protocols:
Printronix P-Series Printronix P-Series XQ Printronix Serial Matrix IBM Proprinter III XL Epson FX-1050
Page Orientations:
Portrait/Inverted Portrait Landscape/Inverted Landscape
Graphics:
Bit Image Graphics P-Series Compatible Plot Mode
Vertical Page Formatting:
Printronix P-Series Electronic Vertical Format Unit (EVFU) Serial Matrix Vertical Formatting Unit (VFU)
Character Sets:
IBM PC ECMA-94 Latin 1 Multinational DEC
®
Multinational
IBM Code Page 437 and 850
as well as the international symbol sets in the following categories:
Arabic Sets Cyrillic Sets European Sets Greek Sets Hebrew Sets Turkish Sets
Font Typefaces:
Courier Letter Gothic OCR-A OCR-B CG Triumverate
®
Bold Condensed
Ability to download True Type.
Printer Configuration
19
Print Attributes:
Emphasized/Bold print Scalable font sizes Superscript/subscript print Automatic underline and overscore Carriage return editing Variable point size Italics
Barcode Printing
NOTE: Complete listings of all the choices from these categories are printed
in the menu descriptions, as well as in the description of the Super­Set “Character Set Selection” (SSCC R) command (see page 206).
Printer Configuration
Matching certain printer operational settings to those of the host computer is known as
printer configuration. The settings, or configuration parameters, are
adjusted according to the printer function key descriptions in your printer
User's Manual
. You can select LinePrinter Plus Emulation configuration options directly from the printer control panel or by the software commands described in Chapters 2 through 7 of this manual.
Your
User's Manual
also contains detailed configuration menus and diagrams, as well as descriptions of each configuration parameter available with your printer.
NOTE: You must also enter and exit the LinePrinter Plus Emulation
configuration menu according to your printer
User's Manual
configuration procedures. Pressing an invalid key to enter a parameter value may move you to another level in the configuration or exit the configuration menu completely.
20
Chapter 1 Introduction
21
2 P-Series Printer Protocol
Introduction
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 ASCII Emulation 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 1. 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.
To save the configuration using host
control codes, refer to Appendix B, “PTR_SETUP Option”.
22
Chapter 2 Introduction
P-Series Default Values and States
The factory settings for the P-Series emulation menu options are shown in Table 1. Table 1 also lists additional factory settings for parameters provided by the ASCII Emulation 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 1. P-Series Default Settings
Characteristic Default Setting
Select CPI 10.0 CPI
Select LPI 6.0 LPI
Typeface Letter Gothic
Character Group Standard Sets
Character Set IBM PC
Primary Subset ASCII (USA)
Extended Subset Code Page 437
Horizontal DPI 120 DPI
Vertical DPI 72 DPI
Prop. Spacing Enable
Italic Print Disable
Slashed Zero Disable
Left Margin 0 characters
Right Margin 0 characters
Top Margin 0 linespaces
Bottom Margin 0 linespaces
Print Char. Set
Define CR code CR = CR
Auto LF Disable
Define LF code LF = CR + LF
*Advanced User:
Control Code 06 8.0 LPI
Control Code 08 Elongated
Bold Disable
P-Series Default Values and States
23
* Advanced User must be enabled under the Printer Control Menu in order for the Advanced User parameters to be visible and changeable.
Overstrike Enable
Select SFCC 1
EVFU Select Enable
Alt. Set 80-9F Control Code
SFCC d command Even dot plot
PSeries Dbl High Normal
FF valid at TOF Enable
Text Position Bottom of Line
Host Command Enable
Reset Cmd CFG Ld Disable
Form Length 06.0 inches
Form Length 152.4 mm
Form Length 36 lines
Form Width 08.5 inches
Form Width 216.0 mm
Form Width 85 characters
Table 1. P-Series Default Settings
Characteristic Default Setting
24
Chapter 2 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. Comment 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).
IMPORTANT
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-Control Code 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 use any value from 1 through 255 (hex 01 through hex FF) as control code introducers. For example, bold print can be enabled in the P-Series protocol using any of the following control code introducers:
ASCII: SOH G Hex: 01 47 Dec: 1 71
ETX G 03 47 3 71 ESC G 1B 47 27 71 ^ G 5E 47 94 71 ~ G 7E 47 126 71
NOTE: The SFCC has been set to ESC for all examples.
Command Line
25
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 form 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 is not executed, and the line truncates to include any of the error messages listed in the following table:
Table 2. Command Line Error Messages
Error Message Explanation
Invalid Parameter The command received cannot be
interpreted correctly, or the correct command is not followed by an expected delimiter.
Parameter Out of Bounds A decimal parameter in the command is out
of range.
Missing Parameter One or more necessary parameters is
missing from the command.
Illegal Character in Decimal Parameter
A decimal parameter contains a non-numeric character, or a fractional digit is out of range.
Too Many Digits in Decimal Parameter
A decimal parameter contains too many digits.
26
Chapter 2 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, Superscript/Subscript Print, and Underline are attributes that are set and reset this way.
Control Code Reference Index
This index lists each printer command by function, ASCII mnemonic, and the page where the command is explained in detail. The rest of this chapter defines the control code functions for P-Series Emulation mode. The commands are listed in alphabetical order.
NOTE: Some control code functions can be accomplished using another
control code sequence or via control panel selection.
FUNCTION ASCII CODE PAGE
Paper Motion
Form Feed FF 45 Line Feed LF 47 Vertical Tab VT 59
Page Format
Backspace BS 28 Carriage Return CR 30 Forms Length Set (Inches) SFCC INCHES;
n.f
45
Forms Length Set (Lines) SFCC LINES;
n
46 Form Margins, Set SFCC v 46 Line Spacing 1/6 Inch (6 lpi) SFCC 2 48
SFCC LPI;
n
Line Spacing 1/8 Inch (8 lpi) SFCC 0 49
SFCC LPI;
n
Line Spacing 8 or 10.3 lpi (1 line only) ACK 49
SFCC f Line Spacing 7/72 Inch SFCC 1 50 Line Spacing
n
/72 Inch SFCC A 51
Line Spacing
n
/216 Inch SFCC 3 52
VFU Commands DLE through US 59
Control Code Reference Index
27
Print Attributes
Bold Print SFCC G 29 Bold Print (1 line only) SFCC j 29 Bold Print Reset SFCC H 29 Elongated (Double High) Print (1 line) SFCC h 39
BS
Elongated (Double High) Print, Set/Reset SFCC w
n
40 Emphasized Print SFCC E 41 Emphasized Print Reset SFCC F 41 Expanded (Double Wide) Print SFCC W
n
42 Expanded (Double Wide) Print (1 line) SFCC k 43 Overscoring SFCC _
n
52 Print Mode/Pitch Selection SFCC X
m n
54
SFCC PMODE;
n
SFCC [ n q
FUNCTION ASCII CODE PAGE
Print Attributes (continued)
Superscript/Subscript Printing SFCC S
n
57 Superscript/Subscript Printing Reset SFCC T 57 Underline SFCC – 58
Graphics
Plot, Even Dot (High Density) EOT 53
SFCC d
Plot, Odd Dot (Normal Density) ENQ 53
SFCC e
Other Functions
Bell BEL 28 Character Set Select SFCC l
xyz
31 Characters 80-9F (Control Codes) SFCC 7 33 Characters 80-9F (Printable Symbols) SFCC 6 33 Character Set Select: ECMA Extended SFCC OSET;
n
34 Character Set Select: International SFCC R
n
35 Languages SFCC PSET;
n
Emulation Reset SFCC @ 42 Extended Character Set SO 43
SFCC SO SFCC n
SFCC 4 Extended Character Set Cancel SI 44 (Primary Set Select) SFCC SI
SFCC o
SFCC 5 Super-Set Commands SFCC |}; 58 Downloading a Character Set Overlay SFCC V 36
28
Chapter 2 Configuring the P-Series Emulation with Control Codes
Backspace
ASCII Code BS Hex Code 08 Dec Code 8 Purpose Moves the logical print head to the left one character space
toward the first character column.
Comment When configured from the front 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 7 Purpose Sounds the printer's buzzer/beeper. Comment The BEL function sounds the buzzer/beeper for 0.2 seconds
upon receipt of this command.
Bold Print
29
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. Comment 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 printing double strike on an impact printer.
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. Comment The bold print reset control code only resets the bold print
character attribute. Other print attributes such as double wide printing are not affected.
Example See the Bold Print control code (above) for a sample of bold
character print set and reset.
30
Chapter 2 Configuring the P-Series Emulation with Control Codes
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).
Comment The CR code may or may not cause printing or paper motion,
depending on the DEFINE CR CODE configuration parameter value. If the DEFINE CR CODE submenu displays:
the characters following the CR are printed over the previous characters on the line.
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*
Character Set Select
31
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 3);
y
is the international language for the selected character set
(Table 4);
z
is the extended character set for the selected character set
(Table 5);
Table 3. Character Set Select (
x
)
x
Character Set
0 (hex 30) IBM PC
1 (hex 31) Multinational
2 (hex 32) ECMA Latin 1
3 (hex 33) DEC Multinational
Table 4. International Language Select (y)
y
x
= 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
32
Chapter 2 Configuring the P-Series Emulation with Control Codes
Comment An asterisk character (*) (hex 2A) may be substituted for the
numeric values of
x, y
, or z. If the asterisk (*) is the value
selected for
x
, the character set does 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 is used.
The character set, international language and extended character set can also be selected from the printer control panel. The control code settings override the control panel selection. Except for the asterisk value discussed above, values other than those shown in the tables result in the control sequence being terminated.
12 (hex 3C) Danish II Japanese Swiss 13 (hex 3D) Spanish II 14 (hex 3E) Latin Am II
Table 4. International Language Select (
y
)
y
x
= 0 (hex 30)
x
= 1 (hex 31)
x
= 2 (hex 32)
x
= 3 (hex 33)
IBM PC Multinational ECMA Latin 1 DEC Multinational
Table 5. Extended Character Set Select (z)
z
x
= 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)
Characters 80-9F (Control Codes)
33
.
Characters 80-9F (Control Codes)
ASCII Code SFCC 7 Hex Code SFCC 37 Dec Code SFCC 55 Purpose Selects the character set wherein hex codes 80 through 9F are
control codes. Cancels Character Set Select activated by SFCC
6.
Comment This feature is also selectable from the control panel (see the
“Alternate Set 80-9F” parameter in the configuration chapter of your
User’s Manual
).
Characters 80-9F (Printable Symbols)
ASCII Code SFCC 6 Hex Code SFCC 36 Dec Code SFCC 54 Purpose Selects the character set wherein hex codes 80 through 9F are
printable symbols.
Comment This feature is also selectable from the control panel (see the
“Alternate Set 80-9F” parameter in the configuration chapter of your
User’s Manual
).
34
Chapter 2 Configuring the P-Series Emulation with Control Codes
Character Set Select: ECMA-94 Latin 1 Extended
ASCII Code SFCC OSET;
n
Purpose Selects the Extended Character Set and the print mode and
pitch at which the extended character prints. Valid only in the ECMA-94 Latin 1 Extended Character Set; otherwise, this command is ignored.
Comment
n
ranges from 0 through 12 (hex 00 through hex 0B) to select the print mode/pitch combinations available from page 54. All other values result in an error message. In OSET mode, values outside the range in Table 6 produce an error message. (Command Line Error Messages are listed in Table 2 on page
25.) Extended characters 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 prints. Different pitches can be printed on the same line.
Table 6. Print Modes/Pitches Available Using P-Series OSET
(ECMA Latin 1, Extended Character Set Only)
n
Print Mode/Pitch Select
0 Barcode Letter Gothic 10 cpi 1 Multinational Letter Gothic 10 cpi 2 Multinational Letter Gothic 12 cpi 3 Multinational Courier 10 cpi 4 Greek Letter Gothic 10 cpi 5 Greek Letter Gothic 12 cpi 6 Greek Courier 10 cpi 7 Graphics Letter Gothic 10 cpi 8 Graphics Courier 10 cpi 9 Scientific Letter Gothic 10 cpi
10 Scientific Letter Gothic 12 cpi
11 Scientific Courier 10 cpi
12 Multinational at Primary Character Set Mode and Pitch
Character Set Select: International Languages
35
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-94 Latin 1, IBM PC, Multinational, and DEC Multinational).
where:
n
corresponds to the language as shown in Table 7.
Table 7. International Character Sets
n
Character Set Selected
SFCC R
(hex)
PSET ECMA Latin 1
IBM PC
(0437 or 0850)
Multinational
DEC
Multinational
0 (30) 0 ASCII (USA) ASCII (USA) ASCII (USA) ASCII (USA) 1 (31) 1 German French EBCDIC French 2 (32) 2 Swedish German German 3 (33) 3 Danish English English (UK) 4 (34) 4 Norwegian Danish Norw./Danish 5 (35) 5 Finnish Swedish Swedish 6 (36) 6 English Italian Italian 7 (37) 7 Dutch Spanish Spanish 8 (38) 8 French Japanese Japanese 9 (39) 9 Spanish French Canadian French Canadian 0A (3A) 10 Italian Latin American Dutch 0B (3B) 11 Turkish Norwegian (3B) Finnish 0C (3C) 12 Japanese Danish-II (3C) Swiss 0D (3D) 13 Spanish-II (3D)
Latin AmII (3E) Danish-II Spanish-II Latin II
36
Chapter 2 Configuring the P-Series Emulation with Control Codes
Comment The international character set can also be selected from the
control panel. The control code setting overrides the control panel character set selection. Values other than those selectable from Table 7 are ignored.
Example The following example illustrates international character
selection using the IBM PC character set.
Download A Character Set Overlay
ASCII Code SFCC V Hex Code SFCC 56 Dec Code SFCC 86 Purpose To define and download a character set overlay (substitution
table) that can be placed within the 224 printable symbol code points.
Expression SFCC V is followed by ASCII characters:
{QQQ}E{AAA}E{SSSSS}E (Each parameter is separated by paired brace symbols for clarity in distinguishing parameters. Do not put the braces in the command sequence). Multiple sets of characters can follow one SFCC V.
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
Table 7. International Character Sets
n
Character Set Selected
SFCC R
(hex)
PSET ECMA Latin 1
IBM PC
(0437 or 0850)
Multinational
DEC
Multinational
Download A Character Set Overlay
37
where E is the terminator following each numeric field for overlay using
the Printronix number. {QQQ} represents a decimal value between 0 and 255, which identifies the number of entries in the substitution table. No leading zeros are required for entries of one and two digits. Each entry consists of:
{AAA} representing the decimal value between 0 and 255. These digits identify the address code that causes the substituted character to print. No leading zeros are required for entries of one and two digits.
{SSSSS} representing the decimal value between 0 and 65535. These digits identify the symbol code point in the Multinational Character Set. No leading zeros are required for entries containing less than five digits. Any symbol in the Character Library in Appendix C can be substituted into any printable symbol code print.
Comment The character set overlay is valid only for the current base
character set. You must reload the character set overlay after a new character set is selected. After switching from NON-OCR typeface to OCR typeface or vice versa, you must reload the character set overlay to print the correct characters. Any symbol in the Character Library in Appendix C can be substituted into any printable symbol code point.
If {AAA} is the same value as a control character, the control character takes precedence, and printing of that value does not occur. If the Space (hex 20) is substituted, unexpected results may occur, including decreased print speed.
Once defined and downloaded by this control code, the table created by this control code can be saved into the printer power­up configuration and selected from the host interface or the control panel. The table does not take effect until requested; to activate the table from the host, use the sequence SFCC RX. The substitution table starts with the currently active character set and overlays characters on top of it. The table is deactivated by the command sequence SFCC RO or when the character set is changed. When the table is selected via the control panel, the message “DOWNLOADED” displays.
38
Chapter 2 Configuring the P-Series Emulation with Control Codes
Example The following sample illustrates Downloading a Character Set
Overlay using a Printronix number.
SOH V{2}E{65}E{224}E{66}E{225}E
SOH V Special Function Control Code (SFCC) header introducing the
Download a Character Set Overlay command.
{2} The quantity of entries (characters) in the substitution table (in
this example, the letters A and B).
{E} The numeric field terminator for overlay using a Printronix
number (required after each numeric field).
{65} The (decimal) address code for the first character in the current
character set that causes the substituted character to be printed (uppercase A/alpha).
{224} The (decimal) symbol point in the Character Library in Appendix
C representing the substituted character selected (lowercase a/alpha).
{66} The (decimal) address code for the second character in the
current character set that causes the substituted character to be printed (uppercase B/beta).
{225} The (decimal) symbol point in the Character Library (Appendix
C) representing the substituted character selected (lowercase b/beta).
NOTE: Not all fonts have all characters. Characters are included only to
support predefined character sets. In general, DP 10 and NLQ 10 have the widest coverage, High Speed and OCR fonts have the least coverage.
The SFCC V and SFCC RX commands are not supported with the U­terminator when UTF-8 is enabled. See Table 8 below for details.
Table 8. E and U Terminator Support
E Terminator U Terminator
SFCC V supported not supported
SFCC RX supported not supported
Elongated (Double High) Print (One Line Only)
39
Elongated (Double High) Print (One Line Only)
ASCII Code SFCC h BS Hex Code SFCC 68 08 Dec Code SFCC 104 8 Purpose Selects elongated (double high) character printing for one line
only. Elongated characters are approximately double height but standard width.
Comment 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, 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 is moved
n
+ 1 lines rather than n lines. See Chapter 9, “Vertical Page Formatting,” beginning on page 285 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.
40
Chapter 2 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. 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.
If Superscript/Subscript (SFCC S) is combined with Double High printing,
only
Double High printing will occur.
Example The following sample illustrates double-high character printing.
Emphasized Print
41
Emphasized Print
ASCII Code SFCC E Hex Code SFCC 45 Dec Code SFCC 69 Purpose Selects emphasized character print format. Comment When the emphasized print control code is received, all
characters are printed in emphasized print until reset by the emphasized print reset control code or printer reset.
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.
Emphasized Print Reset
ASCII Code SFCC F Hex Code SFCC 46 Dec Code SFCC 70 Purpose Resets emphasized character printing. Comment The emphasized print reset control code only resets the
emphasized print character attribute.
Example See the Emphasized Print control code example (above) for an
example of Emphasized Print Reset.
42
Chapter 2 Configuring the P-Series Emulation with Control Codes
Emulation Reset
ASCII Code SFCC @ Hex Code SFCC 40 Dec Code SFCC 64 Purpose Initializes all print mode related parameters to their power-up
configuration values.
Comment Print mode, line spacing, international language selection,
margins, form length, skip-over perforation, and character pitch are reset to their 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.
Expanded (Double Wide) Print
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 =
1 selects expanded print (hex 01 or hex 31)
n
= 0 resets expanded print (hex 00 or hex 30)
Comment When expanded print using SFCC W is received, all characters
are printed double wide until reset by the expanded print reset control code or printer reset.
Example The following sample illustrates expanded character printing and
expanded character printing reset.
Expanded (Double Wide) Print (One Line Only)
43
Expanded (Double Wide) Print (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. Comment 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.
For another example of expanded printing, see “Expanded (Double Wide) Print” on page 42.
Extended Character Set
ASCII Code SO (Shift Out)SFCC SOSFCC n SFCC 4 Hex Code 0E SFCC 0ESFCC 6E SFCC 34 Dec Code 14 SFCC 14SFCC 110 SFCC 52 Purpose Accesses the extended character set in the range hex A0
through FF using codes hex 20 through 7F.
Comment 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; OE, SFCC OE, SFCC 6E are cancelled by paper motion.
44
Chapter 2 Configuring the P-Series Emulation with Control Codes
Example The following sample illustrates Extended Character Set.
Extended Character Set Cancel (Primary Character Set Select)
ASCII Code SI (Shift In)SFCC SISFCC o SFCC 5 Hex Code 0F SFCC 0FSFCC 6F SFCC 35 Dec Code 15 SFCC 15SFCC 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.
Comment 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 hex 20 through 7F.
Example See the Extended Character Set example.
Form Feed
45
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.
Comment The default forms length is determined by the configuration in
nonvolatile memory. Forms length is set by using the control panel or forms length control codes. Code FF cancels all single­line only print attributes.
The Form Feed command reacts differently when the VFU is active. See Chapter 9, “Vertical Page Formatting,” beginning on page 285.
Forms Length Set (Inches)
ASCII Code SFCC INCHES;
n.f
Purpose Sets the length of forms (paper) in inches. where:
n =
whole numbers from 1 through 24 (hex 01 through hex 18) to
specify the number of inches on a page.
f
= fractional number in .5-inch increments (the minimum forms
length is 0.5 inches).
Comment Upon receipt of this code, the current line becomes the first line
of the form, and the form length set becomes the current forms length. Vertical tab positions set below the bottom of the form are cleared. Forms length is defined in inches; therefore, subsequent line spacing changes do not affect the result of this command.
In INCHES mode, incorrect values produce an error message. (Command Line Error Messages are listed in Table 2 on page
25.) Forms length can also be set by the control panel (when "Menu
Form Size" is enabled). The control code forms length setting from the host computer overrides the control panel setting. However, if the VFU is enabled and loaded, this command is ignored.
Also, 0.5-inch increments can be specified. For example, sending the command :
SFCC INCHES; 7.5
results in a form length setting of 7-1/2 inches.
46
Chapter 2 Configuring the P-Series Emulation with Control Codes
Forms Length Set (Lines)
ASCII Code SFCC LINES;
n
Purpose Sets the length of a form (paper) in lines. where:
n
= 1 through 192 (hex 01 through C0) to specify the number of
lines per page at the current line spacing.
Comment The forms length is set to the number of lines defined by the
quotient of
n
and the current line spacing so that the units are in
inches. In LINES mode, the maximum form length is 24 inches, and
n
values in excess of 24 inches causes an error message. (Command Line Error Messages are listed in Table 2 on page
25.) If the calculated forms length in lines is not an exact multiple of
the target machine dot size, the forms length value is adjusted down to the next possible multiple.
If the VFU is enabled and loaded, this command is ignored.
Form Margins, Set
ASCII Code SFCC v
n1 n2 n3 n4
Hex Code SFCC 76
n1 n2 n3 n4
Dec Code SFCC 118
n1 n2 n3 n4
Purpose Selects left (n1), right (n2), top (n3), and bottom (n4) form
margins.
where:
n1
= The width of the left margin (hex value) in character columns at the current cpi. If the requested margin is larger than the current (form width - right margin), the value is ignored.
n2
= The width of the right margin (hex value) in character columns at the current cpi. If the requested margin is larger than the current (form width - left margin), the value is ignored.
n3
= The length of the top margin (hex value) in character lines at the current lpi. If the requested margin is larger than the current (form length - bottom margin), the value is ignored.
n4
= The length of the bottom margin (hex value) in character lines at the current lpi. If the requested margin is larger than the current (form length - top margin), the value is ignored.
Comment A hex value of FF for
n1, n2, n3
, or n4 indicates that the margin
remains unaffected. When set, the right and bottom margins take effect immediately.
The left margin takes effect for the current line only if no horizontal motion has occurred for the line; otherwise, it takes effect on the next line. The top margin always takes effect on the next form.
Line Feed
47
Line Feed
ASCII Code LF Hex Code 0A Dec Code 10 Purpose Prints the data in the buffer (if any) and advances the vertical
character position one line at the current line space setting.
Comment If configured for LF equals new line (LF=CR+LF), the logical
print head is positioned at character column 1 of the new line. Otherwise, the logical print head does not move when configured for LF function only (LF=LF ONLY). The LF function cancels all single line print attributes such as double high (elongated) and double wide (expanded) characters.
This code is always configured for LF=CR+LF in the P-Series protocol.
In the P-Series Even Dot Plot mode (high density graphics), the LF code does not cause paper position motion; the data in the buffer is plotted and the logical print head is positioned at character column 1 in anticipation of the Odd Dot Plot control code to complete high density graphic plotting.
In the P-Series Odd Dot Plot mode (normal density graphics), the LF code plots the data in the buffer, advances the paper position a single dot row at the current vertical dot density, and positions the logical print head at character column 1.
48
Chapter 2 Configuring the P-Series Emulation with Control Codes
Line Spacing 1/6 Inch (6 lpi)
ASCII Code SFCC 2 SFCC LPI;
n
Hex Code SFCC 32 Dec Code SFCC 50 Purpose Sets line spacing to 6 lpi or as set by SFCC A. Comment For SFCC LPI;
n
, the value of n can be 6 or 8 only. If n = 6, this
command sets line spacing to 1/6 inch. Values of
n
other than 6 or 8 causes an error message. (Command Line Error Messages are listed in Table 2 on page 25.)
SFCC 2 asserts
n
/72-inch line spacing as set by SFCC A (page
51). If no distance has been set by SFCC A, the distance is 1/6 inch.
The control code line spacing selection overrides the control panel line spacing setting.
Example The following example illustrates 1/6-inch line spacing and
assumes that a distance has not been set by SFCC A.
Line Spacing 1/8 Inch (8 lpi)
49
Line Spacing 1/8 Inch (8 lpi)
ASCII Code SFCC 0 SFCC LPI;
n
Hex Code SFCC 30 Dec Code SFCC 48 Purpose Specifies continuous line spacing at 1/8-inch increments (8 lpi). Comment When the 1/8-inch line spacing control code is received, all lines
are printed at 8 lpi until a new line spacing is selected or the printer is reset. The control code line spacing selection overrides the control panel line spacing setting.
For SFCC LPI;
n
, the value of n can be 6 or 8 only. If n = 8, this
command sets line spacing to 1/8 inch. Values of
n
other than 6 or 8 causes an error message. (Command Line Error Messages are listed in Table 2 on page 25.)
Example The following example illustrates 1/8-inch line spacing.
Line Spacing 8 or 10.3 lpi (One Line Only)
ASCII Code ACK SFCC f Hex Code 06 SFCC 66 Dec Code 6 SFCC 102 Purpose Selects line spacing of 8 or 10.3 lpi for the current line only. Comment The default line spacing is reselected automatically after one
line. Line spacing may be selected either through the control panel or by line spacing control codes. The control code setting overrides the control panel line spacing setting.
If the alternate line spacing selected from the control panel is 8 lpi, the ACK control code sets the line spacing to 8 lpi. If 10.3 lpi was selected from the control panel, the ACK control code sets the line spacing to 10.3 lpi (7/72 inch).
Example The following example illustrates printing a single line of text at 8
lpi.
50
Chapter 2 Configuring the P-Series Emulation with Control Codes
Line Spacing 7/72 Inch
ASCII Code SFCC 1 Hex Code SFCC 31 Dec Code SFCC 49 Purpose Specifies the line spacing at 7/72-inch (10.3 lpi) increments. Comment When the 7/72-inch line spacing control code is received, all
lines are printed at the 7/72-inch line spacing until a new line spacing is selected or the printer is reset. The control code line spacing selection overrides the control panel line spacing setting, and the message display reflects the line spacing as
10.3 lines per inch. Caution should be used when combining this control code with
other print attributes such as Elongated (Double High), Superscript, or Subscript; overlapping lines may occur. Printing at different horizontal and vertical densities do not overlap.
Example The following example illustrates 7/72-inch line spacing.
Line Spacing n/72 Inch
51
Line Spacing n/72 Inch
ASCII Code SFCC A
n
Hex Code SFCC 41
n
Dec Code SFCC 65
n
Purpose Stores a line spacing of n/72-inch increments. where:
n
= 1 through 85 (hex 01 through hex 55, all others are ignored)
Comment When the SFCC A control sequence is received, all line feed
commands following an SFCC 2 sequence* are at
n
/72-inch line spacing until a new line spacing is selected or the printer is reset. The control code line spacing selection overrides the control panel line spacing setting.
Small values of
n
may result in overlapping lines. Overlapping lines may also occur if print attributes such as Elongated (Double High), Superscript, or Subscript characters are used on the same line. Printing at different horizontal and vertical densities do not overlap.
Example The following example illustrates 20/72-inch line spacing.
*The SFCC 2 sequence (page 48) asserts the line spacing that was stored by the preceding SFCC A sequence.
52
Chapter 2 Configuring the P-Series Emulation with Control Codes
Line Spacing n/216 Inch
ASCII Code SFCC 3
n
Hex Code SFCC 33
n
Dec Code SFCC 51
n
Purpose Specifies the line spacing at n/216-inch increments. where:
n
= 1 through 255 (hex 01 through hex FF)
Comment When the
n
/216-inch line spacing control code is received, all
line feeds following are at
n
/216-inch line spacing until a new line spacing is selected or the printer is reset. The control code line spacing selection overrides the control panel line spacing setting.
The vertical character position moves only in multiples of the current dot row spacing. If the distance to move is other than a multiple of the current dot row spacing, the remainder is added to the next paper motion command.
Caution should be used when combining this control code with other print attributes such as Elongated (Double High), Superscript, or Subscript; overlapping lines may occur. Printing at different horizontal and vertical densities do not overlap.
Example The following example illustrates
n
/216-inch line spacing.
Overscoring
ASCII Code SFCC _
n
Hex Code SFCC 5F
n
Dec Code SFCC 95
n
Purpose Enables or disables automatic overscoring of all characters. where:
n
= 0 to disable automatic overscoring (hex 00 or hex 30)
n
= 1 to enable automatic overscoring (hex 01 or hex 31)
Comment When automatic overscore is enabled, all characters, including
spaces, are overscored until disabled.
Plot, Even Dot (P-Series High Density Graphics)
53
Example The following sample illustrates automatic overscoring and
overscoring reset.
Plot, Even Dot (P-Series High Density Graphics)
ASCII Code EOT SFCC d Hex Code 04 SFCC 64 Dec Code 4 SFCC 100 Purpose Prints dots at the even numbered dot columns. Comment The even dot plot code is used for programming high density
graphics and must be used in conjunction with the Odd Dot Plot code (hex 05). See “P-Series Compatible Plot Mode (Odd/Even Dot Plotting)” on page 278 for detailed plot mode information.
Plot, Odd Dot (P-Series Normal Density Graphics)
ASCII Code ENQ SFCC e Hex Code 05 SFCC 65 Dec Code 5 SFCC 101 Purpose Prints dots at the odd numbered dot columns. Comment This is the P-Series programming normal density graphics
control code. The ENQ code should occur before any printable data in the data stream. For high density graphics, the Even Dot Plot code (hex 04) must be used in conjunction with (and precede) the Odd Dot Plot code. See “P-Series Compatible Plot Mode (Odd/Even Dot Plotting)” on page 278 for detailed plot mode information.
54
Chapter 2 Configuring the P-Series Emulation with Control Codes
Print Mode/Pitch Selection
ASCII Code SFCC X mnSFCC [ n qSFCC PMODE;
n
Hex Code SFCC 58 mnSFCC 5B n 71 Dec Code SFCC 88
mn
SFCC 91 n 113
Purpose Selects the print mode (Letter Gothic, Courier, or OCR) and
character pitch in characters per inch (cpi).
where: In SFCC PMODE;
n
n
ranges from 0 through 6 to select the print mode/pitch combinations available from Table 9. All other values result in an error message. (Command Line Error Messages are listed in Table 2 on page 25.)
where: In SFCC X
mn
m
= Print Mode code
n
= Pitch (cpi) An asterisk (*) (hex 2A) may be substituted for
m
or
n.
Whenever
the asterisk replaces
m
or n, its current value does not change. Values other than those shown in Table 11 and Table 12 are ignored.
where: In SFCC[
n
q
n
= Print Mode/Pitch code (values other than those shown in
Table 10 are ignored.) q = Command sequence terminator
NOTE: The print mode must be changed before the first printable symbol of a
print line or the command sequence is deferred until the next line.
Comment P-Series PMODE switches to the Primary Character Set and
selects print mode and pitch. Print mode and pitch can also be selected from the control
panel. The print mode/pitch select control code from the host computer overrides the control panel print mode setting and the print mode and pitch selection are reflected on the message display.
A complete set of tables identifying pitch and dot densities for all print modes follows.
Print Mode/Pitch Selection
55
Table 9. Print Mode and Pitch (SFCC PMODE;n)
n
Print Mode and Pitch
0 Letter Gothic 10 cpi
1 Letter Gothic 12 cpi
2 Letter Gothic 15 cpi
3 Courier 10 cpi
4 Letter Gothic 10 cpi
5 OCR-A 10 cpi
6 OCR-B 10 cpi
Table 10. Print Mode and Pitch (SFCC [
n
q)
n
Print Mode and Pitch
1 (hex 31) Courier 10 cpi
2 (hex 32) Letter Gothic 10 cpi
3 (hex 33) Letter Gothic 12 cpi
4 (hex 34) Letter Gothic 12 cpi
5 (hex 35) Letter Gothic 13 cpi
Table 11. Horizontal and Vertical Dot Density (SFCC X
mn
)
m
(Hex*)
Horiz. Density
Resolution
Vertical Density Print Mode
0 (30)
x
dpi
y
dpi Letter Gothic
1 (31)
x
dpi
y
dpi Courier
2 (32)
x
dpi
y
dpi Letter Gothic
3 (33)
x
dpi
y
dpi Letter Gothic
4 (34)
x
dpi
y
dpi Letter Gothic
5 (35)
x
dpi
y
dpi OCR-A
6 (36)
x
dpi
y
dpi OCR-B
7 (37)
x
dpi
y
dpi Letter Gothic
8 (38)
x
dpi
y
dpi Letter Gothic
*The hex values shown (i.e., 0 and 30) are equal. Either value can be used in your program expression. The density (dpi) remains the same under this setting.
x
and y represent the resolutions of the particular printer.
56
Chapter 2 Configuring the P-Series Emulation with Control Codes
NOTE: When using the Multinational character set in OCR-A or OCR-B print
mode, a unique character set is used.
Example The sample printout below shows a number of different print
modes and pitch selections.
Table 12. Print Mode and Character Pitches (SFCC X
mn
)
Characters Per Inch
value of
n
: value of m:
Print Mode*
Gothic 0 (30)
Courier 1 (31)
Gothic 2 (32)
Gothic 3 (33)
Gothic 4 (34)
OCR-A 5 (35)
OCR-B 6 (36)
Gothic 7 (37)
Gothic 8 (38)
0 (30) 10 10 10 10 10 10 10 10 10
1 (31) 12 12 12 12 12
2 (32) 13 13 13 13 13
3 (33) 15 15 15 15 15
4 (34) 17 17 17 17 17
5 (35) 20 17 20 20 20
*The hex values shown (i.e., 0 and 30) are equal. Either value can be used in your program expression. The value of
m
is represented by the font choice line.
Superscript/Subscript Printing
57
Superscript/Subscript Printing
ASCII Code SFCC S
n
Hex Code SFCC 53
n
Dec Code SFCC 83
n
Purpose Selects superscript or subscript printing. where:
n
= 0 to enable superscript printing (hex 00 or hex 30)
n
= 1 to enable subscript printing (hex 01 or hex 31)
Comment Superscript/Subscript font prints at one-half the normal vertical
character height and at twice the normal vertical density. When the superscript/subscript control code is received, all characters are superscript or subscript until reset by the superscript/ subscript reset control code or printer reset. Emphasized print is ignored in the superscript/subscript print mode.
When the BS feature is enabled from the control panel, both superscript and subscript characters can be printed in the same character column using the Backspace (BS) control code (page
28). Caution should be used when combining Superscript or
Subscript printing with other print attributes such as Elongated (Double High), or small line spacing; overlapping lines may occur. Characters with different horizontal or vertical dot densities do not overlap.
Example The following sample illustrates superscript/subscript printing.
Superscript/Subscript Printing Reset
ASCII Code SFCC T Hex Code SFCC 54 Dec Code SFCC 84 Purpose Resets superscript and subscript printing.
58
Chapter 2 Configuring the P-Series Emulation with Control Codes
Super-Set Commands
ASCII Code SFCC | } ; Hex Code SFCC 7C 7D 3B Dec Code SFCC 124 125 59 Purpose Control code sequence used to introduce the super-set
commands.
Comment Super-set commands affect the ASCII Emulation as a whole
regardless of the printer protocol currently active. The commands are sent from the host in the data stream to the printer, and provide the following capabilities:
Select a printer protocol
Change the page orientation
Define various font attributes, including typeface and
point size
Select proportional fonts
See Chapter 7, “Super-Set Programming,” beginning on page 205 for further information on the Super-set commands.
Underline
ASCII Code SFCC –
n
Hex Code SFCC 2D
n
Dec Code SFCC 45
n
Purpose Enables or disables automatic underlining of all characters. where:
n
= 0 to disable automatic underlining (hex 00 or hex 30)
n
= 1 to enable automatic underlining (hex 01 or hex 31)
Comment When automatic underline is enabled, all characters, including
spaces, are underlined until disabled.
Example The following sample illustrates automatic underlining.
VFU Commands (P-Series)
59
VFU Commands (P-Series)
ASCII Code See the P-Series EVFU section in Chapter 9, “Vertical Page
Formatting” for codes.
NOTE: If the SFCC being used is ESC, the PI line must be set high when
using the EVFU.
Purpose Load and execute the VFU. Comment See Chapter 9, “Vertical Page Formatting,” beginning on page
285 for detailed information.
Vertical Tab
ASCII Code VT Hex Code 0B Dec Code 11 Purpose Prints the data in the buffer and advances the paper to the next
vertical tab position.
Comment If a vertical tab format is defined in the EVFU (channel 12) and
the VFU is enabled, the paper is moved to the next vertical tab position.
If a vertical tab format is not defined, the paper is advanced to the next line at the current line spacing. More information on vertical tabs is provided in the EVFU section of Chapter 9, “Vertical Page Formatting.”
60
Chapter 2 Configuring the P-Series Emulation with Control Codes
61
3 P-Series XQ Printer
Protocol
Introduction
This chapter describes the P-Series XQ 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. Carriage Return, print quality, character attributes such as bold and underline, margins, and tabs are typical functions selected by printer control language codes. In this manual, the terms emulation, printer protocol, and printer control language are synonymous.
The P-Series XQ emulation was devised for a series of Printronix printers manufactured between 1974 and 1991, but no longer available. This emulation enables your printer to emulate Printronix P300 and P600 printers with A7/B10 boards. To select the P-Series XQ emulation mode as the active printer emulation, select ASCII Emulation from the EMULATION menu and P-Series XQ from the Printer Protocol menu, as described in the
User's
Manual.
The P-Series XQ 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 XQ host control codes. An extensive set of P-Series XQ
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 XQ control codes.
The printer configuration menus. You can modify a subset of the P-
Series XQ emulation parameters using the control panel keys and LCD, as described in the
User’s Manual.
Control codes sent from a host system generally override previous settings that result from the configuration menus.
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. The menu selection for saving a configuration to memory is described in the
User’s Manual.
To save the configuration using host control codes, refer to Appendix B, “PTR_SETUP Option”.
62
Chapter 3 Introduction
The emulation's response to several of the control codes depends on the configuration. For example, upon receipt of the carriage return control code, the emulation will either perform a carriage return function only, or a carriage return and line feed, based on the configuration for the CR function.
P-Series XQ Default Values and States
The factory settings for the P-Series XQ emulation menu options are shown in Table 13. Table 13 also lists additional factory settings for parameters provided by the ASCII Emulation 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
Select CPI 10.0 CPI
Select LPI 6.0 LPI
Typeface Letter Gothic
Horizontal DPI 120 DPI
Vertical DPI 72 DPI
Prop. Spacing Enable
Italic Print Disable
Slashed Zero Disable
Left Margin 0 characters
Right Margin 0 characters
Top Margin 0 linespaces
Bottom Margin 0 linespaces
Print Char. Set
Define CR code CR = CR
Auto LF Disable
Define LF code LF = CR + LF
*Advanced User:
Control Code 06 8.0 LPI
Compressed Print Char 01 SOH
Bold Disable
P-Series XQ Default Values and States
63
Elong/Alt. Font Elng=BS Font=SO
Gothic Typeface Char 02 STX
EVFU Select Enable
Upr. Case Select Disable
Slew Relative 1 to 15 lines
Text Position Bottom of Line
Host Command Enable
Reset Cmd CFG Ld Disable
Form Length 06.0 inches
Form Length 152.4 mm
Form Length 36 lines
Form Width 08.5 inches
Form Width 216.0 mm
Form Width 85 characters
Table 13. P-Series Default Settings
Characteristic Default Setting
64
Chapter 3 Configuring the XQ Emulation with Control Codes
Configuring the XQ Emulation with Control Codes
The remainder of this chapter describes the P-Series XQ printer control language codes that may be sent from a host computer attached to the printer, in order to configure and invoke numerous printer functions.
Format for Control Code Descriptions
The following information is listed for each code function (where applicable and possible).
Name The title or function of the command. ASCII Code The standard ASCII name for the control code. Hex Code The code's numeric equivalent in hexadecimal. Dec Code The code's numeric equivalent in decimal. Purpose The function(s) of the control code. Discussion A description of exceptions or limitations to normal 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).
IMPORTANT
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.
Edit Mode
Any printable character in the data stream can replace printable characters or spaces already loaded in the print buffer. The space character (hex 20) is used to skip characters in the print buffer that are not to be replaced and, similar to underlining or deleting, the new characters are inserted in the appropriate positions. Table 14 illustrates the edit mode. Note that the editing function replaces characters; it cannot be used to print the same character twice (double strike) in the same location. Use the DEL code (hex 7F) to make a character blank.
NOTE: In order for edit mode to work correctly, the protocol must be
configured for a carriage return only. If configured for a carriage return and a line feed, the contents of the buffer are printed upon receipt of the CR code, disabling the editing function.
NUL Code
65
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.
Control Code Index
The following index lists the control codes by function and lists the ASCII mnemonic and page number.
FUNCTION ASCII CODE PAGE
Paper Motion
Form Feed FF 70 Line Feed LF 71 Vertical Tab VT 75
Print Attributes
Plot, Even Dot EOT 72 Plot, Odd Dot ENQ 73 Underline _ 74
Page Format
Carriage Return CR 67 Channels 1 through 14 DLE through US 69
See NOTE below Delete DEL 69 Line Spacing (8 or 10.3 lpi) ACK 71 Space SP 74
NOTE: Channel codes hex 10 through 1F are used when the PI line is
disabled. For the applicable PI enable channel codes, see Chapter 9, “Vertical Page Formatting.”
Table 14. CR Edit Mode Example
Enter in Print Buffer Printed Result
Example 1
AAABBBCCC
(CR)
SSSSDSSSB
(LF)
AAABDBCCB
Example 2
ABCDEF
(CR)
______
(CR)
ABCDEF
Key: S = Space (hex 20);
LF = Line Feed (hex 0A); CR = Carriage Return (hex 0D)
66
Chapter 3 Configuring the XQ Emulation with Control Codes
Other Functions
Alternate Character Set Deselect
(Shift In) SI 66
Alternate Character Set Select
(Shift Out) SO, BS 67 See NOTE below
Compressed Print SOH, ETX, HT 68
See NOTE below
Elongated Characters BS, SO 70
See NOTE below
Select Letter Gothic (DP) STX, ETX, HT 73
NOTE: A code can be assigned by changing the configuration at the control
panel. For further details, refer to your
User's Manual.
Alternate Character Set Deselect (Shift In)
ASCII Code SI Hex Code 0F Dec Code 15 Purpose This code selects the primary character set. Comment The alternate character set select and deselect codes can be
used to mix primary and alternate characters on a single line. The main character set is also automatically selected when a line terminator code is received.
Example
Alternate Character Set Select (Shift Out)
67
Alternate Character Set Select (Shift Out)
ASCII Code SO BS Hex Code 0E 08 Dec Code 14 8 NOTE: An alternate hex code of 08 (ASCII code BS) can be assigned as the
Alternate Character Set Select control code through printer configuration.
Purpose Accesses the extended character set in the range of hex A0
through FF using codes hex 20 through 7F.
Comment These codes are 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.
Both commands are cancelled by a paper motion command. Refer to the character set charts in Appendix D.
Example
Carriage Return
ASCII Code CR Hex Code 0D Dec Code 13 Purpose Positions the logical print head at the left margin (resets the
memory pointer to the first character position).
Comment The printer can be configured to perform a carriage return only
(CR = CR only), or a carriage return plus a line feed function (CR = CR + LF).
A CR = CR configuration enables underline, add, delete, and edit functions, but the host computer must send a separate line feed code to print the data and change the vertical position. The character position indicator is positioned at character column one. Subsequent printable data preceding a paper motion command replace previous printable data (including underlines). Two exceptions apply:
Subsequent underlined characters (hex 5F) overlay the previous data.
68
Chapter 3 Configuring the XQ Emulation with Control Codes
Subsequent space characters (hex 20) only index the character position indicator to the right.
This code can occur at any place in the datastream and is acted upon immediately.
With CR = CR + LF, the underline, add, delete and edit functions are disabled, and the code is processed as a line feed. See the Line Feed command description on page 71 for more information.
Compressed Print
ASCII Code SOH ETX HT Hex Code 01 03 09 Dec Code 13 9 NOTE: Configure this feature from the control panel. Purpose Selects compressed character printing. Comment Use any of the three codes to select 17.1 cpi if you are
configuring the printer from the operator control panel. Both ETX and HT also select the Letter Gothic (DP) font if the
printer is configured from the control panel (see page 73). These commands can occur anywhere in the datastream and
are acted upon immediately, affecting the entire current print line. Line spacing may be selected either through the control panel or by line spacing control codes. The control code setting overrides the control panel line spacing setting.
Example
Delete
69
Delete
ASCII Code DEL Hex Code 7F Dec Code 127 Purpose Deleted character results in a blank space at the corresponding
character position.
Comment The Delete code deletes the corresponding character in the print
buffer. As shown in Table 15 below, the four delete control codes are used to delete DATE from the print line.
NOTE: In order for this to work correctly, the printer must be configured for
carriage return only. If configured for a carriage return and a line feed, the contents of the buffer are printed on receipt of the CR code.
Electronic Vertical Format Unit (EVFU)
ASCII Code DLE through US Hex Code 10 through 1F Dec Code 16 through 31 NOTE: PI line is disabled in the above description. ASCII and corresponding
codes for EVFU functions differ when the PI line is enabled, according to the printer interface being used.
Purpose Load and execute the EVFU. Comment For detailed information, see Chapter 9, “Vertical Page
Formatting.”
Table 15. Delete Example
Enter in Print Buffer Printed Result
INVOICE DATE
(CR)
SSSSSSSSDDDD
(LF)
INVOICE
Key: S = Space (hex 20);
LF = Line Feed (hex 0A); CR = Carriage Return (hex 0D) D = Delete (hex 7F)
70
Chapter 3 Configuring the XQ Emulation with Control Codes
Elongated Characters (Double High Print)
ASCII Code BS SO Hex Code 08 0E Dec Code 814 NOTE: Configure this feature from the control panel. Purpose Selects elongated (double high) character printing for one line. Comment The Elongated Character control code can be placed anywhere
in the data line before the line terminator. Following the line terminator, the printer automatically selects the default print mode. Consequently, the Elongated Character control code must be sent for each line of elongated characters. Elongated characters cannot be mixed with standard characters on the same print line.
The current line spacing is doubled for one line. This code can occur anywhere in the datastream and is acted
upon immediately. It is cancelled by an SI code or a paper motion command.
Example
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 logical printhead to the first character column.
Comment The default forms length is determined by the configuration in
nonvolatile memory. Forms length is set by using the control panel or VFU. Code FF cancels all single-line only print attributes.
The Form Feed command reacts differently when the VFU is active. (See Chapter 9, “Vertical Page Formatting.”)
Line Feed
71
Line Feed
ASCII Code LF Hex Code 0A Dec Code 10 Purpose Prints the data in the buffer (if any) and advances the vertical
character position one line at the current line space setting.
Comment If configured for LF equals new line (LF=CR+LF), the logical
print head is positioned at character column 1 of the new line. Otherwise, the logical print head does not move when configured for LF function only (LF=LF ONLY). The LF function cancels all single line print attributes such as double high (elongated) and double wide (expanded) characters.
This code is always configured for LF=CR+LF in the P-Series XQ protocol.
In the P-Series XQ Even Dot Plot mode (high density graphics), the LF code does not cause paper position motion; the data in the buffer is plotted and the logical print head is positioned at character column 1 in anticipation of the Odd Dot Plot control code to complete high density graphic plotting.
In the P-Series XQ Odd Dot Plot mode (normal density graphics), the LF code plots the data in the buffer, advances the paper position a single dot row at the current vertical dot density, and positions the logical print head at character column 1.
Line Spacing (8 or 10.3 lpi)
ASCII Code ACK Hex Code 06 Dec Code 6 Purpose Selects line spacing of 1/8 inch or 7/72 inch for current line only. Comment The line spacing control code can be placed anywhere in the
data stream before the line terminator code; however, we recommend that you place the line spacing code at the start or end of the data line.
After the line is printed at the new line spacing, the default line spacing is automatically reselected.
Example
72
Chapter 3 Configuring the XQ Emulation with Control Codes
Plot, Even Dot (P-Series XQ High Density Graphics)
ASCII Code EOT Hex Code 04 Dec Code 4 Purpose Selects even dot plot mode to print dots in even numbered dot
columns to produce high density plotting.
Comment The Even Dot Plot control code can occur anywhere in the data
line before the line terminator. It defines certain data between the next and last paper motion commands as even dot plot data. These data are plotted at 60 by 72 dots per inch.
When this mode is exited, the print mode and attributes last selected remain active. A detailed description of plotting can be found in Chapter 8, “Graphics.”
This command can occur anywhere in the datastream and is acted upon immediately, affecting the entire current print line.
Example
Plot, Odd Dot (P-Series XQ Normal Density Graphics
73
Plot, Odd Dot (P-Series XQ Normal Density Graphics
ASCII Code ENQ Hex Code 05 Dec Code 5 Purpose Selects odd dot plot mode to print dots in odd numbered dot
columns for normal density plotting.
Comment The Odd Dot Plot control code can occur anywhere in the data
line before the line terminator. It defines certain data between the next and last paper motion commands as odd dot plot data. These data are plotted at 60 by 72 dots per inch.
When this mode is exited, the print mode and attributes last selected remain active. A detailed description of plotting can be found in Chapter 8, “Graphics.”
This command can occur anywhere in the datastream and is acted upon immediately, affecting the entire current print line.
Example
Select Letter Gothic (DP)
ASCII Code STX ETX HT Hex Code 02 03 09 Dec Code 23 9 Purpose Selects Letter Gothic (DP) print mode. NOTE: Configure this feature using the control panel. Comment Any of the three codes select Letter Gothic (DP) print mode.
Both ETX and HT also select 17.1 cpi if you configure the printer from the control panel (see page 68).
These commands can occur anywhere in the datastream and are acted upon immediately, affecting the entire current print line.
74
Chapter 3 Configuring the XQ Emulation with Control Codes
Example
Space
ASCII Code SP Hex Code 20 Dec Code 32 Purpose Produces a blank space; no character is printed. Comment It is not necessary to pad the end of the print line with space
characters. The printer automatically fills the line after the line terminator is received.
The Space character code is also used to skip characters for editing and underlining as described on page 64.
Underline
ASCII Code Underline key ( _ ) Hex Code 5F Dec Code 95 Purpose Underlines specified character positions. Comment To underline characters, the print buffer is first loaded with the
character line; then the line must be terminated with a Carriage Return code. Spaces are then loaded in the buffer at positions not to be underlined and the underline code inserted in the specific positions to be underlined. Table 16 illustrates underlining.
Table 16. Underline Example
Enter in Print Buffer Printed Result
THE 600 PRINTER
(CR)
SSSS___
(LF)
THE 600 PRINTER
Key: S = Space (hex 20);
LF = Line Feed (hex 0A); CR = Carriage Return (hex 0D) _= Underline (hex 5F)
Vertical Tab
75
Vertical Tab
ASCII Code VT Hex Code 0B Dec Code 11 Purpose Acts as a line terminator when the EVFU is loaded, causing the
paper to advance to a specified preprogrammed line.
Comment Vertical Tab is primarily an EVFU line terminator code as
described in Chapter 9, “Vertical Page Formatting”. If the EVFU is not loaded and Vertical Tab control code is used, a single line feed results.
76
Chapter 3 Configuring the XQ Emulation with Control Codes
77
4 Serial Matrix Printer
Protocol
Introduction
This chapter describes the Serial Matrix 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. Carriage Return, print quality, character attributes such as bold and underline, margins, and tabs are typical functions selected by printer control language codes. In this manual, the terms emulation, printer protocol, and printer control language are synonymous.
The Serial Matrix emulation is very similar to the code system used by an IBM Graphics Printer, but contains more features. This emulation enables your line matrix printer to print files coded for a serial matrix printer. To select the Serial Matrix emulation mode as the active printer emulation, select ASCII Emulation from the EMULATION menu and Serial Matrix from the Printer Protocol menu, as described in the
User's Manual.
The Serial Matrix emulation provides many configurable parameters. The default parameter values for this emulation are shown in Table 17. You can modify the emulation parameter values in two ways:
The Serial Matrix host control codes. An extensive set of Serial Matrix
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 Serial Matrix control codes.
The printer configuration menus. You can modify a subset of the Serial
Matrix emulation parameters using the control panel keys and LCD display, as described in the
User's Manual.
Control codes sent from a host system generally override previous settings that result from the configuration menus.
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 default configuration. The menu selection for saving a configuration to memory is described in the
User's Manual.
To save the configuration
using host control codes, refer to Appendix B, “PTR_SETUP Option”.
78
Chapter 4 Introduction
Serial Matrix Default Values and States
The factory settings for the Serial Matrix emulation menu options are shown in Table 17. Table 18 lists additional factory settings for parameters provided by the ASCII Emulation 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 17. Serial Matrix Default Settings
Characteristic Default Setting
Control Code 06 8.0 LPI
Define CR Code CR = CR
Auto LF Enable
Overstrike Enable
Define LF Code LF = LF
Printer Select Disable
Alternate Set 80-9F Control Code
Character Sets
Primary Subet Extended Subset
IBM PC ASCII (USA) Code Page 437
Serial Matrix Default Values and States
79
Table 18. ASCII Emulation Menu Option Factory Settings
Characteristic Default Setting
Orientation Portrait
CPI 10.0
LPI 6.0
Typeface Letter Gothic
Proportional Spacing Disable
Bold Print Disable
Italic Print Disable
Slashed Zero Disable
Text Position Top of Line
Horizontal DPI 120 DPI
Vertical DPI 72 DPI
Logical Form
Left Margin Right Margin Top Ma rg in Bottom Margin
0 characters 0 characters 0 linespaces 0 linespaces
Physical Page
Left Margin Right Margin Top Ma rg in Bottom Margin
0 inches 0 inches 0 inches 0 inches
Perforation Skip Disable
Form Length
Absolute Length Funct. of LPI
6.0 inches 36 lines
Form Width
Absolute Width Funct. of CPI
4.1 inches 41 lines
Host Command Enabled
80
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
Configuring the Serial Matrix Emulation with Control Codes
The remainder of this chapter describes the Serial Matrix printer control language codes that may be sent from a host computer attached to the printer, in order to configure and invoke numerous printer functions.
Format for Control Code Descriptions
The following information is listed for each code function (where applicable and possible).
Name The title or function of the command. ASCII Code The standard ASCII name for the control code. Hex Code The code's numeric equivalent in hexadecimal. Dec Code The code's numeric equivalent in decimal. Purpose The function(s) of the control code. Discussion A description of exceptions or limitations to normal 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).
IMPORTANT
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.
Escape Control Code Header
Serial Matrix codes use only ESC as the control code header. For example, to enable bold print in the Serial Matrix printer protocol, use the Serial Matrix ESC and the bold print control code character G as follows:
Ascii: ESC G Hex: 1B 47 Dec: 27 71
Attribute Set and Reset Codes
Certain print attributes are set or reset (turned on or off) by using the appropriate ESC 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, Superscript/Subscript Print, and Underline are attributes which are set and reset in this fashion.
Control Code Index
81
Control Code Index
This index lists each printer command by function, ASCII mnemonic, and the page where the command is explained in detail. The rest of this chapter defines the control code functions for Serial Matrix Emulation mode. The commands are listed in alphabetical order.
FUNCTION ASCII CODE PAGE
Paper Motion
Form Feed FF 100 Line Feed LF 103 Line Feed
n
/216 Inch (1 line only) ESC J
n
104
Vertical Tab VT 115
Page Format
Backspace BS 83 Cancel CAN 87 Carriage Return CR 88 Delete DEL 94 Forms Length Set (Inches) ESC C NUL
n
100
Forms Length Set (Lines) ESC C
n
101 Form Margins, Set ESC v 102 Horizontal Tab HT 102 Horizontal Tab Set ESC D
n1 ... nk
NUL 103 Line Spacing 1/6 Inch (6 lpi) ESC 2 105 Line Spacing 1/8 Inch (8 lpi) ESC 0 105 Line Spacing 7/72 Inch ESC 1 106 Line Spacing
n
/72 Inch (as executed
by ESC 2) ESC A
n
106
Line Spacing
n
/216 Inch ESC 3
n
107
Skip-Over Perforation ESC N
n
112 Skip-Over Perforation Cancel ESC O 113 Vertical Tab, Set/Clear ESC B
n1 n2 n3 ... nk
NUL 116
Print Attributes
Bold Print ESC G 86 Bold Print Reset ESC H 87 Character Pitch 10 cpi ESC P 88 Character Pitch 12 cpi ESC M 89 Condensed Print SI 94
ESC SI
Condensed Print Reset DC2 94
ESC : Elongated (Double High) Print (1 line)ESC h 95 Elongated (Double High) Print, Set/Reset ESC w
n
96 Emphasized Print ESC E 96 Emphasized Print Reset ESC F 97 Expanded (Double Wide) Print ESC W
n
98 Expanded (Double Wide) Print (One Line Only) SO 98
ESC SO
82
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
FUNCTION ASCII CODE PAGE
Print Attributes (Continued)
Overscoring ESC _
n
108
Print Mode/Pitch Selection ESC X
mn
108
ESC [
n
q
Superscript/Subscript Printing ESC S
n
113 Superscript/Subscript Printing Reset ESC T 114 Underline ESC –
n
114
Graphics
Bit Image Mode, Single Density ESC K
n1 n2
84
Bit Image Mode, Double Density ESC L
n1 n2
84 Bit Image Mode, Double Density Double Speed ESC Y
n1 n2
85 Bit Image Mode, Quadruple Density ESC Z
n1 n2
86
Other Functions
Bell BEL 83 Character Set Select ESC l
xyz
89 Characters 80-9F (Control Codes) ESC 7 91 Characters 80-9F (Printable Symbols)ESC 6 91 Characters 80-9F (Printable Symbols)ESC u 92 Character Set Select: International Languages ESC R
n
92 Emulation Reset ESC @ 97 Extended Character Set ESC 4 99 Extended Character Set Cancel ESC 5 100 Printer Select DC1 112 Printer Deselect DC3 112 Super-Set Commands ESC |}; 114
Backspace
83
Backspace
ASCII Code BS Hex Code 08 Dec Code 8 Purpose Moves the logical print head to the left one character space
toward the first character column.
Comment Moves the character position indicator 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 7 Purpose Sounds the printer's buzzer/beeper. Comment The BEL function sounds the buzzer/beeper for 0.2 seconds
upon receipt of this command.
84
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
Bit Image Mode, Single Density
ASCII Code ESC K
n1 n2
Hex Code 1B 4B
n1 n2
Dec Code 27 75
n1 n2
Purpose Selects Single (Normal) Density Bit Image graphics. where: (
n1
+ 256n2) define the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes. The DATA can be expressed in a format with the appropriate
decimal values of the ASCII characters supplied especially in cases where the dot patterns of nonprintable characters are required.
Comment For detailed information, see the Bit Image section in Chapter 8. Example The following example produces a pattern of Single Density Bit
Image graphics. The 9 data bit pattern is repeated 27 times. Compare this example to the double density and quadruple density examples.
Bit Image Mode, Double Density
ASCII Code ESC L
n1 n2
Hex Code 1B 4C
n1 n2
Dec Code 27 76
n1 n2
Purpose Selects Double Density Bit Image graphics. where: (
n1
+ 256n2) define the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
NOTE: The DATA can be expressed in a format with the appropriate decimal
values of the ASCII characters supplied especially in cases where the dot patterns of nonprintable characters are required.
Comment For detailed information, see the Bit Image section in Chapter 8. Example The following example produces Double Density Bit Image
graphics of the pattern used in the Single Density Bit Image Mode example. Note that the amount of data must be doubled for double density (the data is used 54 times rather than 27).
Bit Image Mode, Double Density Double Speed
85
Bit Image Mode, Double Density Double Speed
ASCII Code ESC Y
n1 n2
Hex Code 1B 59
n1 n2
Dec Code 27 89
n1 n2
Purpose Selects Double Density, Double Speed Bit Image graphics. where: (
n1
+ 256n2) define the number of data bytes to follow.
DATA = ASCII characters for the dot pattern bytes.
NOTE: The DATA can be expressed in a format with the appropriate decimal
values of the ASCII characters supplied especially in cases where the
dot patterns of nonprintable characters are required.
Comment For detailed information, see the Bit Image section in Chapter 8. Example The following example produces Double Density Double Speed
Bit Image graphics of the pattern used in the Single Density Bit Image Mode example. Note that the amount of data must be doubled for double density (the data is used 54 times rather than
27).
86
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
Bit Image Mode, Quadruple Density
ASCII Code ESC Z
n1 n2
Hex Code 1B 5A
n1 n2
Dec Code 27 90
n1 n2
Purpose Selects Quadruple Density Bit Image graphics. where: (
n1
+ 256n2) define the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
NOTE: The DATA can be expressed in a format with the appropriate decimal
values of the ASCII characters supplied especially in cases where the dot patterns of nonprintable characters are required.
Comment For detailed information, see the Bit Image section in Chapter 8.
The printed density in this mode is 120 dpi horizontal and 72 dpi vertical if selected when Letter Gothic print mode is active.
Example The following example produces quadruple density graphics of
the pattern used in the Single Density Bit Image Mode example. Note that the amount of data must be quadrupled for quadruple density (the data is used 108 times rather than 27).
Bold Print Set
ASCII Code ESC G Hex Code 1B 47 Dec Code 27 71 Purpose Selects bold character printing. Comment 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 printing double strike.
Example The following sample illustrates bold character printing.
Bold Print Reset
87
Bold Print Reset
ASCII Code ESC H Hex Code 1B 48 Dec Code 27 72 Purpose Resets bold character printing. Comment The bold print reset control code only 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.
Cancel
ASCII Code CAN Hex Code 18 Dec Code 24 Purpose Clears the print buffer of all printable symbols since the last
paper motion command was received.
Comment This control code may be used as a delete line function but
should be used with extreme care to avoid possible misprinting. This control code cancels the double wide attribute set by SO if active. No other print attributes are affected.
88
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
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).
Comment The CR code may or may not cause printing or paper motion,
depending on the DEFINE CR CODE configuration parameter value. 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 are printed in bold (double strike) print when the Overstrike Mode is enabled from the control panel.
If the DEFINE CR CODE submenu displays:
control code CR is converted to perform a carriage return and line feed function.
The CR code in Serial Matrix printer protocol cancels expanded (double wide) print when set by code SO and ESC SO (single line printing attribute).
Character Pitch 10 cpi
ASCII Code ESC P Hex Code 1B 50 Dec Code 27 80 Purpose Sets character pitch to 10 cpi. Comment Control Code ESC X can also be used to select a character pitch
of 10 cpi. See “Print Mode/Pitch Selection” on page 108.
Define CR Code CR = CR*
Define CR Code CR = CR+LF*
Character Pitch 12 cpi
89
Character Pitch 12 cpi
ASCII Code ESC M ESC : Hex Code 1B 4D 1B 3A Dec Code 27 77 27 58 Purpose Sets character pitch to 12 cpi. Comment Control Code ESC X can also be used to select a character pitch
of 12 cpi. See “Print Mode/Pitch Selection” on page 108.
Character Set Select
ASCII Code ESC l
xyz
(lowercase L)
Hex Code 1B 6C
xyz
Dec Code 27 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 19);
y
is the international language for the selected character set
(Table 20);
z
is the extended character set for the selected character set
(Table 21);
Table 19. Character Set Select (
x
)
x
Character Set
0 (hex 30) IBM PC
1 (hex 31) Multinational
2 (hex 32) ECMA Latin 1
3 (hex 33) DEC Multinational
90
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
Table 20. International Language Select (
y
)
y
x
= 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 21. Extended Character Set Select (
z
)
z
x
= 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)
Characters 80-9F (Control Codes)
91
Comment An asterisk character (*) (hex 2A) may be substituted for the
numeric values of
x, y
, or z. If the asterisk (*) is the value
selected for
x
, the character set does 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 are used.
The character set, international language and extended character set can also be selected from the printer control panel. The control code setting overrides the control panel selection. Except for the asterisk value discussed above, values other than those shown in the tables results in the control sequence being terminated.
Characters 80-9F (Control Codes)
ASCII Code ESC 7 Hex Code 1B 37 Dec Code 27 55 Purpose Selects the character set wherein hex codes 80 through 9F are
control codes. Also includes hex codes 03 through 06 and 15 in the Serial Matrix printer protocol. Cancels Character Set Select activated by ESC 6 or ESC u.
Comment This feature is also selectable from the control panel (see the
“Alternate Set 80-9F” parameter in the configuration chapter of your
User’s Manual
).
Characters 80-9F (Printable Symbols)
ASCII Code ESC 6 Hex Code 1B 36 Dec Code 27 54 Purpose Selects the character set wherein hex codes 80 through 9F are
printable symbols. Also includes hex codes 03 through 06 and 15 in the Serial Matrix printer protocol. Cancels Character Set Select activated by ESC 7 or ESC u.
Comment This feature is also selectable from the control panel (see the
“Alternate Set 80-9F” parameter in the configuration chapter of your
User’s Manual
).
92
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
Characters 80-9F (Printable Symbols)
ASCII Code ESC u Hex Code 1B 75 Dec Code 27 117 Purpose Selects the character set wherein hex codes 80 through 9F are
printable symbols. Hex codes 03 through 06 and 15 are treated like control codes. Cancels Character Set Select activated by ESC 6 or ESC 7.
Character Set Select: International Languages
ASCII Code ESC R
n
Hex Code 1B 52
n
Dec Code 27 82
n
Purpose Specifies the international language set identified by n in the
basic character set selected from the control panel (ECMA-94 Latin 1, IBM PC, Multinational, and DEC Multinational).
where:
n
corresponds to the language as shown in Table 22 below.
Table 22. International Character Sets
n
Character Set Selected
ESC R
(hex)
ECMA Latin 1
IBM PC (0437 or
0850)
Multinational
DEC
Multinational
0 (30) ASCII (USA) ASCII (USA) ASCII (USA) ASCII (USA) 1 (31) German French EBCDIC French 2 (32) Swedish German German 3 (33) Danish English (UK) English (UK) 4 (34) Norwegian Danish Norw./Danish 5 (35) Finnish Swedish Swedish 6 (36) English (UK) Italian Italian 7 (37) Dutch Spanish Spanish 8 (38) French Japanese Japanese 9 (39) Spanish French Canadian French Canadian 0A (3A) Italian Latin American Dutch 0B (3B) Turkish Danish-II Finnish 0C (3C) Japanese Spanish-II Swiss 0D (3D) Latin American-II
Character Set Select: International Languages
93
Comment The international character set can also be selected from the
control panel. The control code setting overrides the control panel character set selection. Values other than those selectable from Table 22 are ignored.
Example The following example illustrates international character
selection using the IBM PC character set.
0E (3E)
(currently undefined)
0F (3F) 10 (40) 11 (41) 12 (42) 13 (43) 14 (44) 15 (45)
Table 22. International Character Sets
n
Character Set Selected
ESC R
(hex)
ECMA Latin 1
IBM PC (0437 or
0850)
Multinational
DEC
Multinational
94
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
Condensed Print
ASCII Code SI ESC SI Hex Code 0F 1B 0F Dec Code 15 27 15 Purpose Selects 17 characters per inch (cpi) condensed print format. Comment Condensed print can also be selected using control code ESC X.
See “Print Mode/Pitch Selection” on page 108. The Serial Matrix condensed print control code SI affects all
subsequent characters. After receiving code SI, all characters are printed in condensed print until reset by ESC M, ESC P, the condensed print reset control code DC2, printer reset, or a new print mode control code. The Serial Matrix SI code (hex 0F) is equivalent to the ESC SI code. If condensed print is not allowed in the current print mode, the code is ignored.
Example The following sample illustrates condensed character printing
and reset.
Condensed Print Reset
ASCII Code DC2 Hex Code 12 Dec Code 18 Purpose Resets condensed character printing to 10 cpi. Comment The condensed print reset control code selects 10 cpi character
pitch. Other print attributes are not affected. Other control code sequences which cancel condensed print are
ESC M, ESC P, ESC @, or a new print mode control code.
Delete
ASCII Code DEL Hex Code 7F Dec Code 127 Purpose Deletes the previously received character on a line. Comment Characters that have been truncated due to line length
restrictions are not affected by this code.
Elongated (Double High) Print (One Line Only)
95
Elongated (Double High) Print (One Line Only)
ASCII Code ESC h Hex Code 1B 68 Dec Code 27 104 Purpose Selects elongated (double high) character printing for one line
only. Elongated characters are approximately double height but standard width.
Comment 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 using this feature with relative line slewing, the paper position is moved
n
+ 1 lines rather than n lines. See Chapter 9, “Vertical Page Formatting,” 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.
96
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
Elongated (Double High) Print, Set/Reset
ASCII Code ESC w
n
Hex Code 1B 77
n
Dec Code 27 119
n
Purpose Turns double-high character printing on and off. Double-high
characters are standard width but twice as high.
where:
n
= hex 1 or hex 31 turns double high printing on
n
= hex 0 or hex 30 turns double high printing off
Comment The OCR A and OCR B fonts cannot be printed in double high. NOTE: It is recommended to use double Line Feeds and Carriage Returns
when double-high character printing is on (after an ESC w control code has been sent), or else the printer overstrikes text that has already printed.
If Superscript/Subscript (ESC S) or Condensed Print (SI) is combined with Double High printing,
only
Double High printing
occurs.
Example The following sample illustrates double-high character printing.
Emphasized Print
ASCII Code ESC E Hex Code 1B 45 Dec Code 27 69 Purpose Selects emphasized character print format. Comment When the emphasized print control code is received, all
characters are printed in emphasized print until reset by the emphasized print reset control code or printer reset.
Emphasized print is ignored during superscript or subscript printing, and when 15-20 cpi characters have been selected.
Emphasized Print Reset
97
Example The following sample illustrates emphasized character printing.
Emphasized Print Reset
ASCII Code ESC F Hex Code 1B 46 Dec Code 27 70 Purpose Resets emphasized character printing. Comment The emphasized print reset control code only resets the
emphasized print character attribute.
Example See the Emphasized Print example.
Emulation Reset
ASCII Code ESC @ Hex Code 1B 40 Dec Code 27 64 Purpose Initializes all print mode related parameters to their power-up
configuration.
Comment Print mode, line spacing, international language selection,
margins, form length, skip-over perforation, and character pitch are reset to their power-up configuration. 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.
This command resets the horizontal tabs to every eighth character column.
98
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
Expanded (Double Wide) Print
ASCII Code ESC W
n
Hex Code 1B 57
n
Dec Code 27 87
n
Purpose Selects or resets expanded (double wide) print. where:
n
= 1 selects expanded print (hex 01 or hex 31)
n
= 0 resets expanded print (hex 00 or hex 30)
Comment When expanded print using ESC W is received, all characters
are printed double wide until reset by the Expanded Print Reset control code, Emulation Reset, or DC4.
Also refer to control code SO and ESC SO, Expanded (Double Wide) Print for one line only.
Example The following sample illustrates expanded character printing and
expanded character printing reset.
Expanded (Double Wide) Print (One Line Only)
ASCII Code SO ESC SO Hex Code 0E 1B 0E Dec Code 14 27 14 Purpose Selects expanded (double wide) print for one line only. Comment This expanded print control code is a line-by-line print attribute;
when the SO or ESC SO control code is received, the current line is printed double wide and automatically reset.
This control code can be reset by a paper motion control code (LF, VT, CR, etc.), by the DC4 (double wide cancel) code, ESC @ (Emulation Reset), CAN or ESC W (double wide print). When set by SO, double wide print is not cancelled by the Autowrap feature.
Extended Character Set
99
Example The following sample illustrates Expanded Print for one line only.
Another example of expanded printing is shown in the Expanded (Double Wide) Print description, above.
Extended Character Set
ASCII Code ESC 4 Hex Code 1B 34 Dec Code 27 52 Purpose Accesses the extended character set in the range hex A0
through FF using codes hex 20 through hex 7F.
Comment This code is 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.
ESC 4 is not cancelled by the next paper motion command.
Example The following sample illustrates Extended Character Set.
100
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes
Extended Character Set Cancel (Primary Character Set Select)
ASCII Code ESC 5 Hex Code 1B 35 Dec Code 27 53 Purpose Cancels Extended Character Set as selected by ESC 4, and
selects the Primary Character Set.
Comment This code is used in 7-bit systems as if data bit 8 was set to 0. 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 hex 20 through hex 7F.
Example See the Extended Character Set example.
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.
Comment The default forms length is determined by the configuration in
nonvolatile memory. Forms length is set by using the control panel or forms length control codes. Code FF cancels all single­line only print attributes.
The Form Feed command reacts differently when the VFU is active. See Chapter 9, “Vertical Page Formatting.”
Forms Length Set (Inches)
ASCII Code ESC C NUL
n
Hex Code 1B 43 00
n
Dec Code 27 67 0
n
Purpose Sets the length of forms (paper) in inches. where:
n
= whole numbers from 1 through 24 (hex 01 through hex 18) to
specify the number of inches on a page.
Loading...