IBM 4400 User Manual

4400 Thermal Label Printers
ASCII Programmer’s Reference Manual
Form Number G544-5733-01
Copyright IBM Corp.,2000, 2003
4400 Thermal Label Printers

ASCII Programmer’s Reference Manual

G544-5733-01
that you read the general information under “Notices” below. Second Edition (2003) This edition applies to the IBM 4400 Thermal Label Printer. The following paragraph does not apply to any other country where such
provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES
THIS PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions; therefore, this statement may not apply to you. Requests for IBM publications should be made to your IBM representative or to the IBM branch office serving your locality. Publications are not stocked at the address given below.
You may send your comments by facsimile to 1-800-524-1519, by E-mail to print_pubs@vnet.ibm.com, or by mail to:
THE IBM PRINTING SYSTEMS DIVISION INFORMATION DEVELOPMENT DEPARTMENT H7FE, BUILDING 003G P.O. BOX 1900 BOULDER, CO 80301-9191 USA
When you send information to IBM or IBM Printing Systems Division, you grant a non-exclusive right to use or distribute the information in any way IBM or IBM Printing Systems Division believes appropriate without incurring any obligation to you.
© Copyright International Business Machines Corporation 2000, 2003.
All rights reserved.
Note to U.S. Government Users - Documentation related to restricted rights ­Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp.
Notices
References in this publication to IBM products, programs, or services do not imply that IBM intends to make these available in all countries in which IBM operates. Any reference to an IBM product, program, or service is not intended to state or imply that only IBM’s product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any of the intellectual property rights of IBM may be used instead of the IBM product, program, or service. The evaluation and verification of operation in conjunction with other products, except those expressly designated by IBM, are the responsibility of the user.
IBM may have patents or pending patent applications covering subject matter in this document. The furnishing of this document does not give any license to use these patents. You can send license inquiries, in writing, to the IBM Director of Commercial Relations, IBM Corporation, Purchase, NY 10577, U.S.A.
Trademarks and Service Marks
The following terms, denoted by an asterisk (*) in this publication, are trademarks of IBM Corporation in the United States or other countries or both:
IBM Proprinter
The following terms, denoted by a double asterisk (**) in this publication, are trademarks of other companies:
ANSI American National Standards Institute, Inc. CG Triumvirate Agfa Division, Miles Incorporated(Agfa) Dataproducts Dataproducts Corporation DEC Digital Equipment Corporation Epson Seiko Epson Corporation Hewlett-Packard Hewlett-Packard Company IGP Printronix, Inc. LaserJet Hewlett-Packard Company Printronix Printronix, Inc. POSTNET United States Postal Service UPS United Parcel Service of America, Inc.
Table of Contents
1 Overview............................................................... 17
Introduction.............................................................................................17
About This Manual ...........................................................................17
Notes And Notices ...........................................................................18
Software Features............................................................................20
Printer Configuration ........................................................................21
2 P-Series Printer Protocol...................................... 23
Introduction.............................................................................................23
P-Series Default Values and States.................................................24
Configuring the P-Series Emulation with Control Codes ........................26
Format for Control Code Descriptions..............................................26
Special Function Control Code-Control Code Header .....................26
Command Line.................................................................................27
Attribute Set and Reset Codes.........................................................27
Control Code Reference Index.........................................................28
Backspace........................................................................................30
Bell ...................................................................................................30
Bold Print..........................................................................................31
Bold Print Reset ...............................................................................31
Carriage Return................................................................................32
Character Set Select........................................................................33
Characters 80-9F (Control Codes)...................................................35
Characters 80-9F (Printable Symbols).............................................35
Character Set Select: ECMA-94 Latin 1 Extended...........................36
Character Set Select: International Languages................................37
Elongated (Double High) Print (One Line Only)...............................38
Elongated (Double High) Print, Set/Reset........................................39
Emphasized Print.............................................................................40
Emphasized Print Reset...................................................................40
Emulation Reset...............................................................................40
Expanded (Double Wide) Print.........................................................41
Expanded (Double Wide) Print (One Line Only) ..............................41
Extended Character Set...................................................................42
ExtendedCharacter Set Cancel
(Primary Character Set Select) ........................................................42
Table of Contents
Form Feed........................................................................................43
Forms Length Set (Inches)...............................................................43
Forms Length Set (Lines).................................................................44
Form Margins, Set............................................................................44
Line Feed .........................................................................................45
Line Spacing 1/6 Inch (6 lpi).............................................................46
Line Spacing 1/8 Inch (8 lpi).............................................................47
Line Spacing 8 or 10.3 lpi (One Line Only) ......................................47
Line Spacing 7/72 Inch.....................................................................48
Line Spacing n/72 Inch.....................................................................49
Line Spacing n/216 Inch...................................................................50
Overscoring......................................................................................50
Plot, Even Dot (P-Series High Density Graphics) ............................51
Plot, Odd Dot (P-Series Normal Density Graphics) .........................51
Print Mode/Pitch Selection...............................................................52
Superscript/Subscript Printing..........................................................55
Superscript/Subscript Printing Reset ...............................................55
Super-Set Commands......................................................................56
Underline..........................................................................................56
VFU Commands (P-Series) .............................................................57
Vertical Tab......................................................................................57
3 P-Series XQ Printer Protocol................................59
Introduction.............................................................................................59
P-Series XQ Default Values and States...........................................60
Configuring the XQ Emulation with Control Codes.................................62
Format for Control Code Descriptions..............................................62
Edit Mode.........................................................................................63
NUL Code ........................................................................................63
Control Code Index ..........................................................................64
Alternate Character Set Deselect (Shift In)......................................65
Alternate Character Set Select (Shift Out) .......................................65
Carriage Return................................................................................66
Compressed Print ............................................................................67
Delete...............................................................................................68
Electronic Vertical Format Unit (EVFU)............................................68
Elongated Characters (Double High Print).......................................69
Form Feed........................................................................................69
Line Feed .........................................................................................70
Line Spacing (8 or 10.3 lpi) ..............................................................70
Plot, Even Dot (P-Series XQ High Density Graphics)......................71
Plot, Odd Dot (P-Series XQ Normal Density Graphics ....................72
Table of Contents
Select Letter Gothic (DP) .................................................................72
Space...............................................................................................73
Underline..........................................................................................73
Vertical Tab......................................................................................74
4 Serial Matrix Printer Protocol................................ 75
Introduction.............................................................................................75
Serial Matrix Default Values and States...........................................76
Configuring the Serial Matrix Emulation with Control Codes..................78
Format for Control Code Descriptions..............................................78
Escape Control Code Header ..........................................................78
Attribute Set and Reset Codes.........................................................78
Control Code Index ..........................................................................79
Backspace........................................................................................80
Bell ...................................................................................................81
Bit Image Mode, Single Density.......................................................81
Bit Image Mode, Double Density......................................................82
Bit Image Mode, Double Density Double Speed..............................82
Bit Image Mode, Quadruple Density ................................................83
Bold Print Set ...................................................................................83
Bold Print Reset ...............................................................................84
Cancel..............................................................................................84
Carriage Return................................................................................85
Character Pitch 10 cpi......................................................................85
Character Pitch 12 cpi......................................................................86
Character Set Select........................................................................86
Characters 80-9F (Control Codes)...................................................88
Characters 80-9F (Printable Symbols).............................................89
Characters 80-9F (Printable Symbols).............................................89
Character Set Select: International Languages................................90
Condensed Print ..............................................................................91
Condensed Print Reset....................................................................91
Delete...............................................................................................92
Elongated (Double High) Print (One Line Only)...............................92
Elongated (Double High) Print, Set/Reset........................................93
Emphasized Print.............................................................................93
Emphasized Print Reset...................................................................94
Emulation Reset...............................................................................94
Expanded (Double Wide) Print.........................................................95
Expanded (Double Wide) Print (One Line Only) ..............................95
Extended Character Set...................................................................96
Table of Contents
ExtendedCharacter Set Cancel
(Primary Character Set Select) ........................................................96
Form Feed........................................................................................97
Forms Length Set (Inches)...............................................................97
Forms Length Set (Lines).................................................................98
Form Margins, Set............................................................................98
Horizontal Tab..................................................................................99
Horizontal Tab Set ...........................................................................99
Line Feed .......................................................................................100
Line Feed n/216 Inch (One Line Only)...........................................100
Line Spacing 1/6 Inch.....................................................................101
Line Spacing 1/8 Inch (8 lpi)...........................................................101
Line Spacing 7/72 Inch...................................................................102
Line Spacing n/72 Inch...................................................................102
Line Spacing n/216 Inch.................................................................103
Overscoring....................................................................................103
Print Mode/Pitch Selection.............................................................104
Printer Deselect..............................................................................107
Printer Select..................................................................................107
Skip-Over Perforation.....................................................................107
Skip-Over Perforation Cancel ........................................................108
Superscript/Subscript Printing........................................................108
Superscript/Subscript Printing Reset .............................................108
Super-Set Commands....................................................................109
Underline........................................................................................109
Vertical Tab....................................................................................110
Vertical Tab, Set/Clear...................................................................111
5 IBM Proprinter III XL Printer Protocol .................113
Introduction...........................................................................................113
Proprinter III XL Emulation Default Settings...................................114
Configuring the Proprinter III XL Emulation with
Control Codes.......................................................................................116
Escape Control Code Header ........................................................116
Attribute Set and Reset Codes.......................................................116
Control Code Index ........................................................................117
Backspace......................................................................................118
Bell .................................................................................................119
Bit Image Mode, Single Density.....................................................119
Bit Image Mode, Double Density....................................................120
Bit Image Mode, Double Density Double Speed............................121
Bit Image Mode, Quadruple Density ..............................................122
Table of Contents
Bold Print Set .................................................................................123
Bold Print Cancel ...........................................................................123
Bottom Margin, Set ........................................................................124
Bottom Margin Cancel....................................................................124
Cancel............................................................................................124
Carriage Return..............................................................................125
Carriage Return, Set ......................................................................125
Character Pitch 12 cpi....................................................................126
Characters 80-9F (Control Codes).................................................126
Characters 80-9F (Printable Symbols)...........................................126
Condensed Print ............................................................................127
Condensed Print Reset..................................................................127
Deselect Printer..............................................................................128
Emphasized Print...........................................................................128
Emphasized Print Reset.................................................................128
Expanded (Double Wide) Print.......................................................129
Expanded (Double Wide) Print (One Line Only) ............................130
Expanded (Double Wide) Print Reset (1 Line)...............................130
Form Feed......................................................................................131
Forms Length Set (Inches).............................................................131
Forms Length Set (Lines)...............................................................132
Horizontal Tab................................................................................132
Horizontal Tab Set/Reset...............................................................133
Horizontal/Vertical Tabs Clear........................................................133
Initialize Parameters.......................................................................134
Line Feed .......................................................................................136
Line Feed n/216 Inch (One Line Only) ...........................................136
Line Spacing 1/6 Inch (6 lpi)...........................................................137
Line Spacing 1/8 Inch (8 lpi)...........................................................138
Line Spacing 7/72 Inch (10.3 lpi)....................................................138
Line Spacing n/72 Inch...................................................................139
Line Spacing n/216 Inch.................................................................140
Margins, Left/Right, Set..................................................................140
Overscoring....................................................................................141
Print Control Codes........................................................................141
Print One Control Code..................................................................141
Select Attributes.............................................................................142
Select Font (Print Mode) ................................................................143
Select Proportional Spacing...........................................................144
Superscript/Subscript Printing........................................................144
Superscript/Subscript Printing Reset..............................................145
Super-Set Commands....................................................................145
Table of Contents
Top-of-Form ...................................................................................145
Underline........................................................................................146
Unidirectional Printing ....................................................................146
Vertical Tab....................................................................................146
Vertical Tab Set/Clear....................................................................147
6 Epson FX-1050 Printer Protocol.........................149
Introduction...........................................................................................149
Epson FX-1050 Default Values and States....................................150
Epson Emulation Exceptions and Differences ...............................152
Epson Character Sets....................................................................153
Configuring the Epson FX-1050 Emulation with
Control Codes.......................................................................................154
Format for Control Code Descriptions............................................154
Escape Sequences ........................................................................154
Set and Reset Codes.....................................................................155
NUL Code ......................................................................................155
Print Modes Supported for Character Sets ....................................156
Control Code Index ........................................................................157
Backspace......................................................................................159
Bell .................................................................................................160
Cancel Line ....................................................................................160
Carriage Return..............................................................................160
Character Pitch 10 cpi....................................................................161
Character Pitch 12 cpi....................................................................161
Character Pitch 15 cpi....................................................................161
Character Set Select: International Languages .............................162
Clear Bit 7 of Incoming Data Bytes to 0 .........................................163
Condensed Print ............................................................................163
Condensed Print Reset..................................................................164
Cut-Sheet / Paper Feed Control.....................................................164
Define a Download Character........................................................164
Delete Character............................................................................164
Double High Print, Set/Reset .........................................................165
Double Strike..................................................................................165
Double Strike, Cancel ....................................................................166
Double Wide Print ..........................................................................166
Double Wide Print (1 Line).............................................................167
Double Wide Print (1 Line), Cancel................................................167
Emphasized Print...........................................................................168
Emphasized Print, Cancel..............................................................168
Enable Printing Hex Codes 00-1F and 80-9F ................................169
Table of Contents
Form Feed......................................................................................171
Graphics, Standard Density ...........................................................171
Graphics, Double Density...............................................................172
Graphics, Double Density Double Speed.......................................173
Graphics, Quadruple Density.........................................................174
Half Speed Mode, On/Off...............................................................174
Horizontal Tab Execute..................................................................175
Horizontal Tab Set/Release ...........................................................175
Initialize Printer...............................................................................176
Italic Printing...................................................................................176
Italic Printing, Cancel .....................................................................176
Line Feed .......................................................................................177
Line Feed n/216 Inch .....................................................................177
Line Spacing 1/6 Inch (6 lpi)...........................................................178
Line Spacing 1/8 Inch (8 lpi)...........................................................178
Line Spacing 7/72 Inch...................................................................179
Line Spacing n/72 Inch...................................................................179
Line Spacing n/216 Inch.................................................................180
Make Hex 80-9F Control Codes.....................................................180
Make Hex 80-9F Printable..............................................................180
Master Print Select.........................................................................182
Paper Out Detection, Enable .........................................................182
Paper Out Detection, Disable.........................................................183
Pass Bit 7 from Host ......................................................................183
Printer Deselect..............................................................................183
Printer Select..................................................................................184
Reassign Graphics Mode...............................................................184
Remove Downloaded Characters ..................................................184
Select Graphics Mode....................................................................185
Select Italic Character Set..............................................................186
Select 9-Pin Graphics Mode...........................................................186
Select Print Quality.........................................................................186
Select/Deselect Proportional Spacing............................................187
Select Serif or Sans Serif Font.......................................................187
Select User-Defined Font...............................................................187
Select Vertical Tab Channel...........................................................187
Set Absolute Horizontal Print Position in 1/60 Inch........................188
Set Bit 7 of Incoming Data Bytes to 1 ............................................188
Set Intercharacter Spacing in n/120 Inch.......................................188
Set Margin, Left..............................................................................189
Set Margin, Right ...........................................................................189
Set Forms Length by Lines ............................................................190
Table of Contents
Set Forms Length in Inches ...........................................................190
Set Relative Horizontal Print Position in n/120 Inch.......................191
Set Vertical Tabs in Channels........................................................191
Skip Over Perforation.....................................................................192
Skip Over Perforation, Cancel........................................................192
Super-Set Commands....................................................................192
Superscript and Subscript Printing.................................................193
Superscript and Subscript Printing, Cancel....................................193
Underline........................................................................................194
Unidirectional Printing, 1 Line ........................................................194
Unidirectional Printing, Set/Reset ..................................................194
Vertical Tab, Execute.....................................................................195
Vertical Tab, Set/Clear...................................................................195
7 Super-Set Programming.....................................197
Introduction...........................................................................................197
The Super-Set Commands...................................................................197
Character Set Selection .................................................................198
Character Spacing n/240 Inch........................................................201
Font Selection ................................................................................201
Font Size........................................................................................202
TrueType Font Selection................................................................203
Form Length and Width..................................................................204
Host Form Size ..............................................................................205
Horizontal Movements in Printer Resolution..................................205
PCX Data .......................................................................................206
Line Spacing n/288 Inch.................................................................206
Page Orientation Select .................................................................207
Print Engine Options ......................................................................209
Printer Protocol Select ...................................................................216
Software Page Eject.......................................................................216
Bar Codes.............................................................................................217
Bar Code Format............................................................................218
Australian 4-State...........................................................................222
Codabar .........................................................................................223
Code 39..........................................................................................225
Code 93..........................................................................................227
Code 128........................................................................................229
EAN 8.............................................................................................234
EAN 13...........................................................................................235
FIM.................................................................................................236
Interleaved 2/5 (I-2/5) and German I-2/5........................................238
Table of Contents
Maxicode........................................................................................239
MSI.................................................................................................241
PDF 417.........................................................................................242
PostBar and Royal Mail..................................................................243
POSTNET ......................................................................................244
Telepen ..........................................................................................245
UCC/EAN-128................................................................................246
UPC-A............................................................................................251
UPC-E............................................................................................252
UPC Shipping.................................................................................255
UPS 11...........................................................................................256
8 Graphics.............................................................257
Introduction...........................................................................................257
Bit Image Graphics...............................................................................258
Plotting a Bit Image Pattern ...........................................................259
Bit Image Density...........................................................................261
Bit Image Programming Format.....................................................262
P-Series Compatible Plot Mode (Odd/Even Dot Plotting).....................264
Plot Density....................................................................................264
Plot Data Byte Format....................................................................265
Plot Data Line Format ....................................................................266
Plotting the Data.............................................................................268
To Exit the P-Series Plot Mode......................................................269
Combining Graphics and Text..............................................................269
9 Vertical Page Formatting.................................... 271
Introduction...........................................................................................271
General P-Series EVFU Programming Information..............................271
VFU Load/Save/Clear ....................................................................272
P-Series EVFU .....................................................................................273
Start Load Code-Hex 1E or 6E ......................................................273
Channel Assignment......................................................................273
End Load Code-Hex 1F or 6F ........................................................274
Using the EVFU .............................................................................274
Clearing the EVFU Memory ...........................................................276
Relative Line Slewing.....................................................................277
Serial Matrix VFU..................................................................................278
Executing Vertical Tabs .................................................................279
Vertical Tab Positions ....................................................................279
A Standard ASCII Character Set........................... 281
Table of Contents
B PTR_SETUP Option...........................................283
Overview...............................................................................................283
The PTR_SETUP Commands..............................................................283
Commands.....................................................................................284
C P-Series Plot Byte Definition..............................289
D Glossary.............................................................291

1 Overview

Introduction

The IBM* ASCII 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 ASCII Emulation software.
17
Chapter 1 Introduction

Notes And Notices

For your safety and to protect valuable equipment, it is very important that you read and comply with all information highlighted under notes and notices:
<#> The word Danger next to the lightning slash indicates the
DANGER
presence of a hazard that could cause death or serious personal injury. Danger and Caution notices are numbered to help you find the translated versions in the
Notices
booklet.
IBM 4400 Safety
CAUTION
<#> The word Caution next to the exclamation point (!) indicates the
presence of a hazard that could cause moderate or minor personal injury.
CAUTION
<#> The word Caution next to this symbol indicates a heavy
assembly that requires two or more persons to lift or hold.
CAUTION
<#> The word Caution next to this symbol indicates a part or
assembly that is hot enough to burn you.
18
Notes And Notices
CAUTION
<#> The word Caution next to this symbol indicates a part or
assembly that is sharp enough to cut you.
CAUTION
<#> The word Caution next to this symbol indicates the presence of
laser radiation. NEVER look directly into laser light.
ATTENTION
The word Attention indicates the possibility of damage to a program, device, system, or data.
IMPORTANT
The word Important indicates information vital to pr oper operation of the printer.
NOTE: A note gives you helpful information and tips about printer operation
and maintenance.
Glossary
The Glossary defines computer terms and acronyms used in this manual. It is located just before the Index.
19
Chapter 1 Introduction

Software Features

The ASCII 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.
20

Printer Configuration

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 198).
Printer Configuration
Matching certain printer operational settings to those of the host computer is known as printer configuration adjusted according to the printer function key descriptions in your printer
User's Guide
from the printer control panel or by the software commands described in Chapters 2 through 7 of this manual.
Your
User's Guide
as well as descriptions of each configuration parameter available with your printer.
. You can select ASCII Emulation configuration options directly
also contains detailed configuration menus and diagrams,
.
The settings, or configuration parameters, are
NOTE: You must also enter and exit the ASCII Emulation configuration menu
accordingto your printer
Pressing an invalid key to enter a parameter value may move you to
another level in the configuration or exit the configuration menu
completely.
User's Guide
configuration procedures.
21
Chapter 1 Introduction
22

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
Guide.
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:
User's
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
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
control codes, refer to Appendix B, “PTR_SETUP Option”.
User's Guide.
To save the configuration using host
User's Guide.
23
Chapter 2 Introduction

P-Series Default Values and States

The factory settings for the P-Series emulation menu options (for an 8” printer) 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 codes can override many of the settings for these menu options.
Select CPI 10.0 CPI Select LPI 6.0 LPI Typeface Letter Gothic Character Group Standard Sets Character Set IBM PC
User's Guide
Table 1. P-Series Default Settings
Characteristic Default Setting
). Host control
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
24
*Advanced User:
Control Code 06 8.0 LPI Control Code 08 Elongated Bold Disable
P-Series Default Values and States
Table 1. P-Series De fault Settings (continued)
Characteristic Default Setting
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
* Advanced User must be enabled under the Printer Control Menu in order for the Advanced User parameters to be visible and changeable.
25
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 c ontrol 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
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: 171
ETX G 03 47 3 71 ESC G 1B 47 27 71
^ G5E479471 ~ G7E4712671
NOTE: The SFCC has been set to ESC for all examples.
n
)
26

Command Line

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; where:nis the whole number of inches, andfis 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 error, the command is not executed, and the line truncates to include any of the error messages listed in the following table:
Error Message Explanation
Invalid Parameter The command received cannot be
Parameter Out of Bounds A decimal parameter in the command is out
Missing Parameter One or more necessary parameters is
not
cause any paper motion. If a Command Line contains an
Table 2. Command Line Error Messages
n.f
interpretedcorrectly, or the correctcommand is not followed by an expected delimiter.
of range.
missing from the command.
Illegal Character in Decimal Parameter
TooManyDigitsinDecimal Parameter
A decimal parameter contains a non-numeric character, or a fractional digit is out of range.
A decimal parameter contains too many digits.

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.
27
Chapter 2 Configuring the P-Series Emulation with Control Codes

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 43 Line Feed LF 45 Vertical Tab VT 57
Page Format
Backspace BS 30 Carriage Return CR 32 Forms Length Set (Inches) SFCC INCHES; Forms Length Set (Lines) SFCC LINES; Form Margins, Set SFCC v 44 Line Spacing 1/6 Inch (6 lpi) SFCC 2 46
SFCC LPI;
Line Spacing 1/8 Inch (8 lpi) SFCC 0 47
SFCC LPI;
Line Spacing 8 or 10.3 lpi (1 line only) ACK 47
SFCC f Line Spacing 7/72 Inch SFCC 1 48 Line Spacing Line Spacing VFU Commands DLE through US 57
n
/72 Inch SFCC A 49
n
/216 Inch SFCC 3 50
n.f
43
n
44
n n
28
Print Attributes
Bold Print SFCC G 31 Bold Print (1 line only) SFCC j 31 Bold Print Reset SFCC H 31 Elongated (Double High) Print (1 line) SFCC h 38
BS Elongated (Double High) Print, Set/Reset SFCC w Emphasized Print SFCC E 40 Emphasized Print Reset SFCC F 40 Expanded (Double Wide) Print SFCC W Expanded (Double Wide) Print (1 line) SFCC k 41 Overscoring SFCC _ Print Mode/Pitch Selection SFCC X
SFCC PMODE;
SFCC [nq
n
n
n
mn
39
41 50
52
n
Control Code Reference Index
FUNCTION ASCII CODE PAGE Print Attributes (continued)
Superscript/Subscript Printing SFCC S Superscript/Subscript Printing Reset SFCC T 55 Underline SFCC – 56
Graphics
Plot, Even Dot (High Density) EOT 51
SFCC d
Plot, Odd Dot (Normal Density) ENQ 51
SFCC e
Other Functions
Bell BEL 30 Character Set Select SFCC l Characters 80-9F (Control Codes) SFCC 7 35 Characters 80-9F (Printable Symbols) SFCC 6 35 Character Set Select: ECMA Extended SFCC OSET; Character Set Select: International SFCC R
Languages SFCC PSET; Emulation Reset SFCC @ 40 ExtendedCharacter Set SO 42
SFCC SO SFCC n SFCC 4
ExtendedCharacter Set Cancel SI 42
(Primary Set Select) SFCC SI
SFCC o SFCC 5
Super-Set Commands SFCC |};56
n
xyz
n
n
n
55
33
36 37
29
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.
30
Loading...
+ 286 hidden pages