260070 001A_PM_S809NEW PTX_PRM_S809_260070 001 PTX PRM S809
PTX_PRM_S809_260070-001 PTX_PRM_S809_260070-001
PTX_PRM_S809_260070-001 PTX_PRM_S809_260070-001
PTX_PRM_S809_260070-001 PTX_PRM_S809_260070-001
User Manual: PTX_PRM_S809_260070-001
Open the PDF directly: View PDF
.
Page Count: 228
| Download | |
| Open PDF In Browser | View PDF |
Prog
gra
amme
er’s
s
Ma
Manu
ual
Programmer Manual
PTX‐S809
Introduction
This publication provides information about the commands supported by your printer. The commands are
organized by function groups. Each command has both a brief and a detailed description.
Each command has the following structure:
Name and function description. Information about protocol (IBM® Proprinter XL24-XL24AGM, IBM Personal
2391+, EPSON FX Series, ANSI 3.64, DBCS ).
The hexadecimal and decimal codes for the command: n represents variable parameters of the command.
The functions of these parameters are explained in its corresponding command description.
Index of Contents
Chapters
Page
Contents
Introduction
Index of Contents
Index of Command Summary in Alphabetical Order
Common commands for the Printronix S809 model printers.
Commands for the Printronix S809 model printer with the DBCS feature present
Preface
1
1
1
7
7
11
13
Chapter 1. EPSON/IBM Mode Commands
Print and Line Feed Execution
Format Control
Print Mode
Character Set
Download Character
Bit Image
Data Input Control
Miscellaneous
15
15
16
27
40
42
45
48
50
Chapter 2. Native Emulation Commands
Format Control
Native Character Set
Bar Codes
Miscellaneous
55
55
56
58
64
Chapter 3. ANSI Emulation Commands
Character Set Control
Character Pitch and Print Modes
Horizontal Movements
Vertical Movements
Interface Control
Operating System Control
Paper Path Selection
Graphics Control Functions
Barcode Functions
Basic Program Sample
Basic Program Printed Output
69
70
72
74
76
80
81
83
84
85
88
89
Contents
1
260070‐001A
Programmer Manual
PTX‐S809
Chapters
Page
Chapter 5. Epson LQ1600K Emulation Commands
91
Appendix A. Code Pages
ASCII Code Pages
Character Sets
Hexadecimal to Decimal Table
Epson FX-series Code Pages
ANSI National Variations
99
99
161
163
164
167
Appendix B‐ Interfaces
169
169
175
176
176
The Parallel Interface
The Serial Interface
LAN Interface Port
USB Interface Port
Appendix C– Network Interface Reference
Network Configuration Parameters
Managing a Single Printer Configuration Using the Internal Webpage
Managing Multiple Printers Using the Remote Printer
Network Interface Summary
177
177
179
179
179
Appendix D – Lan Interface MIB Support
183
Appendix E- The Remote Printer Management Utility
Operating System Compatibility
Software Installation and Documentation
189
189
189
Appendix F – Printer Driver Support
191
Appendix G- Bar Code and OCR Printing Options
193
Appendix H Configuration Menu Lockout
197
Appendix I Addendum (Bar Codes)
199
Notices
219
Customer Support
223
Contents
2
260070‐001A
Programmer Manual
PTX‐S809
Figures
Page
Figure 1.Page Presentation
13
Figure 2. USA(CP437)
Figure 3. Greek(CP437-G)
Figure 4. Croatian(CP437-SLAVIC)
Figure 5. Greek/Latin (ISO 8859-7)
Figure 6 .ISO8859/1(Latin1)
Figure 7.Multilingual(CP850)
Figure 8.Old Greek(CP851)
Figure 9.EasternEurope(CP852)
Figure 10.Turkish(CP853)
Figure 11.Cyrillic(CP855)
Figure 12.Turkish(CP857)
Figure 13.EuroPCMultilingual(CP858)
Figure 14.Portugal(CP860)
Figure 15.Hebrew(CP862)
Figure 16.Canada/France(CP863)
Figure 17.Arabic(CP864)
Figure 18.CP864E(Arabic)
Figure 19.Denmark/Norway(CP865)
Figure 20Russian(CP866)
Figure 21.Turkish2(CP867)
Figure 22.OCR-A(CP876)
Figure 23.OCR-B(CP877)
Figure 24.ISO8859/2(Latin2)
Figure 25.ISO8859/3(Latin3)
Figure 26.ISO8859/4(Latin4)
Figure 27.ISO8859/5(Latin/Cyrillic)
Figure 28.ISO8859/8 (Latin 8)
Figure 29.ISO8859/9(Latin5)
Figure 30.BalticWindows(CP921)
Figure 31.Estonian (CP922)
Figure 32.ISO8859/15(Latin9)
Figure 33.Urdu (CP01006)
Figure 34.Arabic Extended (CP1046)
Figure 35.ISO8859/6(Latin/Arabic)
Figure 36.Farsi(CP1098)
Figure 37.Estonian (CP1116)
Figure 38.Latvian (Personal Computer) (CP1117)
Figure 39.Lthuanian (Personal Computer) (CP1118)
Figure 40.CentralEurope(CP1250)
Figure 41.Cyrillic(CP1251)
Figure 42.Latin1AnsiWindows(CP1252)
Figure 43.GreekWindows(CP1253)
Figure 44.TurkishWindows(CP1254)
Figure 45.HebrewWindows(CP1255)
Figure 46.ArabicWindows(CP1256)
Figure 47.Batlic Windows (CP1257)
Figure 48.MAZOWIA(Polish)
Figure 49.GOST(Russian)
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
Contents
3
260070‐001A
Programmer Manual
PTX‐S809
Figures
Page
Figure 50.TASS(Cyrillic)
Figure 51.UKRANIAN(oldversion)
Figure 52.KOI8-U(newversion)
Figure 53. Farsi 1
Figure 54. Farsi 2
Figure 55.Kamenicky
Figure 56.CWI
Figure 57.Roman-8
Figure 58.IN2
Figure 59.Turkish
Figure 60. Bulgarian
Figure 61.96GREEK
Figure 62.CharacterSet1
Figure 63.CharacterSet2
Figure 64.Hexadecimal to Decimal Table
Figure 65. Epson Extended Graphics Character
Figure 66. Epson Italic Character
Figure 67. Epson Extended Character Variables
Figure 68. ANSI National Variations
Figure 69. Mode Centronics
Figure 70. Mode IEEE 1284
Figure 71. Intelligent Mail Bar Code in Native Commands Example (Bar Code Mode Native)
Figure 72. Intelligent Mail Bar Code in Epson/IBM Commands Example (Bar Code Mode Alt. 1)
Figure 73. Intelligent Mail Bar Code in ANSI Commands Example
Figure 74. Intelligent Mail Bar Code in MTPL Commands Example (Bar Code Mode Alt. 1)
Figure 75. Bar Code Examples with NATIVE Commands Example (Bar Code Mode Native)
Figure 76. Hex Dump of example on figure 75
Figure 77. Bar Code Examples with NATIVE Commands Example (Bar Code Mode Native)
Figure 78. Bar Code Examples with NATIVE Commands Example (Bar Code Mode Native)
Figure 79. Bar Code Examples with NATIVE Commands Example (Bar Code Mode Native)
Figure 80. Hex Dump of example on figures 77, 78, 79
Figure 81. Bar Code Examples with MTPL Commands (Bar Code Mode Alt. 1)
Figure 82. Bar Code Examples with MTPL Commands (Bar Code Mode Alt. 1)
Figure 83. Hex Dump of example on figures 81, 82
Figure 84. Bar Code Examples with SEIKOSHA Commands (Bar Code Mode Alt. 1)
Figure 85. Hex Dump of example on figure 84
Contents
4
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
174
175
203
203
204
204
205
206
207
208
209
210
212
213
214
216
217
260070‐001A
Programmer Manual
PTX‐S809
Tables
Page
Table 1. 7-bit Substitution
Table 2. 8-bit Substitution
Table 3. 6-bit mapping
Table 4. 24-bit mapping
Table 5. Network Interface Summary
Table 6. List of the MIB of the printer
Table 7. Bar Code Printing Options for Non-UPC Family Bar Codes
Table 8. Bar Code Printing Options for UPC Family Bar Codes
Table 9. OCR Symbol Subsets
Contents
5
70
71
84
85
179
183
193
195
196
260070‐001A
Programmer Manual
Contents
PTX‐S809
6
260070‐001A
Programmer Manual
PTX‐S809
Index of Command Summary in Alphabetical Order
This section contains a summary of commands used on the Printronix S809 model printer. It is divided into
2 separate sections. “Common commands for the Printronix S809 model printers” lists all the commands
common to both the Single Byte Character Set (SBCS) and Double Byte Character Set (DBCS) features.
“Commands for the Printronix S809 model printer with the DBCS feature present” lists commands that can
only be used when the DBCS feature is present.
Common commands for the Printronix S809 model printers
Command
Description
Page
BEL
BEL
BS
BS
CAN
CAN
CR
Buzzer (IBM/EPSON).
Bell (ANSI).
Print and space back one position (IBM/EPSON).
Back space (ANSI).
Cancels line. (EPSON)
Cancels data. (IBM)
Prints all received data and the column counter is set to the left margin
IBM/EPSON)
Carriage return (ANSI).
Selects printer. (IBM)
Selects printer. (EPSON)
Selects printer (Data Control 1) (ANSI)
Sets 10 cpi printing. (IBM)
Cancels compressed printing. (EPSON)
Deselects printer. (EPSON)
Deselects printer (Data Control 3) (ANSI)
Cancels double width printing (IBM/EPSON)
Bar Code Selection
Prints bar code symbols.
Re-initializes the printer.
Sets vertical spacing n/180 inch.
Sets vertical spacing 12 lines/30 mm.
Sets vertical spacing to 3 lines/30 mm.
Sets vertical spacing 4 lines/30 mm.
Sets vertical spacing 6 lines/30 mm.
Sets vertical spacing 8 lines/30 mm.
Sets the horizontal spacing to 15, 17.1, 20, 24 CPI.
Sends the operator panel messages to the serial I/F.
Selects LQ fonts.
Sets amplification factor.
Selects/loads or parks the fanfold from the Front 2 path.
Sets quality printing.
String rotation.
Digit rotation.
Selects character set ISO Character Sets or Code Pages.
Selects/loads or parks the fanfold from the Front1 path.
Selects the user macros.
50
81
50
74
48
48
CR
DC1
DC1
DC1
DC2
DC2
DC3
DC3
DC4
DC4 DC4 ESC !
DC4 DC4 ESC (GS
DC4 DC4 ESC @
DC4 DC4 ESC 1
DC4 DC4 ESC 3 1
DC4 DC4 ESC 3 3
DC4 DC4 ESC 3 4
DC4 DC4 ESC 3 6
DC4 DC4 ESC 3 8
DC4 DC4 ESC A
DC4 DC4 ESC D
DC4 DC4 ESC g
DC4 DC4 ESC J
DC4 DC4 ESC N
DC4 DC4 ESC p
DC4 DC4 ESC R
DC4 DC4 ESC r
DC4 DC4 ESC S
DC4 DC4 ESC T
DC4 DC4 ESC u
Contents
7
15
74
49
49
80
27
27
49
80
27
58
64
64
55
55
55
55
56
56
56
66
56
64
65
57
65
65
57
65
66
260070‐001A
Programmer Manual
PTX‐S809
Command
Description
Page
DC4 DC4 ESC Y
DC4 DC4 ESC Z
DEL
DEL
ENQ
ESC
ESC ESC [ p1 a
ESC [ p1; pn h
ESC [ p1 d
ESC [ p1 q
ESC p1; pn l
ESC [ p1; pn v
Selects emulation.
Makes AGA in column.
Deletes the last character. (EPSON)
Delete (ANSI).
Enquiry (ANSI).
Escape (ANSI).
Sets or cancels underlined printing (IBM/EPSON).
Horizontal position relative (HPR) (ANSI).
Sets mode (SM) (ANSI).
Vertical position absolute (VPA) (ANSI).
Select graphics mode/density (GRM) (ANSI).
Resets mode (RM) (ANSI)
Sets vertical tab stops at specified positions
(Multiple Vertical Tab Set -VTS) (ANSI)
Sets printing style. (EPSON)
Cancels MSB control. (EPSON)
Sets the absolute printing position. (EPSON)
Selects user-defined character set. (EPSON)
Defines the user-defined download characters. (EPSON)
Sets score line. (EPSON)
Sets dot graphics printing. (IBM , EPSON)
Selects the Vertical Format Unit (VFU) channel. (EPSON)
Sets 12 CPI. (IBM)
Copies characters from ROM to RAM. (EPSON)
Reassigns dot graphics mode. (EPSON)
Initializes the printer. (EPSON)
Selects the score line. (IBM 2391 + only)
Sets font and pitch of a character. (IBM 2391 + only)
Horizontal position absolute (HPA) (ANSI).
Vertical position backward (VPB) (ANSI).
Selects national character set (Select National Characters -SNC) (ANSI).
Horizontal and vertical position absolute (HVP) (ANSI).
Selects emulation (EMU) (ANSI).
Unidirectional printing (UDP) (ANSI).
Sets bar code parameters (BC) (ANSI).
Sets horizontal tab stops at specified positions multiple horizontal
tab set (HTS) (ANSI)
Selects the printing type style. (IBM 2391 + only)
Sets double high printing and double line feed. (IBM)
Sets vertical units. (IBM)
Set the print quality. (IBM 2391 + only)
Selects 8 or 24 needle dot graphics mode. (IBM)
Sets initial conditions. (IBM 2391 + only)
Vertical position relative (VPR) (ANSI).
Horizontal position backward (HPB) (ANSI).
Special print mode (Oversize/Expanded/Bar code Mode -SPM) (ANSI).
Sets the line/character spacing (ANSI).
Left/right margin set (SLR) (ANSI).
Graphic size modification (GSM) (ANSI).
Form definition (FD) (ANSI).
66
66
49
81
80
81
27
75
82
77
84
82
ESC !
ESC #
ESC $
ESC %
ESC &
ESC ( ESC *
ESC /
ESC :
ESC :
ESC ?
ESC @
ESC [ ESC [ I
ESC [ p1 '
ESC [ p1 k
ESC [ p1 x
ESC [ p1; p2 f
ESC [ p1; p2 SP~
ESC [ p1; pn {
ESC [ p1; pn }
ESC [ p1; pn u
ESC [ @
ESC [ @
ESC [ \
ESC [ d
ESC [ g
ESC [ K
ESC [ p1 e
ESC [ p1 j
ESC [ p1 t
ESC [ p1; p2 G
ESC [ p1; p2 s
ESC [ p1; p2 SP B
ESC [ p1; p2; p3 r
Contents
8
79
28
49
16
42
42
28
45
17
29
44
46
51
29
32
75
78
70
78
83
74
85
76
30
30
17
31
48
51
77
75
73
80
75
73
79
260070‐001A
Programmer Manual
PTX‐S809
Command
Description
Page
ESC [ p1; pn g
ESC [ p1; pn m
ESC [ T
ESC [ u n
ESC [ v nm
ESC \
ESC \
ESC \ or ST
ESC ]
ESC ^
ESC _
ESC +
ESC <
ESC =
ESC =
ESC >
ESC 0
ESC 1
ESC 2
ESC 2
ESC 3
ESC 3
ESC 4
ESC 4
ESC 5
ESC 5
ESC 6
ESC 7
ESC 7
ESC A
ESC A
ESC a
ESC B
ESC b
Tab clear (TBC) (ANSI).
Select graphics rendition (SGR) (ANSI).
Selects a Code page (IBM).
Bar Codes selection. (IBM -Epson)
Sets Barcode parameters. (IBM -Epson)
Sets the relative dot position. (EPSON)
Prints characters from all characters table. (IBM)
String terminator (ANSI).
Sets a reverse line feed. (IBM)
Prints a single character from the all characters table. (IBM)
Sets or cancels overscore printing. (IBM)
Sets n/360-inch line spacing. (IBM)
Prints characters for one line from left to right. (EPSON)
Defines downloaded characters. (IBM)
Sets MSB to 0. (EPSON)
Sets MSB to 1. (EPSON)
Sets vertical spacing to 1/8 inch (IBM/EPSON).
Sets vertical spacing to 7/72 inch. (IBM)
Sets the vertical spacing to 1/6 inch. (EPSON)
Enables the vertical spacing set by ESC A. (IBM)
Sets vertical spacing to n/180 inch. (IBM , EPSON)
Sets vertical spacing to n/216 inch. (IBM XL24, 2391 +)
Sets the current position as top of form (first printable line). (IBM)
Sets italics printing mode. (EPSON)
Sets an automatic line feed after a carriage return. (IBM)
Cancels italics printing. (EPSON)
Selects the Character Set 2 (IBM).
Selects the Character Set 1 (IBM).
Cancel Printable Code Area Expansion (EPSON)
Sets variable vertical spacing to n/60 inch. (IBM , EPSON)
Sets variable vertical spacing to n/72 inch. (IBM XL24, 2391 +)
Sets Letter Quality justification printing. (EPSON)
Sets vertical tab stops (IBM/EPSON).
Sets vertical tab stops in one of the 8 Vertical Format Unit channels
Available (EPSON)
NUL Resets vertical tab stops (IBM/EPSON).
Resets vertical tab stops in one of the 8 Vertical Format Unit channels
Available (EPSON)
Resets to initial state (RIS) (ANSI).
Sets form length to n inches (IBM/EPSON).
Sets form length to n lines (IBM/EPSON).
Sets horizontal tab stops (IBM/EPSON).
Spaces forwards relative dot position. (IBM)
Index (ANSI).
Spaces backward relative dot position. (IBM)
Sets emphasized printing (IBM/EPSON).
Next line (ANSI).
Cancels emphasized printing (IBM/EPSON).
Sets double strike printing (IBM/EPSON).
Sets 15 CPI. (EPSON)
78
72
40
53
53
17
40
81
15
41
33
18
29
44
50
50
18
18
18
18
19
19
19
33
15
33
41
41
34
19
19
33
20
ESC B
ESC b NUL
ESC c
ESC C 0 n
ESC C n
ESC D
ESC d
ESC D or IND
ESC e
ESC E
ESC E or NEL
ESC F
ESC G
ESC g
Contents
9
20
20
21
82
21
21
21
22
76
22
34
76
35
35
34
260070‐001A
Programmer Manual
PTX‐S809
Command
Description
Page
ESC H
ESC H or HTS
ESC I
ESC J
ESC j
ESC J or VTS
ESC k
ESC K
ESC k
ESC K or PLD
ESC I
ESC L
ESC L or PLU
ESC M
ESC M or RI
ESC N
ESC O
ESC P
ESC P
ESC p
ESC P data
ESC Q
ESC Q
ESC Q or PU1
ESC R
ESC R
ESC S
ESC s
ESC SP
ESC T
ESC t
ESC U
ESC W
ESC w
ESC X
ESC x
ESC Y
Cancels double strike printing (IBM/EPSON).
Horizontal tab setting (ANSI).
Selects printing type for resident and DLL characters. (IBM)
Advances paper n/216 inch (IBMXL24 and 2391)
Feed paper n/216 in reverse direction (EPSON)
Vertical tab setting (ANSI).
Selects the LQ fonts. (EPSON)
Normal density dot graphics printing (60 dpi) (IBM/EPSON).
Prints test character (PTC) (ANSI).
Partial line down (ANSI).
Sets left margin. (EPSON)
Double density dot graphics printing (120 dpi) (IBM/EPSON).
Partial line up (ANSI).
Selects 10.5 point. 12 CPI. (EPSON)
Reverse index (ANSI).
Sets the skip over perforation to n lines (IBM/EPSON).
Disables the skip over perforation (IBM/EPSON).
Selects 10.5 point, 10 cpi (EPSON)
Sets or cancels proportional printing. (IBM)
Sets or cancels proportional printing. (EPSON)
Enter dot graphics mode (Device Control String) (ANSI).
Sets the right margin. (EPSON)
Deselects Printer. (IBM)
Executes Self test (ANSI).
Sets horizontal and vertical tab stops to default values. (IBM)
Selects Nation character set. (EPSON)
Sets subscript or superscript printing (IBM/EPSON).
Sets and resets Quiet printing. (EPSON)
Sets inter character space. (EPSON)
Cancels subscript or superscript printing (IBM/EPSON).
Selects characters table. (EPSON)
Sets printing direction (IBM/Epson).
Sets or cancels double width printing (IBM/EPSON).
Sets or cancels double height printing. (EPSON)
Sets left and right margins. (IBM)
Selects Letter Quality or Draft. (EPSON)
Double density dot graphics printing at double-speed graphics
(120 virtual dpi) (IBM/EPSON)
Quadruple density dot graphics printing (240 virtual dpi) (IBM/EPSON)
Advances paper to the top of the next page (IBM/EPSON).
Form feed (ANSI).
Logically moves the print carriage to the next horizontal tab stop
(IBM/EPSON).
Horizontal tab (ANSI).
Line Feed (IBM/EPSON).
Line feed (ANSI).
Ignored (ANSI).
Sets compressed printing. (EPSON)
Shift in (ANSI).
Sets compressed printing (IBM/EPSON).
34
76
35
16
16
79
41
46
82
77
22
46
78
35
77
23
24
35
36
36
84
24
50
81
24
41
36
37
25
37
42
53
38
38
25
38
ESC Z
FF
FF
HT
HT
LF
LF
NUL
SI
SI
SI or ESC SI
Contents
10
47
47
28
79
26
75
16
76
80
39
72
36
260070‐001A
Programmer Manual
PTX‐S809
Command
Description
Page
SO
SO
SO or ESC SO
SP
VT
Sets double width printing (one line) (IBM/EPSON).
Shift out (ANSI).
Sets double width printing (one line) (IBM/EPSON).
Space (ANSI).
Advances paper to the next vertical tab stop of the selected
VFU channel (IBM/EPSON).
Vertical tab (ANSI)
39
73
37
74
VT
26
78
Commands for the Printronix S809 model printer with the the DBCS feature present.
Command Description Page
ESC ¦ n
Sets – Resets double width and double height print modes.
ESC ( X n1 n2 a1 a2 a3 Defines a special printing effect.
FS &
Enter the DBCS print mode.
FS .
Exit the DBCS print mode.
FS ! n
Sets multiple print attribute at once.
FS -n
Sets -Resets underline mode.
Sets user-defined character (DownLoading).
FS 2 a1 a2 n1.. n72
FS b n
Sets the DBCS standard line.
FS c nl nh
Sets the HMI (Horizontal Motion Index)
FS D d1 d2
Composes two half-width, rotated characters into a normal size rotated
character space.
FS DC2
Cancels half-sized and 1/4-sized print and restores normal size print. 93
FS DC4
Resets double width mode.
FS J
Sets 90 degrees counterclockwise character rotation.
FS K
Resets character rotation.
FS S n1 n2
Defines the left and right empty character space of a normal-sized character.
FS SI
Sets the print of half-sized characters.
FS SO
Sets double width mode.
FS rn
Sets superscript or subscript print mode (1/4 normal size).
FS T n1 n2
Defines the left and right empty character space of a half-sized character.
FS U
Define half-sized character as half of a normal sized character.
FS vn
Sets -Cancels line drawing character connection mode.
FS V
Resets print of half-sized characters.
FS W n
Sets -Resets quadruple print mode.
FS xn
Sets print quality level for the DBCS font set.
Contents
11
92
97
91
91
96
93
96
97
97
93
92
92
93
94
95
92
95
94
94
97
95
92
96
260070‐001A
Programmer Manual
PTX‐S809
This page is intentionally left blank
Contents
12
260070‐001A
Programmer Manual
PTX‐S809
Preface
Print Job Processing
There are no EPSON/IBM controls that explicity define print job boundaries. A print job for the Printronix
S809 is established by the host system and consists of any set of related print objects. A print job could be
as short as one character or could be many pages long.
As an aid to the printer operator, the printer provides a DATA indicator on the operator panel. When the
DATA indicator is flashing, it indicates that data is currently being received, processed, or printing, or that
data is buffered in the printer but cannot be immediately printed. If the DATA indicator is not lit, then all print
jobs have been completed.
Configuration parameter values can be changed at any time; however, to obtain predictable results,
changes to operator panel configuration parameter values should be made before the print job is sent to
the printer and after the previous print job has completed printing. Changing configuration parameter
values while a print job is in progress may cause unpredictable results.
Printronix Company recommends the following to ensure that your print jobs run correctly:
● Establish a known print environment, and end any previous print job. Start each print job with a Set
Initial Conditions control or an Initialize Printer controlr. This control resets the printer environment to the
default settings. You can then set additional controls depending on your print job environment.
● End each print job with a FORM FEED control. This control causes all data to be printed, and the
current position is set to the top-of-form position.
● If a print job is abnormally terminated, the job should be canceled. See “Cancel Print” in “Chapter 2.
Understanding the Operator Panel” in the Administrator’s Guide for your printer.
Page Printing Concept
The Printronix S809 processes print jobs in terms of pages, as well as in lines and columns. A page is a
logical entity
whose boundaries are defined by the width and the page length. These boundaries are established during
printer initialization using the printer defaults, and can be changed using the Configuration Menu or by
issuing the appropriate data stream controls.
As a job prints, the printer controller maintains both the logical position and the physical position on the
page. If a print job does not end with a proper job terminator (for example, FORM FEED), then:
● All data for the current page may not print
● The next print job may be misaligned on the form
● Residual data from a previous job could print with the new job.
Page Presentation
Many EPSON/IBM commands (tabs, margins, line spacing, for example) are described in terms of the
presentation surface. A presentation surface is a two-dimensional surface upon which the printer positions
symbols according to controls embedded in the incoming data stream. The presentation surface is defined
in absolute terms by the width and depth parameters of the page size control commands (Set Page
Length, Set Horizontal Margins, for example). The physical print position does not move outside the range
of these two parameters. The left margin (LM) and right margin (RM) are variable parameters within the
presentation surface. The logical print position does not move outside the range of the vertical margins nor
outside the horizontal margins + 1. The following figure shows the presentation surface and the
Preface
13
260070‐001A
Programmer Manual
PTX‐S809
relationships of some of these parameters.
Figure 1
CPP
CPL
MPP
PMPP
LM
RM
MPL
Page Presentation
Current Print Position (LM = CPP = RM).
Current Print Line
Maximum Print Position (in characters at current CPI)
Physical Maximum Print Position. The largest number of characters that can be placed on one line
of the surface (the largest value that MPP can assume).
Left Margin
Right Margin
Maximum Page Length (in lines at current LPI)
Notes:
1. The host should set the limits of the presentation surface if the default or previous values are not
acceptable.
2. The operator should align the physical paper so that it matches the logical presentation surface.
Also created with this surface is a pair of numbers (CPL and CPP) which specify the line number and
column number where the next graphic will be printed. These internal values are the logical position on the
presentation surface.
The variable parameters have default values which are established when the printer is initialized. The
standard power-on defaults are:
MPP (width) Operator panel setting
MPL (depth) Operator panel setting
CPI
Operator panel setting
LPI
Operator panel setting
LM
0 inches (Column 1)
RM
Equal to MPP
HT
Horizontal tabs are set at each 8th column, starting with column 9 (9, 17, 25, 33, and so on.)
VT
Vertical tabs are all cleared
Preface
14
260070‐001A
Programmer Manual
PTX‐S809
Chapter 1. EPSON/IBM Commands
The following printer commands are supported by this printer according to the IBM Proprinter XL24-XL24
AGM, IBM 2391+ and EPSON LQ Series.
Print and Line Feed Execution
CR
Prints all received data and the column counter is set to the left margin (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
CR
X'0D'
13
This code is a terminator code; when received, it causes any data in the buffer to be printed out. The print
head then moves logically to the left margin position. The column counter is set to the left margin value
and a line feed is inserted automatically after the carriage return (see the automatic carriage return
function in the printer setup). The code cancels the double width printing set by the SO or ESC SO
command.
ESC ]
Sets a reverse line feed. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
ESC ]
X'1B' X'5D'
27 93
This is a terminator code; it therefore causes the current contents of the print buffer to be printed before
advancing the paper by one line at the current vertical spacing. If no data precedes the LF code, or if the
preceding data consists of spaces, the code only causes a line feed.
When the line counter reaches the last line of the form (defined by the software or the function menu), the
LF code causes a skip to the first line of the next form. This code cancels the double width printing set by
the SO code. In IBM mode, the column counter is set to the first column if the automatic carriage return is
selected. In EPSON mode, the column is always set to the first column.
ESC 5
Sets an automatic line feed after a carriage return. (IBM)
ASCII Code
ESC 5 n
Hexadecimal Value
X'1B' X'35' n
Decimal Value 27 53 n
If n is equal to 1, this command sets an automatic line feed on receiving of a CR code. If n is equal to 0,
this command cancels the automatic line feed.
n
0
1
Automatic line feed
Disabled
Enabled
Chapter 1 EPSON/IBM Commands
15
260070‐001A
Programmer Manual
PTX‐S809
ESC J
Advances paper n/216 inch. (EPSON/IBMXL24)
Advance paper n/180 inch. (EPSON/IBM XL24AGM)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC J n
X'1B' X'4A' n
27 74 n
1 = n = 255
This is a terminator code; it causes the current contents of the print buffer to be printed before performing
a single line feed of n/216 or n/180 of an inch. This command is cancelled after the line feed has been
performed. The printing restarts after a line feed from the column at which the command was sent.
ESC j
Feed paper n/216 in reverse direction (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC J n
X'1B' X'6A' n
27 106 n
1 = n = 255
This is a terminator code; it causes the current contents of the print buffer to be printed. Then the paper is
moved backward of n/216 of an inch. The printing restarts from the column at which the command was sent.
LF
Line Feed (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
LF
X'0A'
10
This is a terminator code; it causes the current contents of the print buffer to be printed before advancing
the paper by one line at the current vertical spacing. If no data precedes the LF code, or if the preceding
data consists of spaces, the code only causes a line feed.
When the line counter reaches the last line of the form (defined by software or function menu), the LF
code causes a skip to the first line of the next form. This code cancels the double width printing set by the
SO code. In IBM mode, the column counter is set to the first column if the automatic carriage return is
selected. In EPSON mode, the column is always set to the first column.
Format Control
ESC $
Sets the absolute printing position. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC & n1 n2
X'1B' X'24' n1 n2
27 36 n1 n2
0 = n1 n2 = 255
Chapter 1 EPSON/IBM Commands
16
260070‐001A
Programmer Manual
PTX‐S809
This command specifies the distance from the left margin to where you want to print subsequent
characters. The distance is in number of dots and must be calculated using the following formula:
Margin distance = n1 +(n2 x 256) where n2 is the integer result of the number of dots divided by 256 and
n1 is the remainder. 1 dot = 1/60 inch. If the selected position is outside the current right margin, the
sequence is ignored.
ESC[ \
Sets vertical units. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC [ \ m1 m2 t1 ... t4
X'1B' X'5B' X'5C' m1 m2 t1 ... t4
27 91 92 m1 m2 t1 ... t4
m1 =4
m2 =0
0 = t1 = 255
0 = t2 = 255
t3 =0
t4 = 180 or 216
This command changes the base units for the graphics line spacing commands (ESC J, ESC 3). The
default is 1/216 or 1/180 inch.
ESC /
Selects the Vertical Format Unit (VFU) channel. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC / m
X'1B' X'2F' m
27 47 m
0=m=7
This sequence selects the VFU channel that you want to use. Eight different channels are available. The
m parameter represents the channel you want to select.
ESC \
Sets the relative dot position. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC \ n1 n2
X'1B' X'5C' n1 n2
27 92 n1 n2
0 = n1, n2 = 255
This command specifies the distance between the current print head position and the position where you
want to print subsequent characters (relative position). The distance is a number of dots and must be
calculated using the following formula:
Current position distance = n1 +(n2 x 256)
where n2 is the integer result of the number of dots divided by 256 and the n1 is the remainder. The unit of
dots is 1/120 inch for Draft or 1/180 inch for Letter Quality printing. If the distance is negative (Most
Significant Bit of m2 equal to 1), the print head is moved to the left of the current position by the number of
dots equal to the complement on two of n1 +(n2 x 256).
Chapter 1 EPSON/IBM Commands
17
260070‐001A
Programmer Manual
PTX‐S809
ESC 0
Sets vertical spacing to 1/8 inch (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
ESC 0
X'1B' X'30'
27 48
This code causes vertical spacing to be set to 1/8 inch.
ESC 1
Sets vertical spacing to 7/72 inch. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
ESC 1
X'1B' X'31'
27 49
This command causes vertical spacing to be set to 7/72 inch.
ESC +
Sets n/360-inch line spacing. (IBM)
ASCII Code
ESC + n
Hexadecimal Value
X'1B' X'2B' n
Decimal Value
27 43 n
Range
0 = n = 255
This command sets the line spacing to n/360 inch. If the line spacing is changed, it does not affect
previous settings for vertical tabs or page length.
ESC 2
Sets the vertical spacing to 1/6 inch. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC 2
X'1B' X'32'
27 50
This command causes the vertical spacing to be set to 1/6 inch.
ESC 2
Enables the vertical spacing set by ESC A. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
ESC 2
X'1B' X'32'
27 50
This command enables the vertical spacing sets by ESC A.
Chapter 1 EPSON/IBM Commands
18
260070‐001A
Programmer Manual
PTX‐S809
ESC 3
Sets vertical spacing to n/180 inch. (IBM XL24AGM, EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC 3 n
X'1B' X'33' n
27 51 n
1 = n = 255
This sequence sets the vertical spacing to n/180 inch. It is ignored if n is equal to 0.
ESC 3
Sets vertical spacing to n/216 inch. (IBM XL24/ 2391+)
ASCII Code
ESC 3 n
Hexadecimal Value
1B 33 n
Decimal Value
X'27' X'51' n
Range
0 = n = 255
This sequence sets the vertical spacing to n/216 inch.
ESC 4
Sets the current position as top of form (first printable line). (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
ESC 4
X'1B' X'34'
27 52
This sequence sets the first line of the fanfold paper as the current paper position of the form.
ESC A
Sets variable vertical spacing to n/60 inch. (EPSON/IBM XL24AGM)
ASCII Code
ESC A n
Hexadecimal Value
X'1B' X'41' n
Decimal Value
27 65 n
This command changes the default vertical spacing to n/60 inch. The new vertical spacing value is
immediately activated.
ESC A
Sets variable vertical spacing to n/72 inch. (IBM XL24 AGM/IBM 2391+)
ASCII Code
ESC A n
Hexadecimal Value
X'1B' X'41' n
Decimal Value
27 65 n
This command changes the default vertical spacing to n/72 inch. The vertical spacing value is stored and
activated only after the ESC 2 code is received.
Chapter 1 EPSON/IBM Commands
19
260070‐001A
Programmer Manual
PTX‐S809
ESC B
Sets vertical tab stops (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC B n1 ... nx 0
X'1B' X'42' n1 ... nx 0
27 66 n1 ... nx 0
1 = n = 255
In EPSON mode, it sets the vertical tab stops in the 0 Vertical Format Unit (VFU) channel. This code sets
up to 16 vertical tab stops at the line specified by n1, n2 and so on in the 0 VFU channel. The tab stops
are memorized as physical positions. In IBM mode, this code sets up to 64 vertical tab stops at the line
number specified by n1, n2 and so on in the 0 VFU channel. The tab stops are retained as logical
positions.
ESC B NUL
Resets vertical tab stops (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
ESC B NUL
X'1B' X'42' 00
27 66 00
This command resets the vertical tab stops in the 0 Vertical Format Unit (VFU) channel.
ESC b
Sets vertical tab stops in one of the 8 Vertical Format Unit channels available. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC b mn1 ... nx 0
X'1B' X'62' mn1 ... nx 00
27 98 mn1 ... nx 0
0=m=7
1 = n1 ... nx = 255
This sequence sets vertical tabulations in the VFU channel specified by the parameter m.
The VFU channel can be imagined as a blank page where you can set up to 16 vertical tabulations in
order to format your page as you like. 8 channels are available and in each of them you can create a
sample page that you can recall later. n1 to n16 specify the lines at which vertical tabulations must be set.
The values of n must be in ascending order. If you change the vertical spacing, the vertical tabulations set
are not cancelled and they maintain their physical position on the page.
The vertical tabulations set in the channel specified by the m parameter are executed by the VT code
when the specific channel is selected by the ESC / command, this code is executed as a line feed.
Chapter 1 EPSON/IBM Commands
20
260070‐001A
Programmer Manual
PTX‐S809
ESC b NUL
Resets vertical tab stops in one of the 8 Vertical Format Unit channels available. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC b NUL
X'1B' X'62' X'00'
27 98 0
This command resets the vertical tab stops in one of the 8 Vertical Format Unit channels available.
ESC C 0 n
Sets form length to n inches (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC C 0 n
X'1B' X'43' X'00' n
27 67 0 n
1 = n = 24
This command sets the form length to the number of inches specified by n. The current position of the
paper is assumed as the top-of-form.
ESC C n
Sets form length to n lines (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC C n
X'1B' X'43' n
27 67 n
1 = n = 255
This command sets the form length to the number of lines specified by n at the current vertical spacing.
The current position of the paper is assumed as top-of-form.
ESC D
Sets horizontal tab stops (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC D n1 n2 ... nx 0
X'1B' X'44' n1 n2 ... nx 00
27 68 n1 n2 ... nx 0
1 = n = 255
This sequence sets up to 28 (IBM mode) or 32 (EPSON mode) horizontal tab stops after canceling the
current setting. The n1 to nx parameters specify the number of columns at which horizontal tab stops are
required and must be entered in the sequence in ascending numerical order. Any value outside this range
is ignored. In IBM mode, the tab stop position is retained as a logical position in the page so that it is
affected by changing the horizontal spacing. The columns are numbered 1 through 136. In EPSON mode,
the tab stop position set by ESC D is retained as the physical position on the page and therefore it is not
affected by changing the horizontal spacing. The physical position of the tab stop depends on the
horizontal spacing in operation when ESC D is used. The ESC D 0 cancels all active tab stops.
Chapter 1 EPSON/IBM Commands
21
260070‐001A
Programmer Manual
PTX‐S809
ESC d
Spaces forwards relative dot position. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC d n1 n2
X'1B' X'64' n1 n2
27 100 n1 n2
0 = n1 n2 = 255
This command moves the print carriage (n1 +(n2*256))/120 of an inch displacement on the right of its
current dot position. If the selected position is outside the current right margin, it is forced to the last
column.
ESC e
Spaces backward relative dot position. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC e n1 n2
X'1B' X'65' n1 n2
27 101 n1 n2
0 = n1 n2 = 255
This command moves the print carriage (n1 +(n2*256))/120 of an inch displacement on the left of its
current dot position. If the selected position is outside the current left margin, it is forced to the first
column.
ESC I
Sets left margin. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC I n
X'1B' X'6C' n
27 108 n
0 = n = 255
This code sets the left margin at the current horizontal spacing. It must be sent at the beginning of the
line. The n parameter specifies the number of columns. For each type of horizontal spacing there is a
different range of possible values, as shown in the following table:
Character Width
Double Width
Horizontal Spacing
5 cpi
6 cpi
7.5 cpi
8.5 cpi
10 cpi
Chapter 1 EPSON/IBM Commands
Range of columns
0 = n = 67
0 = n = 80
0 = n = 100
0 = n = 114
0 = n = 134
22
260070‐001A
Programmer Manual
Character Width
Normal
PTX‐S809
Horizontal Spacing
10 cpi
12 cpi
15 cpi
17 cpi
20 cpi
24 cpi
Range of columns
0 = n = 134
0 = n = 160
0 = n = 201
0 = n = 229
0 = n = 255
0 = n = 255
Any value outside the accepted range is ignored and the previous setting remains in effect. The left margin
must be smaller than the right margin. The physical position set for the left margin does not change if the
horizontal spacing is modified. This command overrides the menu setting.
ESC N
Sets the skipover perforation to n lines (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC N n
X'1B' X'4E' n
27 78 n
1 = n = 127 (EPSON mode)
1 = n = 255 (IBM mode)
The skipover perforation is the sum of the top and bottom margin values at the selected vertical spacing.
The n parameter must be less than the current form length. The skipover is retained as the physical
position on the page. It is cancelled by ESC O or changing the form length.
The skipover value, when accepted, sets the top and bottom margins according to the operator panel
setting (see the Administrator’s Manual):
If the top margin set using the operator panel is greater than the skipover value, the following value of the
margins is set:
Top margin = skipover value
Bottom margin = 0
If the top margin set using the operator panel is less than or equal to the skipover value, then the following
value of the margins is set:
Top margin = operator panel value
Bottom margin = the difference between skipover value and top margin value
If the sum of the top and bottom margins values set using the operator panel is less than the skipover
value, the following values for the margins is set:
Top margin = operator panel value
Bottom margin = the difference between skipover value and top margin value
Changing the vertical spacing does not affect the skipover distance. This can be changed by another ESC
N command or can be reset by the ESC O command, which resets the skipover value to 0. The skipover
perforation is performed when the end of the page is reached with a LF, VT or FF code and not with the
ESC J or ESC C command. The skipover perforation is cancelled and must be reset.
Chapter 1 EPSON/IBM Commands
23
260070‐001A
Programmer Manual
PTX‐S809
ESC O
Disables the skipover perforation (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
ESC O
X'1B' X'4F'
27 79
This sequence sets the number of lines of the skipover perforation to the value 0. Any skip perforation set
by ESC N is cancelled.
ESC Q
Sets the right margin. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC Q n
X'1B' X'51' n
27 81 n
1 = n = 225
This code sets the line length at the current horizontal spacing. It must be sent at the beginning of the line.
The n parameter specifies the number of columns and for each type of horizontal spacing there is a range
of values, as shown in the following table:
Character Width
Double Width
Normal
Horizontal Spacing
5 cpi
6 cpi
7.5 cpi
8.5 cpi
10 cpi
10 cpi
12 cpi
15 cpi
17 cpi
20 cpi
24 cpi
Range of columns
1 <= n <= 67
1 <= n <= 81
1 <= n <= 101
1 <= n <= 111
1 <= n <= 135
1 <= n <= 135
1 <= n <= 162
1 <= n <= 203
1 <= n <= 232
1 <= n <= 255
1 <= n <= 255
Any value outside the accepted range is ignored and the previous setting remains in effect. The right
margin must be greater than the left margin. The physical position set for the right margin does not change
if the horizontal spacing is modified.
ESC R
Sets horizontal and vertical tab stops to default values. (IBM)
ASCII Code ESC R
Hexadecimal Value X'1B' X'52'
Decimal Value 27 82
This command sets horizontal tab stops every eight columns starting from column 9 and cancels all
vertical tab stops.
Chapter 1 EPSON/IBM Commands
24
260070‐001A
Programmer Manual
PTX‐S809
ESC SP
Sets intercharacter space. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC SP™ n
X'1B' X'20' n
27 32 n
0 = n = 225
This command sets the intercharacter space to n/120 inch in Draft printing and n/180 inch in Quality
printing.
ESC X
Sets left and right margins. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC X n1 n2
X'1B' X'58' n1 n2
27 88 n1 n2
0 = n = 134 (left margin)
2 = n = 136 (right margin)
This command sets the left and right margins at the same time. The n1 and n2 parameters indicate
respectively the number of columns for the left and right margins at the current spacing. These margins
are retained in terms of absolute displacement from the physical left edge of the page. Use a CR
immediately after ESC X n to establish the print head position relative to the new margin setting.
If n1 is equal to 0, the current left margin of the page is used. If n2 is equal to 1, the current right margin of
the page is used. The left margin value must be less than the right margin value. The right margin value
must not exceed the physical right edge of the paper; otherwise the maximum acceptable value for the
right margin will be set.
Chapter 1 EPSON/IBM Commands
25
260070‐001A
Programmer Manual
PTX‐S809
FF
Advances paper to the top of the next page (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
FF
X'0C'
12
This code is a terminator code, when received, causes all data in the print buffer to be printed out. Then it
advances the paper to the first printable line of the next form. The line counter is set to the first line value
and the column counter is set to the left margin value. This code cancels the double width printing set by
SO code.
HT
Logically moves the print carriage to the next horizontal tab stop (IBM/EPSON).
ASCII Code HT
Hexadecimal Value X'09'
Decimal Value 9
This code logically moves the print carriage to the next horizontal tab stop as defined by ESC D. Up to 28
(IBM mode) or 32 (EPSON mode) horizontal tab stops can be set. The HT code is ignored if no tab stop is
set, the current print carriage position is moved past the last tab position, or the tab stop is on or beyond
the right margin. When the printer is powered on, the tab stops are set every eight columns (default).
In EPSON mode, the default tab stops are retained as logical positions in the page that are affected by
changing the horizontal spacing. The tab stop positions set by ESC D are retained as physical positions
on the page and are not affected by changing the horizontal spacing. When double width printing is
selected, the tab stop setting must take into account that each character occupies two columns. In IBM
mode, the tab stops, both the default and those set by ESC, are retained as logical positions in the page
that are affected by changing the horizontal spacing. The horizontal tab stops can be changed by the ESC
D command.
VT
Advances paper to the next vertical tab stop of the selected VFU channel (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
VT
X'0B'
11
This is a terminator code and when received causes the contents of the print buffer to be printed before
advancing the paper to the next vertical tab stop set by the ESC B or the ESC b commands.
This code is run normally if vertical tab stops follow the current print position. It runs like an FF code
(EPSON mode) or like a LF code (IBM mode), if the vertical tab stops follow the bottom of form position (
corresponding to the form length if the bottom of the form has not been set), or if the current position is
beyond the last vertical tab stop. It runs like an LF code if no vertical tab stops have been set by the ESC
B or ESC b commands.
In EPSON mode, the vertical tabulations are referred to the VHF channel selected by the ESC / m.Ifno
VFU channels have been selected, the printer assumes the default channel 0.
This command cancels the double width printing set by SO or ESC SO command.
Chapter 1 EPSON/IBM Commands
26
260070‐001A
Programmer Manual
PTX‐S809
Print Mode
DC2
Sets 10 cpi printing. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
DC2
X'12'
18
This is a terminator code. It causes all data present in the print buffer to be printed. This command is
accepted at any position within the line. The character that follows this command is printed at 10 cpi.
DC2
Cancels compressed printing. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
DC2
X'12'
18
This is a terminator code. It causes all data present in the print buffer to be printed. This command is
accepted at any position within the line. The character that follows this command is printed as follows:
17 CPI . 10 CPI
20 CPI . 12 CPI
DC4
Cancels double width printing (IBM/EPSON).
ASCII Code
DC4
Hexadecimal Value
X'14'
Decimal Value
20
This code cancels the double width printing set by SO or ESC SO code. It has no effect if the ESC W or
ESC ! command is set to double width.
ESC Sets or cancels underlined printing (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
ESC - n
X'1B' X'2D' n
27 45 n
Enables or disables underlined printing. See the following table:
n
1
0
Underlined Printing
enabled
disabled
Chapter 1 EPSON/IBM Commands
27
260070‐001A
Programmer Manual
PTX‐S809
ESC !
Sets printing style. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC ! n
X'1B' X'21' n
27 33 n
This command is used to select any valid combination of printing attributes. Each printing attribute is
selected by the nparameter, as specified in the following page:
n
0
1
2
4
8
16
32
64
128
Attribute
10 cpi
12 cpi
Proportional
Compressed
Emphasized
Double Strike
Double Width
Italics
Underline
To print the desired combination of printing attributes, calculate the nparameter by adding up the values of
each attribute.
ESC(Sets score line. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC ( - n1 n2 m d1 d2
X'1B' X'28' X'2D' n1 n2 m d1 d2
27 40 45 n1 n2 md1 d2
n1 =3
n2 =0
m=1
1 = d1 = 3
d2 =0,1,2,5,6
This command enables or disables scoring of all characters and spaces following the command according
to the following parameters:
d1
1
2
3
Line
Underline
Strikethrough
Overscore
Chapter 1 EPSON/IBM Commands
28
260070‐001A
Programmer Manual
d2
0
1
2
5
6
PTX‐S809
Line
Cancel score line
Single continuous line
Double continuous line
Single broken line
Single broken line
Any combination of scoring may be used at the same time and are independent of each other. Graphics
characters are not scored.
ESC [ Selects the score line. (IBM 2391 + only)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC [ - n1 n2 loc type
X'1B' X'5B' X'2D' n1 n2 loc type
27 91 45 n1 n2 loc type
n1 =2
n2 =0
This command selects several forms of overscore, underscore, and strikethrough.
To select loc: To select type:
loc
1
2
3
Selection
Underscore
Strikethrough
Overscore
type
0
1
2
255
Selection
Cancles Line
Single Line
Double Line
Cancels all score selections
ESC :
Sets 12 CPI. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
ESC :
X'1B' X'3A'
27 58
This is a terminator code. It causes all data present in the print buffer to be printed. Subsequent data is
printed at 12 cpi. This command is accepted at any position within the line. The setting of another
horizontal spacing resets this command.
ESC <
Prints characters for one line from left to right. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC <
X'1B' X'3C'
27 60
This command causes the printing of one line from left to right.
Chapter 1 EPSON/IBM Commands
29
260070‐001A
Programmer Manual
PTX‐S809
ESC [ @
Selects the printing type style. (IBM 2391 + only)
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ @ 40m1 0m3 m4
X'1B' X'5B' X'40' 04*00*m1 00*m3 m4
27 91 64 40m1 0m3 m4
(*) These values are constants.
This command is used to modify the type style of the character and the number of line spacing. Use this
command for:
1.
2.
3.
4.
5.
6.
7.
Italic printing
Single-high character
Double-high character
Single-wide character
Double-wide character
Single Line Feed
Double Line Feed
These selections may be combined, for example, italic print with double height or doublewide character
and double line feed.
See the following tables for m1, m3 and m4 selections:
m1
0
1
2
4
8
16
32
Selection
No Change
Start Italic Printing
Stop Italic Printing
Start Outline
Stop Outline
Start Shadow
Stop Shadow
m3
0
1
2
4
8
16
32
Selection
No Change
Single-High Character
Double-High Character
Single Line Feed
Double Line Feed
m4
0
1
2
4
8
Selection
No Change
Single-Wide Character
Double-Wide Character
Single Line Feed
Double Line Feed
ESC [ @
Sets double high printing and double line feed. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ @ l h m1 m2 m3 m4
X'1B' X'5B' X'40' l h m1 m2 m3 m4
27 91 64 l h m1 m2 m3 m4
l= normally 4, h= normally 0, m1 =0, m2 =0
This command sets height, width, and vertical spacing.
The land hparameters specify the number of mode bytes mx contained in the sequence.
The m3 and m4 parameters specify the printing characteristics.
Chapter 1 EPSON/IBM Commands
30
260070‐001A
Programmer Manual
PTX‐S809
The m3 parameter controls both line spacing and character height. It has two parts: a high-order half-byte
of m3 controls the line spacing and the low-order half-byte controls the character height.
m3
0
1
2
16
17
18
32
33
34
Character Height
No Change
Standard character height
Double character height
Character height unchanged
Standard character height
Double character height
Character height unchanged
Standard character height
Double character height
Line Spacing
No Change
Line feeds unchanged
Line feeds unchanged
Normal line feeds
Normal line feeds
Normal line feeds
Double line feeds
Double line feeds
Double line feeds
The m4 parameter specifies the character width. Only the low-order half-byte is significant in this mode
byte. The high-order half-byte is ignored.
m4
0
1
2
Character Width
No change
Double width character
No change
Line Spacing
Standard width character
No change
No change
ESC [ d
Set the print quality. (IBM 2391 + only)
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ d 10n
X'1B' X'5B' X'64' 0100n
27 91 100 10n
This command sets the print quality to draft or LQ print.
n
0
From 64 to 127
From 128 to 254
255
Types
No Change
Draft
Letter Quality
Initialization on NVRAM values
Chapter 1 EPSON/IBM Commands
31
260070‐001A
Programmer Manual
PTX‐S809
ESC [ I
Sets font and pitch of a character. (IBM 2391 + only)
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ I 2 0 m n
X'1B' X'5B' X'49' 02 00 m n
27 91 73 2 0 m n
This command allows you to modify the character's font and style of pitch type.
The values 2 and 0 are constants. If font and pitch locks are active, this command is ignored. To select the
values for the variables m and n, which identify the pitch and the font type style to use, refer to the table
below.
1. Identify the type style (pitch and font) to use in the left column (pitch).
2. For the hexadecimal values of m and n, look across the row to the second column (Hex mn)
3. For the decimal values for m and n, look across the row to the third column (Decimal mn).
4. Substitute these values for m and n in the printer command syntax.
Pitch
Hexadecimal
m
n
Decimal
m
n
X'00'
X'01'
X'01'
X'01'
X'01'
X'01'
0
1
1
1
1
1
11
235
236
237
238
30
Hexadecimal
m
n
Decimal
m
n
Gothic
10
12
15
17
20
24
PS
X'00'
X'01'
X'01'
X'01'
X'01'
X'01'
X'01'
X'24'
X'8F'
X'8E'
X'8D'
X'8C'
X'20'
X'AE'
0
1
1
1
1
1
1
36
143
236
237
238
30
174
36
399
398
397
396
288
174
Script
10
12
15
17
20
24
PS
X'01'
X'01'
X'01'
X'01'
X'01'
X'01'
X'01'
X'D4'
X'D5'
X'D6'
X'D7'
X'D8'
X'24'
X'C8'
1
1
1
1
1
1
0
212
213
214
215
216
36
200
468
469
470
471
472
292
200
Courier
10
12
15
17
20
24
Pitch
X'00B'
X'EB'
X'EC'
X'ED'
X'EE'
X'1E'
Chapter 1 EPSON/IBM Commands
32
Dec. Value
(m x 256 + n)
11
491
492
493
494
286
Dec. Value
(m x 256 + n)
260070‐001A
Programmer Manual
PTX‐S809
ESC _
Sets or cancels overscore printing. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
ESC _ n
X'1B' X'5F' n
27 95 n
Enables or disables overscore printing. See the following table:
n
1
0
Overscore Printing
Enabled (all spaces and characters that follow are overscored)
Disabled
ESC 4
Sets italics printing mode. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC 4
X'1B' X'34'
27 52
Sets the style attribute of the font to italic. This command selects italic printing even if the italic character
table is not selected.
ESC 5
Cancels italics printing. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC 5
X'1B' X'35'
27 53
Sets the style attribute of the font to normal (cancels the italic style attribute previously selected with the
ESC 4 command).
ESC a
Sets Letter Quality justification printing. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC a n
X'1B' X'61' n
27 97 n
0=n=3
Selects from four types of justification, as follows:
n
0
1
2
3
Justification
Left
Centered
Right
Allows an uniform printing between the margins when the buffer is full.
Chapter 1 EPSON/IBM Commands
33
260070‐001A
Programmer Manual
PTX‐S809
ESC E
Sets emphasized printing (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
ESC E
X'1B' X'45'
27 69
This command starts emphasized printing. The print head strikes each dot twice to produce a darker,
bolder character. The second strike is offset horizontally.
ESC F
Cancels emphasized printing (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
SC F
X'1B' X'46'
27 70
This command ends emphasized printing. This escape sequence cancels emphasized printing that was
started by ESC E.
ESC G
Sets double strike printing (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
ESC G
X'1B' X'47'
27 71
This command starts double-strike printing. ESC G may be canceled by ESC H.
ESC g
Sets 15 CPI. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC g
X'1B' X'67'
27 103
Subsequent data is printed at 15 cpi. This command is accepted at any position within the line. If you
change the pitch during proportional mode (selected with the ESC p command), the change takes effect
when the printer exits proportional mode.
ESC H
Cancels double strike printing (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
ESC H
X'1B' X'48'
27 72
This command cancels double-strike printing set with the ESC G command.
Chapter 1 EPSON/IBM Commands
34
260070‐001A
Programmer Manual
PTX‐S809
ESC I
Selects printing type for resident and DLL characters. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
ESC I n
X'1B' X'49' n
27 73 n
This command selects the resident or the download font in Draft or LQ printing mode. It is ignored if you
select a font that has not been downloaded or has been overwritten. See the following table:
n
0
2
3
8
10
16
18
Resident font
Draft 10 cpi
LQ10cpi
Proportional
Draft 12 cpi
LQ 12 cpi
Draft 17 cpi
LQ 17 cpi
n
4
6
7
12
14
20
22
Download font
Draft 10 cpi
LQ10cpi
Proportional
Draft 12 cpi
LQ 12 cpi
Draft 17 cpi
LQ 17 cpi
ESC M
Selects 10.5 point, 12 CPI. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC M
X'1B' X'4D'
27 77
This is a terminator code. It causes all data present in the print buffer to be printed. Subsequent data is
printed at 12 cpi, if you previously set the compressed spacing by sending the SI or ESC SI command. If
you select proportional printing, this command is stored.
ESC P
Selects 10.5 point, 10 cpi. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC P n
X'1B' X'50' n
27 80 n
This command selects 10.5 point, 10 cpi character printing. If you change the pitch during proportional
mode (selected with the ESC p command) the change takes effect when the printer exits proportional
mode.
Chapter 1 EPSON/IBM Commands
35
260070‐001A
Programmer Manual
PTX‐S809
ESC P
Sets or cancels proportional printing. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC P n
X'1B' X'50' n
27 80 n
1 = n = 255
This code is a terminator code. It causes all data in the print buffer to be printed. Then if the n parameter
is equal to 1, the subsequent data is printed in proportional mode. If the n parameter is equal to 0,
proportional mode is reset. If the any horizontal spacing command is sent to the printer when the
proportional printing is set, the command is stored and activated as soon as the proportional printing is
reset.
ESC p
Sets or cancels proportional printing. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC p n
X'1B' X'70' n
27 112 n
1 = n = 255
This command selects the proportional or fixed spacing according to the following values:
n
0
1
Proportional Printing
Returns to current fixed character pitch
Selects proportional character spacing
ESC S
Sets subscript or superscript printing (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
ESC S n
X'1B' X'53' n
27 83 n
Selects subscript or superscript printing. See the following table:
n
0
1
Selection
Subscript Print enabled
Superscript Print enabled
Proportional printing of subscript or superscript characters is performed at 2/3 of the proportional character
width. Use the ESC T command to cancel subscript or superscript printing.
ESC SI
Sets 17/20 cpi (IBM).
ASCII Code
Hexadecimal Value
Decimal Value
SI or ESC SI
X'0F' or X'1B' X'0F'
15 or 27 15
Chapter 1 EPSON/IBM Commands
36
260070‐001A
Programmer Manual
PTX‐S809
This command sets horizontal spacing to 17 or 20 cpi. DC2 code cancels this mode and returns spacing to
10 characters per inch.
ESC SI
Sets compressed printing (EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
SI or ESC SI
X'0F' or X'1B' X'0F'
15 or 27 15
This command is accepted at any position within the line. The setting of this command depends on the
horizontal spacing previously set:
10 CPI
17 CPI
12 CPI
20 CPI
Proportional
½ width
The DC2 code cancels the compressed printing.
ESC SO
Sets double width printing (one line) (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
SO or ESC S0
X'0E' or X'1B' X'0E'
14 or 27 14
This code causes subsequent data in the same line to be printed as double width characters. It is
canceled by the CR, LF, VT, FF and DC4 codes or when the buffer is full.
ESC s
Sets and resets Quiet printing. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC s n
X'1B' X'73' n
27 115 n
This command controls print speed as follows:
n
0
1
Selection
Normal speed printing
Quiet speed printing
ESC T
Cancels subscript or superscript printing (IBM/EPSON).
ASCII Code ESC T
Hexadecimal Value X'1B' X'54'
Decimal Value 27 84
This command cancels subscript or superscript printing started with the ESC S command.
Chapter 1 EPSON/IBM Commands
37
260070‐001A
Programmer Manual
PTX‐S809
ESC W
Sets or cancels double width printing (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC W n
X'1B' X'57' n
27 87 n
0=n=1
Enables or disables double width printing. See the following table:
n
0
1
Selection
Double Width Printing disabled
Double Width Printing enabled
ESC w
Sets or cancels double height printing. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC w n
X'1B' X'77' n
27 119 n
0 = n = 255
Enables or disables double-height printing of all characters. The first line of a page is not doubled if the
ESC w command is sent on the first line; all following lines are printed at double-height. Double-height
printing overrides superscript, subscript, and condensed. Superscript, subscript, and condensed print
resumes when double-height printing is canceled. See the following table:
n
0
1
Selection
Double Height Printing disabled
Double Height Printing enabled
ESC x
Selects Letter Quality or Draft. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC x n
X'1B' X'78' n
27 120 n
This command selects either LQ or Draft printing according to the following values:
n
0
1
Selection
Draft printing
Letter Quality printing
If you select proportional spacing with the ESC p command during Draft printing, the printer prints an LQ
font instead. When you cancel proportional spacing with the ESC p command, the printer returns to Draft
printing.
Chapter 1 EPSON/IBM Commands
38
260070‐001A
Programmer Manual
PTX‐S809
SI
Sets compressed printing. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
SI
X'0F'
15
This command sets horizontal spacing to 17 or 20 cpi. DC2 code cancels this mode and returns spacing to
10 characters per inch.
SI
Sets compressed printing. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
SI
X'0F'
15
This command is accepted at any position within the line. DC2 code cancels compressed printing. The
setting of this command depends on the horizontal spacing previously set
10 CPI .
17 CPI
12 CPI .
20 CPI
Proportional
½ widtth
DC2 code cancels compressed printing.
SO
Sets double width printing (one line) (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
SO
X'0E'
14
This code causes subsequent data in the same line to be printed as double width characters. It is
cancelled by the CR, LF, VT, FF and DC4 codes or when the buffer is full.
Chapter 1 EPSON/IBM Commands
39
260070‐001A
Programmer Manual
PTX‐S809
Character Set
ESC [ T
Selects a Code page (IBM).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ T 4000HcLc
X'1B' X'5B' X'54' 04000000HcLc
7 91 84 4000HcLc
This sequence allows you to change the current code page. If an unavailable code page is specified, this
command is ignored. The digits 04000000(hexadecimal) and 4000(decimal) are constant. To
calculate Hc Lc for a code page that is not shown: If your code page has an alphabetic character, such as
437G, add 10,000 to the code page number, then divide by 256.
Hc
1
3
33
33
3
3
3
3
3
3
3
3
3
The whole number result is the Hc value
The remainder is the Lc value.
Lc
181
122
129
82
83
84
85
87
89
90
92
94
95
CP437
CP437G
CP437 Slavic
CP850
CP851
CP852
CP853
CP855
CP857
CP858
CP860
CP862
CP863
Hc
3
3
3
3
3
3
4
33
33
33
33
33
33
Lc
96
97
98
99
108
109
74
123
124
125
126
128
138
CP864
CP865
CP866
CP867
CP876
CP877
CP1098
96 GREEK
GOST
TASS
MAZOWIA
UKRANIAN
KOI8-U
Hc
33
33
33
33
33
33
33
33
33
3
4
4
4
Lc
143
144
145
146
147
148
149
150
151
155
226
227
228
8859/1
8859/2
8859/3
8859/4
8859/5
8859/6
8859/7
8859/8
8859/9
8859/15
CP1250
CP1251
CP1252
Hc
4
4
4
4
4
33
33
Lc
229
230
231
232
233
130
131
CP1253
CP1254
CP1255
CP1256
CP1257
FARSI 1
FARSI 2
ESC \
Prints characters from all characters table. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC \ n1 n2
X'1B' X'5C' n1 n2
27 92 n1 n2
0 = n1 = 255
0 = n2 = 255
This command prints the next n1 + n2 x 256 characters from the table of all printable characters.
The total number of characters that will be printed from the table of all printable characters is equal to n1 +
(n2 x 256). For example, to print 300 characters from the table of all printable characters: n1 = 44, n2 =1.
The control codes are not recognized as long as this sequence is active. The space character is printed as
an unassigned character.
Chapter 1 EPSON/IBM Commands
40
260070‐001A
Programmer Manual
PTX‐S809
ESC ^
Prints a single character from the all characters table. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC ^ n
X'1B' X'5E' n
27 94 n
0 = n = 255
This command prints the next character from the all characters table. This sequence prints only one
character from the all character table.
ESC 6
Selects the Character Set 2 (EPSON, IBM).
ASCII Code
Hexadecimal Value
Decimal Value
ESC 6
X'1B' X'36'
27 54
This command selects the character set 2.
ESC 7
Selects the Character Set 1 (IBM).
ASCII Code
Hexadecimal Value
Decimal Value
ESC 7
X'1B' X'37'
27 55
This command selects the character set 1.
ESC k
Selects the LQ fonts. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC k n
X'1B' X'6B' n
27 107 n
Selects one of the available fonts in Letter Quality. If Draft mode is selected when this command is sent,
the new LQ font is selected when the printer returns to LQ printing.
n
1
6
Types
Gothic
OCR-A
n
2
7
Types
Courier
Presentor
n
3
11
Types
Prestige
Boldface Prop.
n
4
181
Types
n
Script
5
Block Char.
Types
OCR-B
Boldface available if the Command ESC p1 (proportional) is sent.
ESC R
Selects Nation character set. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC R n
X'1B' X'52' n
27 82 n
Chapter 1 EPSON/IBM Commands
41
260070‐001A
Programmer Manual
Range
PTX‐S809
0 = n = 13
This code causes the national character set to be selected according to the parameter n. See the following
table:
n
0
1
2
3
4
National Character Sets
USA
France
Germany
United Kingdom
Denmark-I
n
5
6
7
8
9
National Character Sets
Sweden
Italy
Spain-I
Japan
Norway
n
10
11
12
National Character Sets
Denmark-II
Spain-II
Latin America
ESC t
Selects characters table. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC t n
X'1B' X'74' n
27 116 n
0=n=3
Selects the upper half (from 128 to 255) from the character table.
n
0
1
2
Character Tables
Standard Italic Character Set
ASCII Character Set
Remaps DLL Character Set from position 0-127 to 128-255
Download Character
ESC %
Selects user-defined character set. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC & n
X'1B' X'25' n
27 37 n
This command switches between normal (resident) and user-defined (downloaded) characters:
n
1
0
Selection
Selects the use of downloaded character set in RAM
Selects the use of resident character set in ROM
ESC &
Defines the 24-pin download characters. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC & NUL n m a0 a1 a2 d1 ... dx
X'1B' X'26' 00 n m a0 a1 a2 d1 ... dx
27 38 00 n m a0 a1 a2 d1 ... dx
0 = n= 127
0 = m= 127
0<= dx < = 255
a0 a1 a2: see below
Chapter 1 EPSON/IBM Commands
42
260070‐001A
Programmer Manual
PTX‐S809
This escape sequence is used to download fonts to the printer. Once fonts have been downloaded, they
can be selected by ESC % n.
Parameter nis the character position of the first character and parameter mis the character position of the
last character to be downloaded. For example, to download character “RST” the user would specify n=52H
and m=54H. Characters must be downloaded to consecutive positions after the first character. The
parameters a0, a1, and a2 must be sent for each character being downloaded and are known as the
attribute bytes. Parameter a0 specifies the number of dot columns to be added before the character.
Parameter a1 specifies the width of the character. Parameter a2 specifies the number of dot columns to
add after the character. The parameters d1 ... dx represent the dot column data being downloaded for each
character. 2 or 3 data bytes represent 1 column of dots depending upon the print mode type as shown
below. Draft, Letter Quality, superscript, and subscript fonts can be downloaded. It is necessary to select
the desired print mode prior to sending the download data. Each dot column has a width of 1/120" in Draft
and 1/360 in Letter Quality. Following are limits of parameters a0, a1, and a2 for LQ Draft and
Super/Subscript print mode at various character pitches.
a1
a0 + a1 + a2
10 cpi
29
36
LQ
15 cpi
15
24
12 cpi
23
30
Prop
39
42
Script
23
36
DRAFT
Norm Script
9
7
12
12
The mapping of data bits to wires is as follows:
BYTE #
1
2
3
BIT #
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
LQ WIRE #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DRAFT WIRE #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SUBSCRIPT
SUBSCRIPT
WIRE #
WIRE #
1
9
2
10
3
11
4
12
5
13
6
14
7
15
8
16
9
17
10
18
11
19
12
20
13
21
14
22
15
23
16
24
Note: Only 2 Bytes are required for
superscript/subscript characters.
If a data bit has a value of 1, the corresponding wire is fired. If a data bit has a value of 0, the wire is not
fired. In general, the user of this feature must be careful that the number of bytes of downloaded
information is equal to 3 x width of the character being defined (a1) or the results will be unpredictable.
Only one print mode type may be downloaded at a time. That is, if draft characters have been
Chapter 1 EPSON/IBM Commands
43
260070‐001A
Programmer Manual
PTX‐S809
downloaded, then selecting Letter Quality and downloading characters will cause the draft download
characters to be cleared. This applies similarly to script characters.
ESC :
Copies characters from ROM to RAM. (EPSON)
ASCII Code
ESC : NULn0
Hexadecimal Value
X'1B' X'3A' 00n00
Decimal Value 27 58 n0
This code copies the draft character generator in ROM into RAM area dedicated to the user-defined
characters. Also Courier or Gothic character generator font from ROM is copied to RAM memory according
to the following values of n parameter:
n
1
5
Selection
Gothic
OCR-B
n
2
6
Selection
Courier
OCR-A
n
4
182
Selection
Script
DLL
ESC =
Defines downloaded characters. (IBM)
ASCII Code ESC = n m id p [a1 a2 d1 … d 11 ]
Hexadecimal Value 1B 3D n m id p [a1 a2 d1 … d 11 ]
Decimal Value 27 61 n m id p [a1 a2 d1 … d 11 ]
This sequence allows to design and then down-line load special characters not present in the character set
in use. Whenever you would like to start the DLL setting procedure, it should be better to copy the character
generator in ROM into RAM by sending the ESC = {0} {0} sequence that causes the DLL to be reset. Up to
256 characters can be defined using the DLL function.
The parameters in the command line have the following meaning:
n and m
Indicate how many characters you should down-line load. n and m are calculated as follows:
{number of characters x 13}+2 = {total}
If {total} is less than {256}
{n} = {t}
{m} = {0}
If {total} is greater than {256}
{n} = {remainder of {t} divided by 256}
{m} = {integer result of {t} divided by 256}
id Indicates the printer model. In this case it is fixed to {20}.
Each DLL character is described using the following parameters:
p
a1
This is the decimal code of the first character of the character set in use that should be
replaced by the DLL character.
This is the first attribute byte and it has the following meaning:
Bit 7:
{0}
indicates that the character is not a true descender.
{1}
indicates that the character is a true descender.
This bit is ignored if bit 0 or bit 1 is set to 1.
Bit 6 to 2
Ignored
Bit 1, 0
Character description:
{00} no 12-high expansion. The bit 7 is valid.
{01} line drawing character. The dots in row 8 are extended
Chapter 1 EPSON/IBM Commands
44
260070‐001A
Programmer Manual
PTX‐S809
downward to rows 9, 10, 11 and 12. The bit 7 is ignored. It is
advisable to use this mode to create characters that should
replace 179 to 223 code characters.
{11} shading characters. The dots in row 1, 2, 3 and 4 are
repeated as rows 9, 10, 11 and 12. The Quality printing is
ignored. It is advisable to use this mode to create characters
that should replace 176 to 178 code characters.
This is the second attribute byte. It specifies the proportional printing information. If
you do not wish to define a proportional character, set the bit 6 – 0 to {0}. When you
use the proportional printing for a DLL character with bit 6 – 0 set to {0}, the databytes
of the character will be printed.
Bit 7:
Ignored
Bit 6, 5, 4
Interpreted as binary number. These bits specify the number
of leading bytes that should be ignored. This number is the
offset. Up to 7 bytes can be ignored. The counts begins with
byte 1.
Bit 3 to 0
Interpreted as binary number. These bits specify the number
of dots-columns that should be printed. Each character must
be followed by a blank byte that is not included in the count
of the character width. Character widths greater than 11 are
treated as 11.
a2
Bit-Image
ESC *
Sets dot graphics printing. (EPSON, IBMXL24, IBMXL24 AGM)
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC * m n1 n2 p1 p2 ... px
X'1B' X'2A' m n1 n2 p1 p2 ... px
27 42 m n1 n2 p1 p2 ... px
m = 0,1,2,3,4,5,6,7;
0 < n1 < 255;
0 < n2 < 31
This command prints dot-graphics in 8-dot columns, depending on the following parameters: number of dot
columns = (n1 + (n2 x 256))
Selects 8-dot graphic or 24-dot graphic modes according to the table below.
The m parameter determinates the horizontal density as well as the number of wires to be fired.
For 8-dot images, the total number of data bytes (p) to be sent is determined by the following formula: n1+
n2 x 256.
m
0
1
2
3
4
6
DPI
60
120
120 (virtual)
240 (virtual)
80
90
# DOTS
8
8
8
8
8
8
Chapter 1 EPSON/IBM Commands
DENSITY NAME
Normal density
Dual density
Double speed, Dual density
Quadruple-density
CTR Graphic I
CTR Graphic II
45
Other ESC
ESC K
ESC L
ESC Y
ESC Z
260070‐001A
Programmer Manual
PTX‐S809
For 24-dot images, the total number of data bytes (px) to be sent is determined by the following formula:
3.x.(n1+ n2 x256).
m
32
33
38
39
40
DPI
60
120
90
180
360 (virtual)
# DOTS
24
24
24
24
24
DENSITY NAME
Normal density
Double density
CRT Graphic III
Triple-density
Hex-density
ESC ?
Reassigns dot graphics mode. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC ? nm
X'1B' X'3F' nm
27 63 nm
Reassigns one of the dot graphics mode (described in the command ESC *) to one of the following
commands: ESC K, ESC L, ESC Y and ESC Z. The nparameter specifies a character (K, L, Y, or Z)
which is reassigned to specific mode m= 0,1,2,3.
m
0
1
n
(K): ESC K graphic command
(L): ESC L graphic command
m
2
3
n
(Y): ESC Y graphic command
(Z): ESC Z graphic command
ESC K
Normal density dot graphics printing (60 dpi) (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC K n1 n2 p1 p2 ... px
X'1B' X'4B' n1 n2 p1 p2 ... px
27 75 n1 n2 p1 p2 ... px
0 = n1 = 255
0 = n2 = 31
0 = p= 255
Terminator code. This command prints dot graphics at 60 horizontal dots per inch (dpi) by 180 vertical dpi.
The parameter values are calculated as follows:
n1
n2
p1
p2
px
Remainder of the number of columns divided by 256.
Integer result of the previous division.
Sum of the values corresponding to the dots that should be printed in the first column of the
graphics pattern.
Sum of the values corresponding to the dots that should be printed in the second column of the
graphics pattern.
Sum of the values corresponding to the dots that should be printed in the last column of the
graphics pattern.
ESC L
Double density dot graphics printing (120 dpi) (IBM/EPSON).
ASCII Code
Hexadecimal Value
ESC L n1 n2 p1 p2 ... px
X'1B' X'4C' n1 n2 p1 p2 ... px
Chapter 1 EPSON/IBM Commands
46
260070‐001A
Programmer Manual
Decimal Value
Range
PTX‐S809
27 76 n1 n2 p1 p2 ... px
0 = n1 = 255
0 = n2 = 31
0 = p = 255
Terminator code. This command prints dot graphics at 120 horizontal dpi by 180 vertical dpi.
The parameter values should be calculated as follows:
n1
n2
p1
Remainder of the number of columns divided by 256.
Integer result of the previous division.
Sum of the values corresponding to the dots that should be printed in the first column of the
graphics pattern.
p2
Sum of the values corresponding to the dots that should be printed in the second column of the
graphics pattern.
px
Sum of the values corresponding to the dots that should be printed in the last column of the
graphics pattern.
ESC Y
Double density dot graphics printing at double-speed graphics (120 virtual dpi) (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC Y n1 n2 p1 p2 ... px
X'1B' X'59' n1 n2 p1 p2 ... px
27 89 n1 n2 p1 p2 ... px
0 = n1 = 255
0 = n2 = 31
0 = p = 255
Terminator code. This command prints dot graphics at 120 horizontal dpi by 180 vertical dpi.
The parameter values should be calculated as follows:
n1
n2
p1
p2
px
Remainder of the number of columns divided by 256.
Integer result of the previous division.
Sum of the values corresponding to the dots that should be printed in the first column of the
graphics pattern.
Sum of the values corresponding to the dots that should be printed in the second column of the
graphics pattern.
Sum of the values corresponding to the dots that should be printed in the last column of the
graphics pattern.
ESC Z
Quadruple density dot graphics printing (240 virtual dpi) (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
Range
ESC Z n1 n2 p1 p2 ... px
X'1B' X'5A' n1 n2 p1 p2 ... px
27 90 n1 n2 p1 p2 ... px
0 = n1 = 255
0 = n2 = 31
0 = p = 255
Terminator code. This command prints dot graphics at 240 horizontal dot per inch by 180 vertical dpi.
The parameter values should be calculated as follows:
n1
Remainder of the number of columns divided by 256.
Chapter 1 EPSON/IBM Commands
47
260070‐001A
Programmer Manual
n2
p1
p2
PTX‐S809
Integer result of the previous division.
Sum of the values corresponding to the dots that should be printed in the first column of the
graphics pattern.
Sum of the values corresponding to the dots that should be printed in the second column of the
graphics pattern.
ESC [ g
Selects 8 or 24 needle dot graphics mode. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ g l h m n 1 ... nk
X'1B' X'5B' X'67' l h m n 1 ... nk
27 91 103 l h m n 1 ... nk
This command selects dot graphics in 8 or 24 needle configuration. h*256+l represents the number of data
+ l. The m parameter represents the dot graphics modes as shown in the following table:
m
0
1
2
3
8
9
11
12
DENSITY
60
120
120
240
60
120
240
360
NEEDLE
8
8
8
8
24
24
24
24
FUNCTION
Same as ESC K (8 needles)
Same as ESC L (8 needles)
Same as ESC Y (8 needles)
Same as ESC Z (8 needles)
Same as ESC * (32)
Same as ESC * (33)
Same as ESC * (39)
Same as ESC * (40)
The n1, n2 up to nk parameters are dot graphics data. If you select the 8 needle dot graphics mode, one
byte of data is needed for each column so that the formula h*256+l = number of columns + l is valid. If
you select the 24 needle dot graphics mode, three bytes of data is needed for each column so that the
formula h*256+l = number of columns *3-l is valid.
Data Input Control
CAN
Cancels line. (EPSON)
ASCII Code
CAN
Hexadecimal Value
X'18'
Decimal Value
24
This code clears all printable characters and bit-image graphics on the current line. This code moves the
print position to the left-margin position.
CAN
Cancels data. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
CAN
X'18'
24
This code clears all data stored in the preceding print buffer but does not change the current print position.
Chapter 1 EPSON/IBM Commands
48
260070‐001A
Programmer Manual
PTX‐S809
DC1
Selects printer. (IBM)
ASCII Code
DC1
Hexadecimal Value
X'11'
Decimal Value
17
This command causes the printer to be enabled after it has been disabled by the ESC Q command.
DC1
Selects printer. (EPSON)
ASCII Code
DC1
Hexadecimal Value
X'11'
Decimal Value
17
This command causes the printer to be enabled after it has been disabled by the DC3 command.
DC3
Deselects printer. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
DC3
X'13'
19
This code deselects the printer. The printer remains deselected until it receives a DC1 command or power
is turned off then on again. The printer ignores the ESC @ command (initialize printer) when it is
deselected.
DEL
Deletes the last character. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
DEL
X'7F'
127
This command causes the printer to delete the last printable character sent to the printer. Printer control
codes are not affected. The printer ignores this command if it follows a command that moves the
horizontal print position (ESC $, ESC \, or HT).
ESC #
Cancels MSB control. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC #
X'1B' X'23'
27 35
This command cancels any controls on the Most Significant Bit (MSB) (bit number 7) set by ESC = or
ESC > commands. The printer then accepts all MSB data as is.
Chapter 1 EPSON/IBM Commands
49
260070‐001A
Programmer Manual
PTX‐S809
ESC =
Sets MSB to 0. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC =
X'1B' X'3D'
27 61
This command sets the MSB (bit number 7) of all incoming data to 0. All data is affected, including
graphics data.
ESC >
Sets MSB to 1. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC >
X'1B' X'3E'
27 62
This command sets the MSB (bit number 7) of all incoming data to 1. All data is affected, including
graphics data.
ESC Q
Deselects Printer. (IBM)
ASCII Code
Hexadecimal Value
Decimal Value
ESC Q n
X'1B' X'51' n
27 81 n
This sequence tells the printer not to accept data from the host. The host must reset the printer or select
the printer by using DC1 (Select Printer) to accept data. To deselect the printer, use ESC Q35.
Miscellaneous
BEL
Buzzer (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value
BEL
X'07'
7
This code sounds the printer buzzer.
BS
Print and space back one position (IBM/EPSON).
ASCII Code
Hexadecimal Value
Decimal Value 8
BS
X'08'
This code causes printing to be continued from one column to the left of the current carriage position. The
printer ignores this command if it would move the print position to the left of the left margin.
Chapter 1 EPSON/IBM Commands
50
260070‐001A
Programmer Manual
PTX‐S809
ESC @
Initializes the printer. (EPSON)
ASCII Code
Hexadecimal Value
Decimal Value
ESC @
X'1B' X'40'
27 64
This sequence causes the printer:
To go back to the current printer setup settings
To cancel any selected print attributes
To reset the column counter
To set the horizontal tabulations every 8 columns
To clear all vertical tabulations
Only the selection of the Draft or Quality printing DLL, and the selected character generator are
maintained.
ESC [ K
Sets initial conditions. (IBM 2391 + only)
ASCII Code
ESC [ K n1 n2 init id
Hexadecimal Value X'1B' X'5B' X'4B' n1 n2 init id
Decimal Value
27 91 75 n1 n2 init id
This command causes the printer to reset to its initial status:
n1, n2
The n1 and n2 parameters specify the number of bytes in the escape sequence normally,
n1 = 2 and n2 = always 0.
init
The init parameter specifies which condition the printer should be initialized: normally init =
0,1,4,5,254,255.
init
0
1
4
Description
Initializes the printer to user-default settings. The download font remains unchanged.
If parameters are specified, they overwrite the default settings. If the emulation mode
is changed, the download font is initialized. This command only copies data from the
selected macro, adds parameter changes, if any, and stores it in working RAM. The
data stored in the macro's nonvolatile RAM is not affected.
Initializes the printer to user-default settings. The download font is initialized. If
parameters are specified, they overwrite the default settings. This command only
copies data from the selected macro, adds parameter changes, if any, and stores it
in working RAM. The data stored in the macro's nonvolatile RAM is not affected.
Initializes the printer to factory settings. The download font remains unchanged. If
parameters are specified, they overwrite the default settings. If the emulation mode
is changed, the download font is initialized. This command only copies the default
settings from ROM, adds parameter changes, if any, and stores it in working RAM.
The data stored in the macro's nonvolatile RAM is not affected.
Chapter 1 EPSON/IBM Commands
51
260070‐001A
Programmer Manual
PTX‐S809
5
id
parm1
Initializes the printer to factory settings. The download font is initialized. If
parameters are specified, they overwrite the default settings. This command only
copies the default settings from ROM, adds parameter changes, if any, and stores it
in working RAM. The data stored in the macro's nonvolatile RAM is not affected.
254
Initializes the printer to user-default settings. The download font is initialized. If
parameters are specified, they overwrite the default settings.
This command changes the data stored in the selected macro. It copies data from
the selected macro, adds parameter changes, if any, and stores it in working RAM
and in the selected macro. It also changes the default macro to the value of parm 3.
255
Initializes the printer to default settings. The download font is initialized. If
parameters are specified, they overwrite the default settings. This command
changes the data stored in the macro's nonvolatile RAM. It copies default settings
from ROM, adds parameter changes, if any, and stores it in working RAM and all
macros. It also sets the default macro to
disable.
The id parameter specifies the printer for which the following parameter bytes are
intended. If the ID does not address your printer, the mode bytes that follow are ignored.
The ID values are Hex = X'B6', Dec = 182.
Specifies the following functions:
7
6
5
4
3
2
1
0
parm2
Bit
Discard byte
Reserved
Alarm
Automatic CR
Automatic LF
Page length
Slashed zero
Character set
Not set
Process this byte
Set
Ignore this byte
Alarm enabled
No CR on vertical movement
No LF after CR
11 inches
Zero without
CS1
Alarm disabled
CR on vertical movement
LF after CR
12 inches
slash Zero with slash
CS2
Specifies the following functions:
7
6
5
4
3
2
1
0
Bit
Discard byte
Pass over from
CP437-CP850
Reserved
Reserved
Reserved
Reserved
Line length
Reserved
Not set
Process this byte
CP437
Set
Ignore this byte
CP850
13.6 inch
8 inch
Only the selection of the Draft or Quality printing DLL, and the selected character generator are maintained.
ESC j
Stops printing. (IBM)
ASCII Code
ESC j n
Hexadecimal Value
X'1B' X'6A' n
Decimal Value
27 106 n
This command stops the printer. The printer goes offline and a BUSY signal is sent to the computer. To
Chapter 1 EPSON/IBM Commands
52
260070‐001A
Programmer Manual
PTX‐S809
place the printer online, press the ON LINE key.
ESC U
Sets printing direction (IBM/Epson).
ASCII Code
ESC U n
Hexadecimal Value
X'1B' X'55' n
Decimal Value
27 85 n
Selects bidirectional or unidirectional printing according to the parameters below:
n
0
1
Direction
Bidirectional printing
Unidirectional (left to right) printing
Unidirectional printing provides better alignment of vertical lines while bidirectional printing is faster.
ESC [ u n
Bar Codes selection. (IBM -Epson)
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ u n
X'1B' X'5B' X'75' n
27 91 117 n
This command is recognized only if the Bar Code menu option is set to “Alternate” mode.
n
0
1
Exit Bar Code mode
Enter Bar Code mode. Subsequent data are barcode data strings as set by ESC [ v n
ESC [ v n m
Sets Barcode parameters. (IBM -Epson)
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ vnm
X'1B' X'5B' X'76' nm
27 91 118 nm
Set barcode parameters according to the table below. Parameter values that are not supported result in
the command being ignored.
n
0
1
2
3
4
5
6
7
8
Parameter Description
Barcode style
Barcode height
Human readable line
Narrow bar width
Wide bar width
Narrow space width
Wide space width
Intercharacter space width
Rotation and HRC font
Chapter 1 EPSON/IBM Commands
m values
see below table
1-120 (1/12" increments)
0=disable 1=enable
2-225
2-225
2-225
2-225
2-225
0.1=no rotation and current font for HRC
2=90 3=180 4=270 and special HRC font
53
m default
4
12
1
3
7
3
7
3
0
260070‐001A
Programmer Manual
9
10
11
12
Horizontal print density
Check digit
HRC font for rotate barcode
Barcode height
PTX‐S809
1=120 2=144 3=180 dpi
0=disable 1=enable
3=OCRA 4=OCRB
0-240 (1/24" increments)
1
0
3
24
Supported Bar Code Styles
m
0
1
2
3
Style
Interleaved 2 of 5
Bidirectional 2 of 5
Matrix 2 of 5
Industrial 2 of 5
Supported Bar Code Styles
m
4
5
6
7
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
50
Style
Code 3 of 9 (default)
EAN-8
EAN-13
Code 11
Codabar (default start/stop = a/t)
Codabar (default start/stop = b/n)
Codabar (default start/stop = c/*)
Codabar (default start/stop = d/e)
UPC-A
UPS-E
Code 93
Code 128 (subset A, B, and C)
Code 128 (subset A, B, and C)
Code 128 (subset A, B, and C)
MSI
UPC 2 Supplemental
UPC 5 Supplemental
EAN 2 Supplemental
EAN 5 Supplemental
Postnet
Chapter 1 EPSON/IBM Commands
54
260070‐001A
Programmer Manual
PTX‐S809
Chapter 2. Native Emulation Commands
The printer in the Native Mode supports the following printer commands.
Format Control
DC4 DC4 ESC 1
Sets vertical spacing n/180 inch.
ASCII Code
Hexadecimal Value
Decimal Value
Range
DC4 DC4 ESC 1 n
X'14' X'14' X'1B' X'31' n
20 20 27 49 n
0 = n = 255
This command sets vertical spacing to n/180 inch for subsequent line feeds.
DC4 DC4 ESC 3 1
Sets vertical spacing 12 lines/30 mm.
ASCII Code
Hexadecimal Value
Decimal Value
DC4 DC4 ESC 3 1
X'14' X'14' X'1B' X'33' X'31'
20 20 27 51 49
This command sets vertical spacing to 12 lines per 30 mm.
DC4 DC4 ESC 3 3
Sets vertical spacing to 3 lines/30 mm.
ASCII Code
Hexadecimal Value
Decimal Value
DC4 DC4 ESC 3 3
X'14' X'14' X'1B' X'33' X'33'
20 20 27 51 51
This command sets vertical spacing to 3 lines per 30 mm.
DC4 DC4 ESC 3 4
Sets vertical spacing 4 lines/30 mm.
ASCII Code
Hexadecimal Value
Decimal Value
DC4 DC4 ESC 3 4
X'14' X'14' X'1B' X'33' X'34'
20 20 27 51 52
This command sets vertical spacing to 4 lines per 30 mm.
Chapter 2 Native Emulation Commands
55
260070‐001A
Programmer Manual
PTX‐S809
DC4 DC4 ESC 3 6
Sets vertical spacing 6 lines/30 mm.
ASCII Code
Hexadecimal Value
Decimal Value
DC4 DC4 ESC 3 6
X'14' X'14' X'1B' X'33' X'36'
20 20 27 51 54
This command sets vertical spacing to 6 lines per 30 mm.
DC4 DC4 ESC 3 8
Sets vertical spacing 8 lines/30 mm.
ASCII Code
Hexadecimal Value
Decimal Value
DC4 DC4 ESC 3 8
X'14' X'14' X'1B' X'33' X'38'
20 20 27 51 56
This command sets vertical spacing to 8 lines per 30 mm.
DC4 DC4 ESC A
Sets the horizontal spacing to 15, 17.1, 20,24 CPI.
ASCII Code
Hexadecimal Value
Decimal Value
DC4 DC4 ESC A n
X'14' X'14' X'1B' X'41' n
20 20 27 65 n
This is terminator code and causes the current contents of the print buffer to be printed. The subsequent
characters are printed at the horizontal spacing specified by the n parameter.
n
4
5
6
7
Spacing
15 cpi
17 cpi
20 cpi
24 cpi
Native Character Set
DC4 DC4 ESC g
Selects LQ fonts.
ASCII Code
Hexadecimal Value
Decimal Value
Range
DC4 DC4 ESC g n
X'14' X'14' X'1B' X'67' n
20 20 27 103 n
0 = n = 255
If down-line loading is selected, the command is stored and activated as soon as the down-line loading is
canceled.
Boldface is available if the ESC p1 (proportional) is sent.
Chapter 2 Native Emulation Commands
56
260070‐001A
Programmer Manual
n
1
5
182
Types
Gothic
OCR-B
DLL
PTX‐S809
n
2
6
Types
Courier
OCR-A
n
3
7
Types
Prestige
Presentor
n
4
11
Types
Script
Boldface Prop.
The OCR-A and OCR-B print styles are selected by the DC4 DC4 ESC S command.
DC4 DC4 ESC S
Selects character set ISO Character Sets or Code Pages.
ASCII Code
Hexadecimal Value
Decimal Value
n
1
2
3
4
5
6
7
8
9
15
128
129
130
131
132
133
134
135
136
DC4 DC4 ESC S n
X'14' X'14' X'1B' X'53' n
20 20 27 83 n
Types
ISO 8859/1 Latin 1
ISO 8859/2 Latin 2
ISO 8859/3 Latin 3
ISO 8859/4 Latin 4
ISO 8859/5 Latin/Cyrillic
ISO 8859/6 Latin/Arabic
ISO 8859/7 Latin/Greek
ISO 8859/8 Latin/Hebrew
ISO 8859/9 Latin 5
ISO 8859/15 Latin 9
CP 437 USA
CP 850 Multilingual
CP 860 Portugal
CP 863 Canada/France
CP 865 Denmark/Norway
CP 851 Greek
CP 862 Hebrew
CP 864 Arab
TASS Cyrillic
n
137
138
139
140
141
142
145
146
147
148
149
199
200
201
202
203
Types
CP 852 Eastern Europe
CP 876 OCR-A
CP 877 OCR-B
CP 855 Cyrillic
CP 866 Russian
GOST Cyrillic
CP 437G Greek
CP 853 Turkish
CP 857 Turkish
CP 867 Turkish
CP 858 Euro PC Multilingual
96 Greek
CP 1250
MAZOWIA
CP 1251
CP 1252
DC4 DC4 ESC p
Selects printing style type.
ASCII Code
Hexadecimal Value
Decimal Value
n
0
1
2
3
4
5
DC4 DC4 ESC p n
X'14' X'14' X'1B' X'70' n
20 20 27 112 n
Setting
HS Draft
Best Draft
Normal Draft
NLQ
LQ
DLL
Chapter 2 Native Emulation Commands
57
260070‐001A
Programmer Manual
PTX‐S809
Bar Codes
DC4 DC4 ESC !
Bar Code Selection.
ASCII Code
Hexadecimal Value
Decimal Value
DC4 DC4 ESC ! htfFroqbsBSiEM
X'14' X'14' X'1B' X'21' ! htfFroqbsBSiEM
20 20 27 33 ! htfFroqbsBSiEM
This command is recognized only if the menu option “BAR CODE” is set to “NATIVE” mode.
h = Bar Code Height at n/6”, 1 < h < 30
t = Standard Bar Code to use
t
1
2
3
4
5
6
7, 8, 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Name
8-digits European Article Numbering
13-digits European Article Numbering
Universal Product Code Type A
Universal Product Code Type E
UPC/EAN 2 Digit Supplement
UPC/EAN 5 Digit Supplement
8-digits European Article Numbering
General Purpose Bar Code
Code 2 of 5 3-BAR (Data Logic)
Binary Coded Decimal
MSI-Plessey
AIM-USD-8 / Code-11
AIM-USD-7 / Code-93
Code 2 of 5 Bidirectional
Code 2 of 5 Interleaved
Code 2 of 5 Industrial
Code 2 of 5 Matrix
Code 3 of 9
8-digits European Article Numbering
Codabar (all types)
Code 128
USPS-PostNet
EAN-8
EAN-13
UPC-A
UPC-E
UPC-EAN 2
UPC-EAN 5
EAN-8
Code-GP
C25-3BAR
CODE BCD
MSI
Code 11
Code 93
C25-BID
C25-INT
C25-IND
C25-MTX
Code-39
EAN-8
CODABAR
CODE-128
POSTNET
f = Readable character printing
f = 1 printing enabled
f = 0 printing disabled
F = Font selection for the printable characters
F
0
1
1
3
4
Selection
Selected font by r value
Default font for text
Special font for OCR-A o OCR-B bar codes according to the t value
Special font for OCR-A bar codes
Special font for OCR-B bar codes
r = Bar code rotation
r Selection
0 No rotation
1 Rotation at 0°
Chapter 2 Native Emulation Commands
58
260070‐001A
Programmer Manual
PTX‐S809
2 Rotation at 90°
3 Rotation at 180°
4 Rotation at 270°
o = A check digit is inserted as the last character of the received string according to the bar code
q = The horizontal graphic density of the bar code
q Selection
0 1/120"
1 1/180"
b = Narrow bar width in n/180", 3 < b <18
s = Narrow space width in n/180", 3 < s <18
B = Wide bar width in n/180", 6 < B <72
S = Wide space width in n/180", 6 < S <72
i = Spacing between characters in n/180", 3 < i <72
EM = Check sequence terminator
Bar Code Description
EAN-8
DC4 DC4 ESC ! n1pEM
The EAN-8 bar code data field must only contain numeric data and must be eight bytes long
including the check digit. The EAN-8 character repertoire provides 0 to 9 ASCII numeric
figures. n indicates the bar code height in units of 1/6 inch and must be in the range 1 to 12.
pmust be NUL (hex. X'00') if no Human Readable Characters are to be printed, and 1 (hex.
X'01') if they are to be printed. The range of values for the nand pparameters can be
increased of 32 dec.
EAN-13
DC4 DC4 ESC ! n2pEM
The EAN-13 bar code data field must only contain numeric data and must be 13 bytes long
including the check digit. The EAN-13 character repertoire provides 0 to 9 ASCII numeric
figures. n indicates the bar code height in units of 1/6 inch and must be in the range 1 to 12.
If you want to print the Human Readable Characters, pmust have the value 1 (hex. X'01');
otherwise this value must be NUL (hex. X'00'). The range of values for the nand pparameters
can be increased of 32 dec.
UPC-A
DC4 DC4 ESC ! n3pEM
The UPC-A bar code data field allows 10 numeric characters plus one system number digit
and one check digit at the leftmost and rightmost positions, respectively. The UPC-A
character repertoire provides 0 to 9 ASCII numeric figures. nindicates the bar code height in
units of 1/6 inch and must be in the range 1 to 12. pmust be NUL (hex. X'00') if no Human
Readable Characters are to be printed, and 1 (hex. X'01') if they are to be printed. The range
of values for the nand pparameters can be increased of 32 dec.
UPC-E
DC4 DC4 ESC ! n4pEM
If 11-digit strings are received and the ocheck digit field is missing or takes values 0 or 2,
question marks are printed in place of the HRC string, when possible. If the ofield takes a
value of 1, the 12th digit is inserted by the printer as a result of the internally available
algorithm applied to the received string.
Chapter 2 Native Emulation Commands
59
260070‐001A
Programmer Manual
PTX‐S809
If 10-digit strings are received and the ocheck-digit is missing or takes NULL value, question
marks are printed in place of HRC string, if possible. If the ofield takes a value of 1, a default
0 System-Digit is automatically inserted by the printer and the 12th digit is also inserted as
result of he internally available algorithm applied to the final string.
If the final UPC-A string cannot be compressed to an 8-digits string, or the received SystemDigit is different than 0 or 1, question marks are printed in place of the HRC string, if
possible.
The LEFT and RIGHT delimiters, System-Digit, and the Check-Digit are printed as
descending bars to make a field to host a 6-digits HRC string. The System-Digit HRC to the
left of the LEFT delimiter (at about the middle of the symbol) when the ffield is missing or set
to 1. In this case, the Check-Digit shows in HRC to the right of the RIGHT delimiter (at about
the middle of the symbol), when ofield takes values 2 or 3. Otherwise it never shows on the
HRC string.
UPC-EAN 2
DC4 DC4 ESC ! n5pEM
The ADD ON-2 bar code data fields contain numeric data only. Otherwise question marks
are printed in place of the HRC string, if possible.
If 3-digit strings are received within a DC4 DC4 ESC (... EM control sequence and the o
check-digit option field is missing or takes NULL value, the symbol encodes the first 2 digits
and the 3rd received digit is used as the check digit, even though this may affect its
readability. If the o field takes a value of 1, the 3rd digit is matched as opposed to the
internally generated check-digit. Question marks are printed in place of HRC string when
mismatched, if possible.
If 2-digit strings are received and ocheck digit field is missing or takes NULL value, question
marks are printed in place of the HRC string, when possible. If the ofield takes a value of 1,
the check digit are computed applying the internally available algorithm to the received string
in order to properly encode the symbol.
If the ffield is missing or takes a value of 1, the 2-digit HRC string is printed above the
Bar/Spaces symbol and its height is part of the overall symbol's height. The check-digit never
shows on the HRC string. If the ffield takes a value of 0, the symbol's encoding prints at full
height.
UPC-EAN 5
DC4 DC4 ESC ! n6pEM
The ADD ON-5 bar code data field contains numeric data only. Otherwise question marks
are printed in place of the HRC string, if possible.
If 6-digit strings are received within a DC4 DC4 ESC (... EM control sequence and ocheckdigit option field is missing or takes NULL value, the symbol encodes the first 5 digits and the
6th received digit is used as a check digit, even though this may affect its readability. If the
ocheck digit option takes a value of 1, the 6th digit is matched as opposed to the internally
generated check digit. Question marks are printed in place of the HRC string when
mismatching, if possible.
If 5-digit strings are received and the ocheck digit field is missing or takes a NULL value,
question marks are printed in place of the HRC string, if possible. If the ofield takes a value
of 1, the check digit is computed applying the internally available algorithm to the received
string in order to properly encode the symbol If the ffield is missing or takes a value of 1, the
5-digit HRC string is printed above the Bar/Spaces symbol and its height is part of the overall
symbol's height; the check-digit never shows on the HRC string. If the ffield takes a value of
0, the symbol’s encoding prints at full height.
CODE GP
DC4 DC4 ESC ! n10pEM
The CODE-GP bar code allows bar codes to be constructed from the two basic elements
(BAR and SPACE) by sending 0,1 digits: digit 0 produces a BAR and digit 1 produces a
SPACE.
Chapter 2 Native Emulation Commands
60
260070‐001A
Programmer Manual
PTX‐S809
These two elements may be combined in any sequence, giving the possibility of producing
bars and spaces of any width that is a multiple of the basic element width. The default
bar/spaces width is 1/60" (q= 0,1) but these values may be set by the user according to its
specific needs. Data fields do not have a defined format length and contain 0,1 data only.
Otherwise question marks are printed in place of HRC string, if possible.
No Human Readable Interpretation is possible No TEXT STRING below or above the
bar/space symbol can be printed. The fand ofields are ignored.
C25-3BAR
DC4 DC4 ESC ! n11pEM
The C25-3BAR bar code data fields do not have a defined format length and contain numeric
data only. Otherwise, question marks are printed in place of the HRC string, if possible. If the
ocheck digit option field takes a value of 1, an internally generated check digit complying with
general 2/5 family algorithm is added to the encoded string. However, it will not show on the
required HRC string.
Code BCD
DC4 DC4 ESC ! n12pEM
The CODE-BCD bar code data fields do not have a defined format length and contain
numeric data only. Otherwise question marks will be printed in place of the HRC string, if
possible. No internal check digit algorithm is available for this standard. The ofield is
meaningless.
MSI Plessey
DC4 DC4 ESC ! n13pEM
The MSI bar code data fields do not have a defined format length and must contain numeric
data only. Otherwise question marks are printed in place of the HRC string, if possible. To
releave the host from calculating the MSI check digits, internal algorithms are provided that
are accessible by the host application program, giving the proper supported value to the
ocheck-digit option field, according to the following options:
0
1
3
5
Print the bar code symbol with no
printer-generated check digits
Print the bar code symbol with IBM
Modulus-10 check digit -generated
by the printer and put at the end of
the numeric string. This is the 2nd
check digit. The 1st check digit is
IBM Modulus-10 also.
Print the bar code symbol with both
check digits generated by the printer
and put it at the end of the data. The
2nd check digit is IBM Modulus-10.
The 1st check digit is NCR Modulus11. If the modulus is 10, it is an error
and question marks are printed in
place of the HRC string, if possible.
Print the bar code symbol with both
check digits generated by the printer
and put it at the end of the data. The
2nd check digit is IBM Modulus-10.
The 1st check digit is the
complement to 11 of NCR Modulus11 algorithm applied to the received
string, If the modulus is 0 or 1, the
check digit is 0.
Chapter 2 Native Emulation Commands
61
2
Print the bar code symbol with both
check digits generated by the printer and
put at the end of the data. The 2nd check
digit is IBM Modulus-10. The 1st check
digit is also IBM Modulus-10.
4
Print the bar code symbol with both
check digits generated by the printer and
put it at the end of the data. The 2nd
check digit is IBM Modulus-10. The 1st
check digit is IBM Modulus-11. If the
modulus is 10, it is an error and question
marks are printed in place of the HRC
string, if possible.
Print the bar code symbol with both
check digits generated by the printer and
put it at the end of the data. The 2nd
check digit is IBM Modulus-10. The 1st
check digit is the complement to 11 of
IBM Modulus-11 algorithm applied to the
received string. If the modulus is 0 or 1,
the check digit is 0.
6
260070‐001A
Programmer Manual
7
PTX‐S809
Print the bar code symbol with both
check digits generated by the printer
and put at the end of the data. The
2nd check digit is IBM Modulus-10.
The 1st check digit is the
complement to 11 of NCR Modulus11 algorithm applied to the received
string. If the modulus is 0 or 1, it is
an error and question marks are
printed in place of the HRC string, if
possible.
8
Print the bar code symbol with both
check digits generated by the printer and
put at the end of the data. The 2nd check
digit is IBM Modulus-10. The 1st check
digit is the complement to 11 of IBM
Modulus-11 algorithm applied to the
received string. If the modulus is 0 or 1,
it is an error and question marks are
printed in place of the HRC string, if
possible.
The printer-generated second check digit does not show on the required HRC string.
Code 11
DC4 DC4 ESC ! n14pEM
The CODE-11 bar code fields do not have a defined format length and contain data
belonging to the character set listed below:
0123456789
Otherwise question marks are printed in place of the HRC string, if possible.
This barcode type defines a variable WIDE/NARROW ratio. The bar code is printed at 1/180"
horizontal and vertical graphical printing resolution to ensure high readability rate. Each digit
encoding is separated from the next by a 1/90"—1/60" wide default Intercharacter Gap.
CODE-11 has unique a START/STOP character. The printer generates the couple related to
each symbol. It is visually interpreted by an OPEN TRIANGLE and will always appear on the
HRC string because its size is usually varied to signify the number of check digits being used
in the particular symbol:
SMALL open triangle means ONE check-digit
LARGE open triangle means TWO check-digit
The ffield is meaningless and always defaults to the HRC string print.
Code 93
DC4 DC4 ESC ! n15pEM
The CODE-93 bar code fields do not have a defined format length and contain data
belonging to the standard ASCII character set, including control codes.
Since the GS and EM control codes are used, the DC4 DC4 ESC (... EM “Print bar-code”
control sequence is part of the supported character set. The host application must SET THE
HIGHER-ORDER BIT of the above control codes to allow the printer to distinguish between
encodable data and string terminators.
The complete ASCII standard character set is encoded using 47 combinations of 9
bar/space narrow elements arranged into 3 variable width bars with their adjacent variable
width spaces. Each of the bars in the supported combinations can be 1, 2, or 3 modules
wide. The START/STOP character has a 4-module wide bar. CODE-93 directly implements
the basic subset as shown below:
0123456789 A BCDEFGHIJKL MNOP QRS T UVWX Y Z-.SPACES$/+%
($) (%) (/) (+) (as special control characters)
# (as unique START/STOP character)
The other STANDARD-ASCII codes not presented above are represented by means of a
combination of one control character in the above set followed by a symbol in the
alphabetical set. The HRC string is printed BELOW the symbol when ffield is set to 1 without
Chapter 2 Native Emulation Commands
62
260070‐001A
Programmer Manual
PTX‐S809
check digits. Non-printable ASCII characters are represented in the “control code” format (for
example, CR is ^M, where “control” is represented as DARK-SQUARE symbol).
2of5
DC4 DC4 ESC ! n16pEM
Bidirectional The BID-25 bar code data fields do not have a defined format length and
contain numeric data only. Otherwise, question marks are printed in place of the HRC string,
if possible. If the ocheck digit option field takes a value of 1, an internally generated check
digit is added to the encoded string that will not show on the required HRC string.
2of5
DC4 DC4 ESC ! n17pEM
Interleaved The 2/5-INTERLEAVED bar code does not have a defined format length.
However, the total sum of the characters must be even. nindicates the bar code height and
must be in the range 1 to 12. p must be NUL (hex. X'00') if no Human Readable Characters
are to be printed, and 1 (hex. X'01') if they are to be printed.
2of5
DC4 DC4 ESC ! n18pEM
Industrial The 2/5 INDUSTRIAL bar code. Data format length is variable and the supported
character set only provides ASCII numeric figures 0 to 9. nindicates the bar code height in
units of 1/6 inch and must be in the range 1 to 12. pmust be NUL (hex. X'00') if no Human
Readable Characters are to be printed, and 1 (hex. X'01') if they are to be printed.
2of5
DC4 DC4 ESC ! n19pEM
The 2/5 MATRIX bar code. Data format length is variable and the supported character set
only provides ASCII numeric figures 0 to 9. nindicates the bar code height in units of 1/6 inch
and must be in the range 1 to 12. pmust be NUL (hex. X'00') if no Human Readable
Characters are to be printed, and 1 (hex. X'01') if they are to be printed.
Code 39
DC4 DC4 ESC ! n20pEM
The CODE 39 bar code. Data format length is variable and must always start and end with
an asterisk. It can contain the alphanumeric character listed below:
0123456789
ABCDEFGHIJKL MNOP QRS T UVWX Y Z -. SPACE$/+%*(as start / stop character)
The parameter indicates the bar code height in units of 1/6 inch and must be in the range 1
to 12. The pparameter must be NUL (hex. X'00') if no Human Readable Characters are to be
printed, and 1 (hex. X'01') if they are to be printed.
CODABAR
DC4 DC4 ESC ! n22pEM
The Codabar bar code data fields do not have a defined format length and contain data
belonging to the character set listed hereafter:
0123456789-$:/.+
ABCDEN T *abcdent (only as START/STOP characters)
The printer allows any combination of START/STOP characters. If the first and last
characters of the received string do not belong to the START/STOP characters subset,
question marks are printed in place of the HRC string, if possible
CODE 128
DC4 DC4 ESC ! n23pEM
The CODE-128 bar code data fields do not have a defined format length and contain data
belonging to the standard ASCII character set, including control codes. Since the GS and
EM control codes used within the DC4 DC4 ESC (...EM “Print Bar Code” control sequence
are part of the supported character set, the host application must SET THE HIGHER-
Chapter 2 Native Emulation Commands
63
260070‐001A
Programmer Manual
PTX‐S809
ORDER BIT of the above control codes to allow the printer to distinguish between encodable
data and string terminators.
POSTNET
DC4 DC4 ESC ! n24pEM
The POSTNET bar code data fields contain only numeric data and do not have a defined
format length. POSTNET bar codes have no printed HRC string. The LOW/TALL bars that
encode the symbol comply with the U.S.P.S standard regardless of the p field value.
DC4 DC4 ESC (GS data EM
Prints bar code symbols.
ASCII Code
Hexadecimal Value
Decimal Value
Range
DC4 DC4 ESC (GS n1 data GS n2 data ... EM
X'14' X'14' X'1B' X'28' X'1D' n1 data ... 19
20 20 27 40 29 n1 data ... 25
1 = n = 12
0=p=1
This sequence prints the bar code symbol according to the previous selection. If you want to print more
than one bar code symbol of the same type and height, GS n defines the distance from the beginning of
the line or between two bar code symbols in multiples of 1/60 or 1/90 of an inch, depending upon the
selected barcode density (120 or 180 dpi). At the end of the line EM must close this command.
Miscellaneous
DC4 DC4 ESC @
Re-initializes the printer.
ASCII Code
DC4 DC4 ESC @
Hexadecimal Value
X'14' X'14' X'1B' X'40'
Decimal Value
20 20 27 64
This command resets the printer mode and clears the buffer of printable data.
DC4 DC4 ESC J
Sets amplification factor.
ASCII Code
DC4 DC4 ESC J hv
Hexadecimal Value
X'14' X'14' X'1B' X'4A' hv
Decimal Value
20 20 27 74 hv
This command sets the required amplification factor to be applied to the current font.
h
It is the horizontal amplification factor; the value range is 1 to 4. It is applied to the basic symbols.
It
is the vertical amplification factor; the value range is 1 to 4.
0 values for either the hand vparameters keep the related current amplification factor unchanged.
The internally available symbol's amplification algorithms support the following character attributes that
may be selected by means of the available control sequences within the currently active emulation: double
width, double-height, emphasized, double strike, subscript, superscript, italics, proportional, and
compressed.
Doublewide and double-high attributes must be lower than 2.
Chapter 2 Native Emulation Commands
64
260070‐001A
Programmer Manual
PTX‐S809
DC4 DC4 ESC N
Selects/loads or parks the fanfold from the Front 2 path.
ASCII Code
Hexadecimal Value
Decimal Value
Range
n
0
1
DC4 DC4 ESC N n
X'14' X'14' X'1B' X'4E' n
20 20 27 78 n
0 = n= 1
Selection
Selects and loads the fanfold from the Front2 path. If the paper is present, the printer automatically
parks the fanfold that is not requested before loading the new one (after having pressed the PARK
key in response to the TEAR IF NECESS/PARK PAPER message).
Parks the fanfold loaded from the Front2 path to allow the tear off function (after having pressed the
PARK key in response to the TEAR IF NECESS/PARK PAPER message).
DC4 DC4 ESC R
String rotation.
ASCII Code
DC4 DC4 ESC R n string EM
Hexadecimal Value
X'14' X'14' X'1B' X'52' n string EM
Decimal Value 20 20 27 82 n string EM
n
0
1
2
3
4
Selection
No rotation.
Rotation at 0°
Rotation at 90°
Rotation at 180°
Rotation at 270°
DC4 DC4 ESC r
Digit rotation.
ASCII Code
Hexadecimal Value
Decimal Value
DC4 DC4 ESC r
X'14' X'14' X'1B' X'72'
20 20 27 144
This command is used to set the required character rotation to be applied to the selected font.
n
0
1
2
3
4
Selection
No rotation.
Rotation at 0°
Rotation at 90°
Rotation at 180°
Rotation at 270°
DC4 DC4 ESC T
Selects/loads or parks the fanfold from the Front1 path.
ASCII Code
DC4 DC4 ESC T n
Hexadecimal Value
X'14' X'14' X'1B' X'54' n
Decimal Value
20 20 27 84 n
Chapter 2 Native Emulation Commands
65
260070‐001A
Programmer Manual
PTX‐S809
Range 0 = n = 1
n
Selection
0
Selects and loads the fanfold from the Front1 path. If the paper is present (cut sheet/fanfold), the
printer automatically parks this fanfold that is not requested before loading the new one (after having
pressed the PARK key in response to the TEAR IF NECESS/PARK PAPER message).
1
Parks the fanfold loaded from the Front1 path to allow the tear off function (after having pressed the
PARK key in response to the TEAR IF NECESS/PARK PAPER message).
DC4 DC4 ESC Y
Selects emulation.
ASCII Code
Hexadecimal Value
Decimal Value
DC4 DC4 ESC Y n
X'14' X'14' X'1B' X'59' n
20 20 27 89 n
Selects the printer emulation type according to the n parameter value:
n
0
1
2
5
Emulation
Default printer emulation
EPSON LQ Series
IBM Proprinter XL24
IBM 2391+
DC4 DC4 ESC Z
Makes AGA in column.
ASCII Code
Hexadecimal Value
Decimal Value
DC4 DC4 ESC Z n
X'14' X'14' X'1B' X'5A' n
20 20 27 90 n
The n parameter is the column number at 10 cpi where the AGA (Automatic Gap Adjustment) is made.
DC4 DC4 ESC u
Selects the user macros.
ASCII Code
Hexadecimal Value
Decimal Value
Range
n
1
2
4
5
DC4 DC4 ESC u n
X'14' X'14' X'1B' X'75' n
20 20 27 117 n
0=n=4
Selection
Selects User Macro 1
Selects User Macro 2
Selects User Macro 3
Selects User Macro 4
DC4 DC4 ESC D
Sends the operator panel messages to the serial I/F.
ASCII Code
DC4 DC4 ESC D n
Hexadecimal Value
X'14' X'14' X'1B' X'44' n
Decimal Value 20 20 27 68 n
Chapter 2 Native Emulation Commands
66
260070‐001A
Programmer Manual
PTX‐S809
This command enables or disables sending operator panel messages to the serial I/F. The string to send
is the following: STX “message (16 ASCII byte-characters)”EXT.
n
0
1
Selection
enabled
disabled
DC4 DC4 ESC v
Selects graphics print speed.
ASCII Code
Hexadecimal Value
Decimal Value
n
0
1
DC4 DC4 ESC v n
X'14' X'14' X'1B' X'76' n
20 20 27 118 n
Selection
Selects graphics printing at high vertical density (180 dpi) -reduced print speed.
Selects graphics printing at low vertical density (90 dpi) -high print speed.
Chapter 2 Native Emulation Commands
67
260070‐001A
Programmer Manual
PTX‐S809
This page is intentionally left blank
Chapter 2 Native Emulation Commands
68
260070‐001A
Programmer Manual
PTX‐S809
Chapter 3. ANSI Emulation Commands
The following printer commands are supported by this printer according to the ANSI X3.64 emulation.
Most dimensional parameters in ANSI protocol are expressed in “decipoints”. For example:
1 decipoint
72 decipoints
120 decipoints
720 decipoints
2880 decipoints
= 1/720 inch
= 1/10 inch
= 1/6 inch
= 1 inch
= 4 inches
All parameter values must be expressed as ASCII numeric rather than binary values.
Parameters, within commands with multiple parameters, must be separated by a semicolon “;”.
See “Basic Program Sample” at the end of this chapter and result printed by the printer.
Chapter 3 ANSI Emulation Commands
69
260070‐001A
Programmer Manual
PTX‐S809
Character Set Control
ESC [ p1 x
Selects national character set (Select National Characters -SNC).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1 x
X'1B' X'5B' p1 X'78'
27 91 p1 120
This command selects the national character set table according to the p1 parameter value. See the
following tables:
Table 1. 7-bit Substitution
p1
0
1
2
3
4
5
6
7
8
9
10
11
12
NATION
USA
Germany
French A
French B
French Canadian
Netherlands
Italian
United Kingdom
Spanish
Danish/Norwegian A
Danish/Norwegian B
Danish/Norwegian C
Danish/Norwegian D
p1
13
14
15
16
17
18
19
20
21
22
25
NATION
Swedish/Finnish A
Swedish/Finnish B
Swedish/Finnish C
Swedish/Finnish D
Switzerland
USA (ISO)
Yugoslavia
United Kingdom A
Turkey
Greece
Cyrillic
See the tables in “ANSI National Variations”.
Chapter 3 ANSI Emulation Commands
70
260070‐001A
Programmer Manual
PTX‐S809
Table 2. 8-bit Substitution
p1
437
850
851
852
853
855
858
860
863
864
865
866
867
1250
5915
8570 to 8575
8576
8577
8578
CHARACTER SETS
Code Page 437
Code Page 850
Code Page 851
Code Page 852
Code Page 853
Code Page 855
Code Page 858
(Euro symbol included)
Code Page 860
Code Page 863
Code Page 864
Code Page 865
Code Page 866
Code Page 867
Code Page 1250
ISO 8859-15
(Euro symbol included)
Reserved
Mazowia
Turkish
Greek
p1
CHARACTER SETS
8579
Kamenicky
8580
CWI
8581
Roman-8
8582
IN2
8583
Code Page 864E
8584
Reserved
8585
Bulgarian
8586 to 8590 Reserved
8591
ISO 8859-1 Western Europe
8592
SO 8859-2 Eastern Europe
8593
ISO 8859-3 Southern Europe
8594
ISO 8859-4 Northern Europe
8595
ISO 8859-5 Cyrillic
8596
ISO 8859-6 Arabic
8597
ISO 8859-7 Greek
8598
ISO 8859-8 Hebrew
8599
ISO 8859-9 Southern Europe 2
8600 to 8700 Reserved for other ISO Tables
See the tables in “Character Sets”.
Chapter 3 ANSI Emulation Commands
71
260070‐001A
Programmer Manual
PTX‐S809
Character Pitch and Print Modes
ESC [ p1; ... pn m
Select graphics rendition (SGR).
ASCII Code
ESC [ p1; ... pn m
Hexadecimal Value
X'1B' X'5B' p1 X'3B' ... pn X'6D'
Decimal Value 27 91 p1 59 ... pn 109
This command selects fonts, pitch, print modes, and character styles according to the parameter settings:
p
DEFINITION
p
DEFINITION
0
1
2
3
4
5
6
7
8, 9
10
11
12
13
14
15
16
17
18
19
20
Normal Print Mode
Bold Print Mode
Subscript Mode
Superscript Mode
Underline Mode
Expanded Mode
Proportional
Italic Mode
Reserved
Draft Font
Draft Font
LQ Gothic
Draft Font
LQ Courier
Draft Italic
LQ Gothic Italic
Draft Italic
LQ Courier Italic
Draft
Reserved
21
22
23
24
25
26
Double Underline Mode
Cancel Bold Mode
Reserved
Cancel Underline Mode (Single & Double)
Cancel Expanded Mode
Cancel Proportional Mode
Subscript and Superscript modes are enabled through the System Menu (ANSI OPTIONS-S/SCRIPT YES).
Refer to the Administrator’s Manual.
Chapter 3 ANSI Emulation Commands
72
260070‐001A
Programmer Manual
PTX‐S809
ESC [ p1; p2 SP B
Graphic size modification (GSM).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; p2 SP B
X'1B' X'5B' p1 X'3B' p2 X'20' X'42'
27 91 p1 59 p2 32 66
This command sets the height and/or width of expanded and oversized characters.
The p1 and p2 parameters are the percentages by which the height and width will be multiplied,
respectively. The default values of p1 and p2 are 100%.
The maximum expansion factor is18700 for oversize mode and 800 for expanded mode, respectively.
ESC [ p1 t
Special print mode (Oversize/Expanded/Bar code Mode -SPM).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1 t
X'1B' X'5B' p1 X'74'
27 91 p1 116
This sequence selects or deselects oversize expanded or bar code mode according to the p1 parameter
value. See the following table:
p1
0
1
2
3
FUNCTION
Cancel special mode
Select oversize mode
Select expanded mode
Select bar code mode
It can select just one special print mode at a time.
SO
Shift out.
ASCII Code
Hexadecimal Value
Decimal Value
SO
X'0E'
14
This code enables Expanded/Oversize mode as determined by the last received ESC [ p1 t command.
SI
Shift in.
ASCII Code
Hexadecimal Value
Decimal Value
SI
X'0F'
15
This code disables Expanded/Oversize mode as determined by the last received ESC [ p1 t command.
Chapter 3 ANSI Emulation Commands
73
260070‐001A
Programmer Manual
PTX‐S809
ESC [ p1; pn {
Unidirectional printing (UDP).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; pn {
X'1B' X'5B' p1 X'3B' pn X'7B'
27 91 p1 59 pn 123
This command selects the unidirectional or bidirectional printing according to the p parameter values. See
the following table:
p
0
1
2
FUNCTION
Cancel unidirectional printing
Print unidirectional LQ and DP
Print unidirectional Dot Graphics
Horizontal Movements
BS
Back space.
ASCII Code
Hexadecimal Value
Decimal Value
BS
X'08'
8
The BS code moves the print head one character to the left at the current cpi.
CR
Carriage return.
ASCII Code
Hexadecimal Value
Decimal Value
CR
X'0D'
13
This code causes the print head to be moved to the left margin on the current line.
SP
Space.
ASCII Code
Hexadecimal Value
Decimal Value
SP
X'20'
32
This code positions one character space to the right of the print position.
Chapter 3 ANSI Emulation Commands
74
260070‐001A
Programmer Manual
PTX‐S809
ESC [ p1 '
Horizontal position absolute (HPA).
ASCII Code
ESC [ p1 '
Hexadecimal Value
X'1B' X'5B' p1 X'60'
Decimal Value 27 91 p1 96
This command causes the print position to be moved to the decipoint location specified by p1. This
sequence can be used to print within the left, top, and bottom margins.
ESC [ p1 a
Horizontal position relative (HPR).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1 a
X'1B' X'5B' p1 X'61'
27 91 p1 97
This command moves the print position to the right, relative to the current position. The p1 parameter
specifies the number of decipoints. This command cannot be used to move beyond the right margin.
ESC [ p1; p2 s
Left/right margin set (SLR).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; p2 s
X'1B' X'5B' p1 X'3B' p2 X'73'
27 91 p1 59 p2 115
This command sets the left and right margin values. The p1 parameter specifies the decipoint value of the
left margin. The p2 parameter specifies the decipoint value of the right margin value. The default value for
the left margin is 0. The value for the right margin is the maximum width supported by the printer
configuration (that is 13.6*720=9792).
ESC [ p1 j
Horizontal position backward (HPB).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1 j
X'1B' X'5B' p1 X'6A'
27 91 p1 106
This command causes the current horizontal position to be moved backwards as specified by the p1
parameter (decipoints).
HT
Horizontal tab.
ASCII Code
Hexadecimal Value
Decimal Value
HT
X'09'
9
This code causes the print head to be moved to the next tab stop.
Chapter 3 ANSI Emulation Commands
75
260070‐001A
Programmer Manual
PTX‐S809
ESC H or HTS
Horizontal tab setting.
ASCII Code
Hexadecimal Value
Decimal Value
ESC H or HTS
X'1B' X'48' (7-bit) or X'88' (8-bit)
27 72 (7-bit) or 136 (8-bit)
This command causes a horizontal tab stop to be set to the decipoint value of the current print position.
ESC [ p1; pn u
Sets horizontal tab stops at specified positions multiple horizontal tab set (HTS).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; pn u
X'1B' X'5B' p1 X'3B' pn X'75'
27 91 p1 59 pn 117
This command sets up to 22 horizontal tab stops at each decipoint position specified by p parameters.
When specifying more than one position, enter the parameters in ascending order.
Vertical Movements
LF
Line feed.
ASCII Code
Hexadecimal Value
Decimal Value 10
LF
X'0A'
This code positions the paper one line space as indicated by the current line spacing value.
ESC D or IND
Index.
ASCII Code
Hexadecimal Value
Decimal Value
ESC D or IND
X'1B' X'44' (7-bit) or X'84' (8-bit)
27 68 (7-bit) or 132 (8-bit)
This command causes the paper to be positioned down one line space as indicated by the current line
spacing value.
ESC E or NEL
Next line.
ASCII Code
Hexadecimal Value
Decimal Value
ESC E or NEL
X'1B' X'45' (7-bit) or X'85' (8-bit)
27 69 (7-bit) or 133 (8-bit)
This command causes the paper to be positioned down one line space as indicated by the current line
spacing value. The column counter is reset to the left margin value.
Chapter 3 ANSI Emulation Commands
76
260070‐001A
Programmer Manual
PTX‐S809
ESC K or PLD
Partial line down.
ASCII Code
Hexadecimal Value
Decimal Value
ESC K or PLD
X'1B' X'4B' (7-bit) or X'8B' (8-bit)
27 75 (7-bit) or 139 (8-bit)
This command causes the paper to be positioned down one half line space at the current line spacing
value. This can create an appearance of subscripting. This sequence is also used after an ESC L (partial
line up sequence) to recover the original active vertical position.
ESC L or PLU
Partial line up.
ASCII Code
Hexadecimal Value
Decimal Value
ESC L or PLU
X'1B' X'4C' (7-bit) or X'8C' (8-bit)
27 76 (7-bit) or 140 (8-bit)
This command causes the paper to be positioned up one half line space at the current line spacing value.
This can create an appearance of superscripting. This sequence is also used after an ESC K (partial line
down sequence) to recover the original active vertical position.
ESC M or RI
Reverse index.
ASCII Code
Hexadecimal Value
Decimal Value
ESC M or RI
X'1B' X'4D' (7-bit) or X'8D' (8-bit)
27 77 (7-bit) or 141 (8-bit)
This command causes the paper to be positioned up one line space at the current line spacing value.
ESC [ p1 d
Vertical position absolute (VPA).
ASCII Code
ESC [ p1 d
Hexadecimal Value
X'1B' X'5B' p1 X'64'
Decimal Value 27 91 p1 100
This command causes the current vertical position to be set to the decipoint value specified by the p1
parameter relative to the top most line of the current form length. This sequence can be used to print
within the top and the bottom margins.
ESC [ p1 e
Vertical position relative (VPR).
ASCII Code
ESC [ p1 e
Hexadecimal Value
X'1B' X'5B' p1 X'65'
Decimal Value 27 91 p1 101
This command causes the current vertical position to be advanced to the position specified by the p1
parameter (in decipoints) relative to the current print line position.
Chapter 3 ANSI Emulation Commands
77
260070‐001A
Programmer Manual
PTX‐S809
ESC [ p1; p2 f
Horizontal and vertical position absolute (HVP).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; p2 f
X'1B' X'5B' p1 X'3B' p2 X'66'
27 91 p1 59 p2 102
This command causes the current print position to be moved to the vertical (p1) and horizontal (p2)
decipoint locations specified relative to the top left corner of the page.
This sequence can be used to print within the right, left, top and bottom margins.
ESC [ p1 k
Vertical position backward (VPB).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1 k
X'1B' X'5B' p1 X'6B'
27 91 p1 107
This command causes the current vertical position to be moved backwards as specified by the p1
parameter (decipoints) relative to the current print line position.
ESC [ p1; pn g
Tab clear (TBC).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; pn g
X'1B' X'5B' p1 X'3B' pn X'67'
27 91 p1 59 pn 103
This command clears horizontal and vertical tab stops. If no parameter is present, the horizontal tab stop
at the current position is cleared (default).
p
0 (default)
1
2
3
DESCRIPTION
Clear horizontal tab at current position
Clear vertical tab at current position
Clear all horizontal tab stops
Clear all vertical tab stops
VT
Vertical tab.
ASCII Code
Hexadecimal Value
Decimal Value
VT
X'0B'
11
This code causes printing to be moved to the left margin at the next vertical tab stop.
Chapter 3 ANSI Emulation Commands
78
260070‐001A
Programmer Manual
PTX‐S809
ESC J or VTS
Vertical tab setting.
ASCII Code
Hexadecimal Value
Decimal Value
ESC J or VTS
X'1B' X'4A' (7-bit) or X'8A' (8-bit)
27 74 (7-bit) or 138 (8-bit)
This command causes a vertical tab stop to be set to the decipoint value of the current vertical position.
ESC [ p1; pn v
Sets vertical tab stops at specified positions (Multiple Vertical Tab Set -VTS).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; pn v
X'1B' X'5B' p1 X'3B' pn X'76'
27 91 p1 59 pn 118
This command sets up to 12 vertical tab stops at each decipoint position specified by p parameters. The
tab stops are measured from the top of the page. When specifying more than one position, enter the
parameters in ascending order.
FF
Form feed.
ASCII Code
Hexadecimal Value
Decimal Value
FF
X'0C'
12
This code causes the data in the print buffer to be printed out and then advances the paper to the top of
the next form.
ESC [ p1; p2; p3 r
Form definition (FD).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; p2; p3 r
X'1B' X'5B' p1 X'3B' p2 X'3B' p3 X'72'
27 91 p1 59 p2 59 p3 114
This command sets the page length, top and bottom margins.
The p1, p2 and p3 parameters specify the decipoint values.
pn
p1
p2
p3
FUNCTION
Page Length
Top Margin Position From the Beginning of the Page
Bottom Margin Position From the End of the Page
The maximum page length value is 15840 decipoints (22 inches).
Chapter 3 ANSI Emulation Commands
79
260070‐001A
Programmer Manual
PTX‐S809
ESC [ p1; p2 G
Sets the line/character spacing.
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; p2 G
X'1B' X'5B' p1 X'3B' p2 X'20' X'47'
27 91 p1 59 p2 32 71
This command sets the spacing between lines (p1 parameter) and the horizontal character pitch (p2
parameter) in decipoints.
If the vertical spacing value exceeds the current form length, this setting is ignored.
Interface Control
NUL
Ignored.
ASCII Code
Hexadecimal Value
Decimal Value
NUL
X’00’ or NUL
00
This code is ignored.
ENQ
Enquiry.
ASCII Code
Hexadecimal Value
Decimal Value
ENQ
X'05'
5
This code is used to request the message string defined by the OSC command when parameter p1=8 is
transmitted to the host.
DC1
Selects printer (Data Control 1).
ASCII Code
Hexadecimal Value
Decimal Value
DC1
X'11'
17
In parallel interface, this code reselects the printer after the printer has been deselected by a DC3 code.
In serial interface, this code is sent from the printer to the host to indicate that the printer is ready to
receive data.
DC3
Deselects printer (Data Control 3).
ASCII Code
Hexadecimal Value
Decimal Value
DC3
X'13'
19
Chapter 3 ANSI Emulation Commands
80
260070‐001A
Programmer Manual
PTX‐S809
In parallel interface, this code causes the printer to enter the standby condition until a DC1 code is
received.
In serial interface, this code is sent from the printer to the host to indicate that it is not ready to receive
data.
Operating System Control
BEL
Bell.
ASCII Code
Hexadecimal Value
Decimal Value
BEL
X'07'
7
This code causes the buzzer to sound for about 0.5 second.
DEL
Delete.
ASCII Code
Hexadecimal Value
Decimal Value
DEL
X'7F'
127
In parallel interface, this code causes the last received character to be deleted.
ESC
Escape.
ASCII Code
Hexadecimal Value
Decimal Value
ESC
X'1B'
27
This code is used as an escape sequence introducer.
ESC \ or ST
String terminator.
ASCII Code
Hexadecimal Value
Decimal Value
ESC \ or ST
X'1B' X'5C' (7-bit) or X'9C' (8-bit)
27 92 (7-bit) or 156 (8-bit)
This command closes the other escape sequences including the operating system and dot graphics
commands.
ESC Q or PU1
Executes Selftest.
ASCII Code
Hexadecimal Value
Decimal Value
ESC Q or PU1
X'1B' X'51' (7-bit) or X'91' (8-bit)
27 81 (7-bit) or 145 (8-bit)
In serial interface, upon receipt of this command the printer transmits 1B 50 30 1B 5C.
Chapter 3 ANSI Emulation Commands
81
260070‐001A
Programmer Manual
PTX‐S809
ESC c
Resets to initial state (RIS).
ASCII Code
Hexadecimal Value
Decimal Value
ESC c
X'1B' X'63'
27 99
This command writes the printer parameters from the stored format assigned to the current path into the
current format.
ESC k
Prints test character (PTC).
ASCII Code
Hexadecimal Value
Decimal Value
ESC k
X'1B' X'6B'
27 107
This sequence causes one line of the print head test character to be printed.
ESC [ p1; ... pn h
Sets mode (SM).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; ... pn h
X'1B' X'5B' p1 X'3B' ... pn X'68'
27 91 p1 59 ... pn 104
This command sets a specific print mode according to the parameter value. If the first parameter (p1)is
preceded by a “>” symbol then all parameters are interpreted as proprietary defined parameters. If the “>”
character is not specified, all parameters are interpreted as ANSI defined parameters.
The proprietary defined parameter values are:
p
1
2
3
4
MNEMONIC
PRM0
CSI
BLD
CS2
MODE FUNCTION
Proportional Print Mode
Single Character CSI Mode
Bold Mode
Character Set 2 Mode
The ANSI defined parameter values are:
p
0
20
MNEMONIC MODE FUNCTION
Ignored
LNM Auto CR on LF
ESC p1; pn l
Resets mode (RM).
ASCII Code
Hexadecimal Value
Decimal Value
ESC p1; pn l
X'1B' X'5B' p1 X'3B' pn X'6C'
27 91 p1 59 pn 108
This sequence resets the print mode(s) indicated by the p1/pn parameter(s).
Chapter 3 ANSI Emulation Commands
82
260070‐001A
Programmer Manual
PTX‐S809
ESC [ p1; p2 SP~
Selects emulation (EMU).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; p2 SP~
X'1B' X'5B' p1 X'3B' p2 X'20' X'7E'
27 91 p1 59 p2 32 126
This sequence selects the emulation according to p values. The p1 parameter is an emulation identifier
value while p2 is a reset control value.
The proprietary defined parameter values are:
p1
0
1 -20
21
22
p2
FUNCTION
ANSI
Reserved
IBM Proprinter XL 24/24E
EPSON LQ 1050
0
Hold values (default). The current settings remain valid after changing the printer
emulation.
Full reset. The status of such parameters reverts to defaults dependent on the
selected emulation.
1
To select ANSI mode from the Proprinter XL 24 mode and maintain the parameters, the sequence would
be: [0; 0~ Leading zeros and defaulting parameters are not guaranteed to be parsed and
therefore should not be used by the application. Parameter p1 & p2 will be expressed as ASCII, not binary,
values. In the example above, “0” is “30H”, not “00H”.
Paper Path Selection
ESC [ p1; pn p
Assign source for forms.
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; p2 p
X'1B' X'5B' p1 X'3B' pn X'70'
27 91 p1 59 pn 32 112
This command controls the modes of paths for parking, loading paper. The p parameter is an ASCII value.
See the following table:
P
0-7
8
9
10
11
13
14
PAPER PATH CONTROL
Reserved
Park paper in the current path. Fanfold can be moved backwards for two form lengths. This creates a
“Paper Out” fault condition that exists until paper is loaded from the control panel.
Load Paper from the selected paper path.
Select and load paper from the Front2 (is the optional Front 2 push tractor assembly is installed).
The current paper will be parked or ejected.
Select and load paper from the Front 1. The current paper will be parked.
Select and load paper from the Front 2. (is the optional Front 2 push tractor assembly is installed).
The current paper will be parked or ejected.
Reserved
Chapter 3 ANSI Emulation Commands
83
260070‐001A
Programmer Manual
PTX‐S809
Graphics Control Functions
ESC [ p1 q
Select graphics mode/density (GRM).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1 q
X'1B' X'5B' p1 X'71'
27 91 p1 113
This command selects the density of the graphics mode.
p
0
1
3
10
11
DPI (Horizontal)
AGM=N
AGM=Y
72
60
144
120
216
180
180
180
360
360
Image
dpi vertical
#bytes/dot-column
real
real
real
real
virtual
72
72
72
180
180
1 (6-bit mode)
1 (6-bit mode)
1 (6-bit mode)
4 (24-bit mode)
4 (24-bit mode)
If ASF has not been selected (n=15/16/17 or via operator panel), then n=1—4 is ignored. The appropriate
path option must be selected from the System Menu in order for the sheet feeder to work.
ESC P data
Enter dot graphics mode (Device Control String).
ASCII Code
Hexadecimal Value
Decimal Value
ESC P data
X'1B' X'50' data
27 80
This command enables the dot graphics mode. The density is selected according to the GRM command.
The line spacing value automatically changes if 72-dpi resolution (6-bit mode) is active.
The line spacing value for 180-dpi resolution (24-bit mode) must be selected prior to entering graphics
mode.
In 6-bit mode, only 6 bits of a data byte are required to determine which wires are fired. Therefore, only
one byte is required for each graphics dot column.
In 24-bit mode, 24 bits of four data bytes are required to determine which wires are fired. Only 6 bits of
each byte are used. Therefore, four bytes are required for each graphics dot column.
Table 3. 6-bit mapping
6 BITS IN 1 BYTE
1
2
&
3
4
&
6
7
&
8
9
&
11
12
&
13
14
&
3
5
8
10
13
15
Chapter 3 ANSI Emulation Commands
PRINT HEAD WIRE
DATA BIT
0
1
2
3
4
5
84
260070‐001A
Programmer Manual
PTX‐S809
Since bits6&7are ignored, wires 16-24 are not used. The state (0 or 1) of bits 6 and 7 must be conditioned so
as to make the entire byte fall within the range 20H through 7EH.
Table 4. 24-bit mapping
BYTE
1
2
PRINT HEAD WIRE
1
24 BITS IN 1 BYTE
DATA BIT
0
2
3
4
5
6
1
2
3
4
5
7
0
8
9
10
11
12
1
2
3
4
5
13
0
Table 5. 24-bit mapping (cont.)
BYTE
3
4
PRINT HEAD WIRE
24 BITS IN 1 BYTE
DATA BIT
14
15
16
17
18
1
2
3
4
5
19
20
21
22
23
24
0
1
2
3
4
5
Barcode Functions
ESC [ p1; pn }
Sets bar code parameters (BC).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; pn }
X'1B' X'5B' p1 X'3B' pn X'7D'
27 91 p1 59 pn 125
This command allows selection of the bar code characteristics such as style height, symbol rotation and so
on. The command ESC [3 t enables the bar code mode while ESC [0 t disables the mode.
Chapter 3 ANSI Emulation Commands
85
260070‐001A
Programmer Manual
PTX‐S809
p1: Bar code style
p1
FUNCTION
0
Interleaved 2 of 5
1
Bidirectional 2 of 5
2
Matrix 2 of 5
3
Industrial 2 of 5
4
Code 3 of 9 (default)
5
EAN-8
6
EAN-13
7
Code 11
9
Codabar (default start/stop = a/t)
10
Codabar (default start/stop = b/n)
11
Codabar (default start/stop = c/*)
12
Codabar (default start/stop = d/e)
13
UPC-A
14
UPC-E
15
Code 93
16
Code 128 (subset A, B and C)
17
Code 128 (subset A, B and C)
18
Code 128 (subset A, B and C)
19
MSI
20
UPC 2 Supplemental
21
UPC 5 Supplemental
22
EAN 2 Supplemental
23
EAN 5 Supplemental
50
Postnet
p2:
Barcode Height
p2
FUNCTION
1
Minimum bar code height (1/12 inch)
120
Maximum bar code height (10 inches)
12
Default bar code height (1 inch)
p3:
Human Readable Input (HRI)
p3
FUNCTION
0
Disables printing of the HRI
1
Enables printing of the HRI (default)
p4:
Narrow Bar
Default width value: 2 (120, 144 and 180 dpi)
p5:
Wide Bar Width
Default width value: 3 (120, 144 dpi), 4 (180 dpi)
p6: Narrow Space Width
Default width value: 6 (120, 144 and 180 dpi)
p7: Wide Space Width
Default width value: 7 (120, 144 dpi), 8 (180 dpi)
p8: Intercharacter Space Width
Default width value: 3 (120, 144 dpi), 4 (180 dpi)
p9:
Rotation
p9
FUNCTION
0
0 degrees using current font
1
0 degrees using special HRI font
2
90 degrees using special HRI font
3
180 degrees using special HRI font
4
270 degrees using special HRI font
Chapter 3 ANSI Emulation Commands
86
260070‐001A
Programmer Manual
PTX‐S809
p10: Horizontal Print Density for Bar Codes Printed
p10
FUNCTION
1
120 dpi horizontal density
2
144 dpi horizontal density (Reserved)
3
180 dpi horizontal density
p11: Check Digit
p11
FUNCTION
0
No check digit requested (default)
1
Check digit requested
p12: Human Readable Font -Reserved
p13: Bar Code Height (in 1/24th-inch increments) -Reserved
Chapter 3 ANSI Emulation Commands
87
260070‐001A
Programmer Manual
PTX‐S809
Basic Program Sample
100 DEFSTR
110 WIDTH
120 LPRINT
121 LPRINT
130 LPRINT
140 LPRINT
150 LPRINT
160 LPRINT
170 LPRINT
180 LPRINT
190 LPRINT
200 LPRINT
210 LPRINT
220 LPRINT
230 LPRINT
240 LPRINT
250 LPRINT
260 LPRINT
270 LPRINT
280 LPRINT
290 LPRINT
300 LPRINT
310 LPRINT
320 LPRINT
340 LPRINT
350 LPRINT
260 LPRINT
370 LPRINT
371 LPRINT
380 LPRINT
381 LPRINT
390 LPRINT
400 LPRINT
410 REM
420 LPRINT
430 REM
440 LPRINT
441 LPRINT
450 LPRINT
460 REM
470 LPRINT
471 LPRINT
480 LPRINT
490 LPRINT
500 LPRINT
510 LPRINT
520 FOR
530 LPRINT
540 NEXT
550 LPRINT
560 LPRINT
570 FOR
580 LPRINT
590 NEXT
600 LPRINT
610 LPRINT
620 END
DEFSTR
WIDTH
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
REM
LPRINT
REM
LPRINT
LPRINT
LPRINT
E:ESC=CHRS(27) ’Define Escape character
.LPT1:*,255
.FOLLOWING ARE SOME OF THIS PRINTER’S .;
.FEATURES USING THE ANSI EMULATION.
ESC;.[;72 C.;.10 CPI (PICA).
ESC;.[;60 G.;.12 CPI (ELITE).
ESC;.[;48 G.;.15 CPI.
ESC;.[;72 C.;.10 CPI.
ESC;.[6m.;.PROPOERTIONAL MODE.
ESC;.[0m.;.BACK TDO NORMAL.
ESC;.5m.;.DOUBLE-WIDE MODE.
LPRINT ESC;.0m’:.BACK TO NORMAL.
LPRINT ESC;.[1m.;.BOLD PRINTING.
LPRINT ESC;.[0m.;.BACK TO NORMAL.
LPRINT ESC;.[1m.;.BOLD PRINTING.
LPRINT ESC;.[0m.;.BACK TO NORMAL.
ESC;.L.;.PARTIAL LINE UP .;
ESC;.K.;./ .;
ESC;.L.;.BACK TO NORMAL.
ESC;.[4m.;.UNDERLINE MODE.
ESC;.[0m.;.BACK TO NORMAL.
.
123.;
’456.
.1234567890123456789012345678901234567890.;
.12345678901234567890.
ESC;.[10m.;.DRAFT PRINT MODE.
ESC;.[720;2880s.
.LEFT MARGIN NOW BEGINS AT 1 INCH AND .;
.RIGHT MARGIN NOW ENDS AT 4 INCHES.
ESC;.[0;9792S.
.LEFT MARGIN NOW BEGINS AT 0 INCH AND .;
.RIGHT MARGIN NOW ENDS AT 13.6 INCHES.
ESC;.[62m.;.LQ PRINT MODE .
ESC;.[120; G.;
[=1 TO 3
.1/6 INCH LINE FEED.
I
ESC;.[90; G.;
J=1 TO 3
.1/8 INCH LINE FEED.
J
ESC;.[120; G.;.NOW 1/6 INCH LINE FEED.
.A FORMFEED FOLLOWS THIS LINE.;CHR$(12)
Chapter 3 ANSI Emulation Commands
88
260070‐001A
Programmer Manual
PTX‐S809
Basic Program Printed Output
Chapter 3 ANSI Emulation Commands
89
260070‐001A
Programmer Manual
Chapter 3 ANSI Emulation Commands
PTX‐S809
90
260070‐001A
Programmer Manual
PTX‐S809
Chapter 4 LQ1600K Emulation Commands (DBCS)
Note: These commands are only valid for DBCS printing with the DBCS feature present.
DBCS mode is a special printer feature allowing the managing of specific commands dedicated to the
handling and printing of the Double Byte Character Set (DBCS) as the GB18030 Standard Chinese set.
The DBCS mode feature is available by the selection the Epson LQ 1600K emulation at the “EMULATION”
menu setting parameter. Other emulation selections do not support the DBCS mode.
Once the Epson LQ1600K has been selected, the DBCS mode is activated and deactivated through
dedicated commands (FS & and FS).
When DBCS mode is activated, the printer prints the DBCS (GB18030) and recognizes and manages the
incoming data and commands via the FS sequences.
In both cases, the Epson LQ 1600K emulation includes all the other Epson LQ standard ESC sequences,
some of which can take effect immediately, even if DBCS mode is active, while some others are postponed
until the printer exits the DBCS mode.
The following EPSON LQ Standard ESC sequences will work in DBCS mode:
ESC(W)n Set or cancel double width printing.
ESC(w)n Set or cancel double height printing.
Please refer to the other chapters of this manual for the complete list and description of the available ESC
sequences.
FS &
Enter the DBCS print mode.
ASCII Code
Hexadecimal Value
Decimal Value
FS &
X'1C' X'26'
28 38
This command puts the printer in DBCS mode and recognizes all other FS commands, Epson standard
ESC sequences, and prints all of the symbols of the GB18030 font set addressed by way of a single byte,
two byte, and four byte address.
FS .
Exit the DBCS print mode.
ASCII Code
Hexadecimal Value
Decimal Value
FS .
X'1C' X'2E'
28 46
This command exits DBCS mode and the printer exits the GB18030 font set, prints with western font set,
and recognizes all Epson standard ESC sequences. Only the FS & command is accepted to re-enter the
DBCS mode.
Chapter 4 LQ1600K Emulation Commands (DBCS)
91
260070‐001A
Programmer Manual
PTX‐S809
FS SO
Sets double width mode.
ASCII Code
Hexadecimal Value
Decimal Value
FS SO
X'1C' X'0E'
28 14
All of the characters following this command are printed horizontally, enlarged two times. This print mode
is reset by DC4, FS DC4 commands and automatically resets at the end of the line with a line terminator
(LF, FF, CR, ...)
FS DC4
Resets double width mode.
ASCII Code
Hexadecimal Value
Decimal Value
FS DC4
X'1C' X'14'
28 20
This command resets the double width print mode previously set by the FS SO command.
FS W n
Sets -Resets quadruple print mode.
ASCII Code
Hexadecimal Value
Decimal Value
Range
FS W n
X'1C' X'57' n
28 87 n
n = 1 set
n = 0 reset
This command sets (n=1) double width and double height print mode. The character dimension will be 2x2
the normal dimension.
With n=0 the double width/height print mode is reset.
FS J
Sets 90 degrees counterclockwise character rotation.
ASCII Code
Hexadecimal Value
Decimal Value
FS J
X'1C' X'4A'
28 74
Printable data after this command are rotated 90 degrees counterclockwise. This mode is also called
vertical print.
Chapter 4 LQ1600K Emulation Commands (DBCS)
92
260070‐001A
Programmer Manual
PTX‐S809
FS K
Resets character rotation.
ASCII Code
Hexadecimal Value
Decimal Value
FS K
X'1C' X'4B'
28 75
This command resets the vertical print which was set by FS J and resumes horizontal printing.
FS D d1 d2
Composes two half-width, rotated characters into a normal size rotated character space.
ASCII Code
Hexadecimal Value
Decimal Value
FS D d1 d2
X'1C' X'44' d1 d2
28 68 d1 d2
d1 = 1' character address
d2 = 2' character address
The d1 character is printed in half width and rotated 90° counterclockwise.
The d2 character is composed in half width, rotated 90° counterclockwise, and it is printed above the d1
character.
The occupied space is the same as a normal size rotated character.
FS -n
Sets -Resets underline mode.
ASCII Code
Hexadecimal Value
Decimal Value
FS -n
X'1C' X'2D' n
28 45 n
Range
n = 0 resets underline mode.
n = 1 sets single underline mode.
n = 2 sets double underline mode.
This command sets two different types of underline:
n=1 A single dotted line.
n=2 A double dotted line.
Unrelining character will terminate when a new FS-n command is received and n=0.
Chapter 4 LQ1600K Emulation Commands (DBCS)
93
260070‐001A
Programmer Manual
PTX‐S809
FS S n1 n2
Defines the left and right empty character space of a normal-sized character.
ASCII Code
Hexadecimal Value
Decimal Value
FS S n1 n2
X'1C' X'53' n1 n2
28 83 n1 n2
n1 and n2 are in n/180 of an inch.
n1 (1 to 127) defines the empty space at the left of the character cell. n2 (1 to 127) defines the empty
space at the right of the character cell of each normal sized character.
The default values are: n1=0, n2=1.5.
For example, if a normal sized character cell is 12/180 wide, with the default values, the equivalent
character per inch is 180/13.5 = 13.3 characters per inch.
FS T n1 n2
Defines the left and right empty character space of a half-sized character.
ASCII Code
Hexadecimal Value
Decimal Value
FS T n1 n2
X'1C' X'54' n1 n2
28 84 n1 n2
n1 and n2 are in n/180 of an inch.
n1 (1 to 127) defines the empty space at the left of the character cell. n2 (1 to 127) defines the empty
space at the right of the character cell of each half sized character.
The default values are: n1=0, n2=1.5.
For example, if a half sized character cell is 12/180 wide, with the default values, the equivalent character
per inch is 180/13.5 = 13.3 char./inch.
FS U
Define half-sized character as half of a normal sized character.
ASCII Code
Hexadecimal Value
Decimal Value
FS U
X'1C' X'55'
28 85
This command sets the size of the character to be half of the normal size including the left and right empty
space so that two half sized characters occupy the same space of one normal sized character.
Chapter 4 LQ1600K Emulation Commands (DBCS)
94
260070‐001A
Programmer Manual
PTX‐S809
FS SI
Sets the print of half-sized characters.
ASCII Code
Hexadecimal Value
Decimal Value
FS SI
X'1C' X'0F'
28 15
This command sets the print of half sized characters as defined by the FS U and FS T commands.
FS V
Resets print of half-sized characters.
ASCII Code
Hexadecimal Value
Decimal Value
FS V
X'1C' X'56'
28 86
This command cancels the print of half sized characters.
FS r n
Sets superscript or subscript print mode (1/4 normal size).
ASCII Code
Hexadecimal Value
Decimal Value
FS rn
X'1C' X'72' n
28 114 n
n=0 set superscript print
n=1 set subscript print
This command sets printing of superscript and subscript characters. The size of the characters is 1/4 of
normal size. The character prints in the upper area (superscript) or lower area (subscript). For example,
superscript and subscript.
FS DC2
Cancels half-sized and 1/4-sized print and restores normal size print.
ASCII Code FS DC2
Hexadecimal Value X'1C' X'12'
Decimal Value 28 18
This command cancels printing of superscript and subscript characters. Normal sized printing is resumed.
Chapter 4 LQ1600K Emulation Commands (DBCS)
95
260070‐001A
Programmer Manual
PTX‐S809
FS x n
Sets print quality level for the DBCS font set.
ASCII Code
Hexadecimal Value
Decimal Value
FS xn
X'1C' X'78' n
28 120 n
n=0 set Draft (high speed)
n=1 set Quality (low speed)
There are four type of print quality level, two for Draft mode and two for Quality mode. A specific Menu
Item (see the Administrator’s Manual) assigns which of the two Draft modes is activated when the parameter
n is
equal to 0 and which of the two Quality modes is activated when the parameter n is equal to 1.
n=0 Activate the NLQ or LQ mode as specified with the “SW Qual-Level” menu item.
n=1 Activates the Draft or Best Draft mode as specified with the “SW Qual-Level” menu item.
FS 2 a1 a2 n1... n72
Sets user-defined character (DownLoading).
ASCII Code
Hexadecimal Value
Decimal Value
FS 2 a1 ... n72
X'1C' X'32' ...
28 50 ...
a1 a2 = The address of the GB18030 character set where the character to download has to be allocated.
The address must be included in the following ranges: X'AAA1' to X'AFFE', X'F8A1' to X'FEFE', X'A140' to
X'A7A0'.
n1 ... n72 = The shape of the character in dots as defined over a matrix of 24vx24h dot matrix.
Three bytes in vertical are equivalent to the 24 dots of any column; when multiplied by 24 columns it is
equal to 72 bytes in total per character.
FS ! n
Sets multiple print attribute at once.
ASCII Code
Hexadecimal Value
Decimal Value
FS ! n
X'1C' X'21' n
28 33 n
This command sets multiple print attributes depending on the nparameter as follows:
Bit=1 Bit=0
Bit 7 underline –
Bit 6 – –
Bit 5 subscript superscript
Bit 4 1/4 size –
Bit 3 double height –
Bit 2 double width –
Bit 1 half size –
Bit 0 rotate print normal print
Chapter 4 LQ1600K Emulation Commands (DBCS)
96
260070‐001A
Programmer Manual
PTX‐S809
FS v n
Sets -Cancels line drawing character connection mode.
ASCII Code
Hexadecimal Value
Decimal Value
FS vn
X'1C' X'76' n
28 118 n
When n=1, this command allows the printer to fill the horizontal and vertical breaking point of a table that
is being printed. This is accomplished by adding special horizontal or vertical line drawing characters.
These characters are in the following address ranges: X'A854' to X'A970', X'A9A4' to X'A9A7', X'A9B0' to
X'A9BF'.
When n=0, the function is cancelled.
FS c nl nh
Sets the HMI (Horizontal Motion Index)
ASCII Code
Hexadecimal Value
Decimal Value
FS c nl nh
X'1C' X'63' nl nh
28 99 nl nh
This command defines the horizontal motion (space) occupied by a full size character. The horizontal
motion is specified in n/180 of inch and its value is: HMI = ((nh* 256) + nl) * 1/180".
FS b n
Sets the DBCS standard line.
ASCII Code
Hexadecimal Value
Decimal Value
FS bn
X'1C' X'62' n
28 98 n
This command defines the position of the base line of the character.
n=0 The base line is the current print position.
n=1 The base line is 24/180 of and inch below the current position.
ESC (
X n1 n2 a1 a2 a3
Defines a special printing effect.
ASCII Code
Hexadecimal Value
Decimal Value
ESC ( X
X'1B' X'28' X'58' ...
27 40 88 ...
n=1 Fixed to 3.
n=2 Fixed to 0.
a=0 Applies the special effect externally to the characters.
a=1 Applies the special effect internally to the character (if the character is outlined) – function not
supported
a=0 Resets any special effect.
a=1 Reverse the print (white character on a black background).
Chapter 4 LQ1600K Emulation Commands (DBCS)
97
260070‐001A
Programmer Manual
PTX‐S809
a=2 Fills the area with light gray tone.
a=3 Fills the area with medium gray tone.
a=4 Fills the area with high grey tone.
ESC ¦ n
Sets – Resets double width and double height print modes.
ASCII Code
Hexadecimal Value
Decimal Value
ESC ¦ n
X'1B' X'49' n
27 73 n
This command sets and resets the following print modes as follows:
n=A
Resets double width and double height.
n=B
Sets double width.
a=C
Sets double height.
a=D
Sets double width and height.
Chapter 4 LQ1600K Emulation Commands (DBCS)
98
260070‐001A
Programmer Manual
PTX‐S809
Appendix A. Code Pages
See the “ASCII Code Pages” for information about the code pages for Ethernet ASCII attachments.
You can use the following charts to determine the actual character printed for any code page and font
combination.
ASCII Code Pages
The table below lists the ASCII code pages used by the S809 Printer, and also provides page references
so you can determine what code page contains the characters you want to use.
These Code Pages can be found in the EPSON/IBM/ANSI emulations.
Code
Page
437
437-G
437-SL
850
851
852
853
855
857
858
860
862
863
864E
865
866
867
876
877
1098
1250
1251
1252
1253
1254
1255
1256
1257
MAZOWIA
GOST
TASS
UKRANIAN
KOI8-U
FARSI 1
FARSI 2
Character Set Name
USA (Personal Computer) A-54
Greek
Croatian
PC Multilingual
Old Greek
Latin 2/ROECE
Latin 3 (PC)
Cyrillic (PC)
Latin 5-Turkey + euro
PC Multilingual + euro
Portuguese
Hebrew
Canadian French
Arabic
Danish/Norwegian
PC Data, Cyrillic, Russian
Turkish 2
OCR-A
OCR-B
Farsi (Personal Computer)
Central Europe Latin 2
Cyrillic
Latin 1 Ansi Windows
Greek Windows
Turkish Windows
Hebrew Windows
Arabic Windows
Baltic Windows
Polish
Russian
Cyrillic
old version
new version
Appendix A. Code Pages
99
260070‐001A
Programmer Manual
Code
Page
Kamenicky
CWI
Roman-8
IN2
Turkish
Bulgarian
ISO 8859-1
ISO 8859/2
ISO 8859/3
ISO 8859/4
ISO 8859-5
ISO 8859-6
ISO 8859-7
ISO 8859-8
ISO 8859-9
ISO 8859-15
96 GREEK
PTX‐S809
Character Set Name
Page
Latin 1
Latin 2
Latin 3
Latin 4
Latin/Cyrillic
Latin/Arabic
Latin/Greek
Latin/Hebrew
Latin 5
Latin 9
281
300
301
302
305
308
Extended Graphics Character Table
Italic Character Table
Epson Extended Character Variables
ANSI National Variations
Appendix A. Code Pages
318
319
320
100
260070‐001A
Programmer Manual
PTX‐S809
USA (Personal Computer) A-54
Code Page 00437
Figure 2. USA(CP437)
Appendix A. Code Pages
101
260070‐001A
Programmer Manual
PTX‐S809
Greek
Code Page 00437-G
00
10
00
Ø
01
02
03
30
40
50
60
70
80
90
A0
B0
C0
D0
E0
F0
0
@
P
’
p
░
└
╨
o
!
1
A
Q
a
q
▒
┴
╤
±
“
2
B
R
b
r
▓
┬
╥
≥
!!
#
3
C
S
c
s
│
├
╙
≤
04
¶
$
4
D
T
d
t
┤
─
╘
⌠
05
§
%
5
E
U
e
u
╡
┼
╒
⌡
06
–
&
6
F
V
f
v
╢
╞
╓
÷
07
‘
7
G
W
g
w
╖
╟
╫
≈
08
(
8
H
X
h
x
╕
╚
╪
°
09
°
)
9
I
Y
i
y
╣
╔
┘
£
0A
■
*
:
J
Z
j
z
║
╩
┌
¥
0B
+
;
K
[
k
{
╗
╦
█
√
0C
└
,
<
L
\
l
|
╝
╠
▄
ⁿ
0D
-
=
M
]
m
}
╜
═
▌
²
0E
.
>
N
^
n
~
╛
╬
▐
■
/
?
O
_
o
┐
╧
▀
0F
20
Figure 3.Greek(CP437-G)
Appendix A. Code Pages
102
260070‐001A
Programmer Manual
PTX‐S809
Croatian
Code Page 00437-SL
Figure 4.Croatian(CP437-SLAVIC)
Appendix A. Code Pages
103
260070‐001A
Programmer Manual
PTX‐S809
Greek/Latin (ISO 8859-7)
Code Page 00813
Figure 5. Greek/Latin (ISO 8859-7)
Appendix A. Code Pages
104
260070‐001A
Programmer Manual
PTX‐S809
Latin 1 (ISO 8859-1)
Code Page 00819
Figure 6 .ISO8859/1(Latin1)
Appendix A. Code Pages
105
260070‐001A
Programmer Manual
PTX‐S809
PC Multilingual
Code Page 00850
Figure 7.Multilingual(CP850)
Appendix A. Code Pages
106
260070‐001A
Programmer Manual
PTX‐S809
Old Greek
Code Page 00851
Figure 8.Old Greek(CP851)
Appendix A. Code Pages
107
260070‐001A
Programmer Manual
PTX‐S809
Latin 2/ROECE
Code Page 00852
Figure 9.EasternEurope(CP852)
Appendix A. Code Pages
108
260070‐001A
Programmer Manual
PTX‐S809
Latin 3 (PC)
Code Page 00853
Figure 10.Turkish(CP853)
Appendix A. Code Pages
109
260070‐001A
Programmer Manual
PTX‐S809
Cyrillic (PC)
Code Page 00855
Figure 11.Cyrillic(CP855)
Appendix A. Code Pages
110
260070‐001A
Programmer Manual
PTX‐S809
Latin 5-Turkey + euro
Code Page 00857
Figure 12.Turkish(CP857)
Appendix A. Code Pages
111
260070‐001A
Programmer Manual
PTX‐S809
PC Multilingual + euro
Code Page 00858
Figure 13.EuroPCMultilingual(CP858).
Appendix A. Code Pages
112
260070‐001A
Programmer Manual
PTX‐S809
Portuguese
Code Page 00860
Figure 14.Portugal(CP860)
Appendix A. Code Pages
113
260070‐001A
Programmer Manual
PTX‐S809
Hebrew
Code Page 00862
Figure 15.Hebrew(CP862)
Appendix A. Code Pages
114
260070‐001A
Programmer Manual
PTX‐S809
Canadian French
Code Page 00863
Figure 16.Canada/France(CP863)
Appendix A. Code Pages
115
260070‐001A
Programmer Manual
PTX‐S809
Arabic
Code Page 00864
Figure 17.Arabic(CP864)
Appendix A. Code Pages
116
260070‐001A
Programmer Manual
PTX‐S809
Arabic
Code Page 00864E
Figure 18.CP864E(Arabic)
Appendix A. Code Pages
117
260070‐001A
Programmer Manual
PTX‐S809
Danish/Norwegian
Code Page 00865
Figure 19.Denmark/Norway(CP865)
Appendix A. Code Pages
118
260070‐001A
Programmer Manual
PTX‐S809
PC Data, Cyrillic, Russian
Code Page 00866
Figure 20. Russian(CP866)
Appendix A. Code Pages
119
260070‐001A
Programmer Manual
PTX‐S809
Turkish 2
Code Page 00867
Figure 21.Turkish2(CP867)
Appendix A. Code Pages
120
260070‐001A
Programmer Manual
PTX‐S809
OCR-A
Code Page 00876
Figure 22.OCR-A(CP876)
Appendix A. Code Pages
121
260070‐001A
Programmer Manual
PTX‐S809
OCR-B
Code Page 00877
Figure 23.OCR-B(CP877)
Appendix A. Code Pages
122
260070‐001A
Programmer Manual
PTX‐S809
Latin 2 (ISO 8859-2)
Code Page 00912
Figure 24.ISO8859/2(Latin2)
Appendix A. Code Pages
123
260070‐001A
Programmer Manual
PTX‐S809
Latin 3 (ISO 8859-3)
Code Page 00913
Figure 25.ISO8859/3(Latin3)
Appendix A. Code Pages
124
260070‐001A
Programmer Manual
PTX‐S809
Latin 4 (ISO 8859-4)
Code Page 00914
Figure 26.ISO8859/4(Latin4)
Appendix A. Code Pages
125
260070‐001A
Programmer Manual
PTX‐S809
Cyrillic (ISO 8859-5)
Code Page 00915
Figure 27.ISO8859/5(Latin/Cyrillic)
Appendix A. Code Pages
126
260070‐001A
Programmer Manual
PTX‐S809
Latin 8 (ISO 8859-8)
Code Page 00916
Figure 28. ISO8859/8
Appendix A. Code Pages
127
260070‐001A
Programmer Manual
PTX‐S809
Latin 5 (ISO 8859-9)
Code Page 00920
Figure 29. ISO8859/9(Latin5)
Appendix A. Code Pages
128
260070‐001A
Programmer Manual
PTX‐S809
Baltic Multilingual
Code Page 00921
Figure 30. BalticWindows(CP921)
Appendix A. Code Pages
129
260070‐001A
Programmer Manual
PTX‐S809
Estonian
Code Page 00922
Figure 31.Estonian (CP922)
Appendix A. Code Pages
130
260070‐001A
Programmer Manual
PTX‐S809
Latin 9 (ISO 8859-15) + euro
Code Page 00923
Figure 32.ISO8859/15(Latin9) .151
Appendix A. Code Pages
131
260070‐001A
Programmer Manual
PTX‐S809
Urdu
Code Page 01006
Figure 33.Urdu (CP01006)
Appendix A. Code Pages
132
260070‐001A
Programmer Manual
PTX‐S809
Arabic Extended
Code Page 01046
Figure 34.Arabic Extended (CP1046)
Appendix A. Code Pages
133
260070‐001A
Programmer Manual
PTX‐S809
Latin 6 (ISO 8859-6)
Code Page 01089
Figure 35.ISO8859/6(Latin/Arabic)
Appendix A. Code Pages
134
260070‐001A
Programmer Manual
PTX‐S809
Farsi (Personal Computer)
Code Page 01098
Figure 36.Farsi(CP1098)
Appendix A. Code Pages
135
260070‐001A
Programmer Manual
PTX‐S809
Estonian (Personal Computer)
Code Page 01116
Figure 37.Estonian (CP1116)
Appendix A. Code Pages
136
260070‐001A
Programmer Manual
PTX‐S809
Latvian (Personal Computer)
Code Page 01117
Figure 38.Latvian (Personal Computer) (CP1117)
Appendix A. Code Pages
137
260070‐001A
Programmer Manual
PTX‐S809
Lithuanian (Personal Computer)
Code Page 01118
Figure 39.Lthuanian (Personal Computer) (CP1118)
Appendix A. Code Pages
138
260070‐001A
Programmer Manual
PTX‐S809
Central Europe Latin 2
Code Page 01250
Figure 40.CentralEurope(CP1250)
Appendix A. Code Pages
139
260070‐001A
Programmer Manual
PTX‐S809
Cyrillic Windows + euro
Code Page 01251
Figure 41.Cyrillic(CP1251)
Appendix A. Code Pages
140
260070‐001A
Programmer Manual
PTX‐S809
Latin1 Ansi Windows
Code Page 01252
Figure 42.Latin1AnsiWindows(CP1252)
Appendix A. Code Pages
141
260070‐001A
Programmer Manual
PTX‐S809
Greek Windows
Code Page 01253
Figure 43.GreekWindows(CP1253)
Appendix A. Code Pages
142
260070‐001A
Programmer Manual
PTX‐S809
Turkish Windows
Code Page 01254
Figure 44.TurkishWindows(CP1254)
Appendix A. Code Pages
143
260070‐001A
Programmer Manual
PTX‐S809
Hebrew Windows
Code Page 01255
Figure 45.HebrewWindows(CP1255)
Appendix A. Code Pages
144
260070‐001A
Programmer Manual
PTX‐S809
Arabic Windows
Code Page 01256
Figure 46.ArabicWindows(CP1256)
Appendix A. Code Pages
145
260070‐001A
Programmer Manual
PTX‐S809
Baltic Windows
Code Page 01257
Figure 47.Batlic Windows (CP1257)
Appendix A. Code Pages
146
260070‐001A
Programmeer Manual
PTX‐S809
9
MAZOW
WIA (Polis
sh)
MAZOWIA(Po
olish)
Figure 48.M
Appendix A
A. Code Pagess
147
260070‐001A
A
Programmer Manual
PTX‐S809
GOST (Russian)
Figure 49.GOST(Russian)
Appendix A. Code Pages
148
260070‐001A
Programmer Manual
PTX‐S809
TASS (Cyrillic)
Figure 50.TASS(Cyrillic)
Appendix A. Code Pages
149
260070‐001A
Programmer Manual
PTX‐S809
UKRANIAN (old version)
Figure 51.UKRANIAN(oldversion)
Appendix A. Code Pages
150
260070‐001A
Programmer Manual
PTX‐S809
KOI8-U (new version)
Figure 52.KOI8-U(newversion)
Appendix A. Code Pages
151
260070‐001A
Programmer Manual
PTX‐S809
FARSI 1
Figure 53. Farsi 1
Appendix A. Code Pages
152
260070‐001A
Programmer Manual
PTX‐S809
FARSI 2
Figure 54. Farsi 2
Appendix A. Code Pages
153
260070‐001A
Programmer Manual
PTX‐S809
Kamenicky
Figure 55.Kamenicky
Appendix A. Code Pages
154
260070‐001A
Programmer Manual
PTX‐S809
CWI
Figure 56.CWI
Appendix A. Code Pages
155
260070‐001A
Programmer Manual
PTX‐S809
Roman-8
Figure 57.Roman-8
Appendix A. Code Pages
156
260070‐001A
Programmer Manual
PTX‐S809
IN2
Figure 58.IN2
Appendix A. Code Pages
157
260070‐001A
Programmer Manual
PTX‐S809
Turkish
Figure 59.Turkish
Appendix A. Code Pages
158
260070‐001A
Programmer Manual
PTX‐S809
Bulgarian
Figure 60. Bulgarian
Appendix A. Code Pages
159
260070‐001A
Programmer Manual
PTX‐S809
96 GREEK
Figure 61. 96GREEK
Appendix A. Code Pages
160
260070‐001A
Programmer Manual
PTX‐S809
Character Sets
Character Set 1
00
00
10
NUL
20
30
40
50
60
70
80
SP
0
@
P
’
p
NUL
90
A0
B0
C0
D0
E0
F0
á
░
└
╨
α
≡
01
DC1
!
1
A
Q
a
q
DC1
í
▒
┴
╤
ß
±
02
DC2
“
2
B
R
b
r
DC2
ó
▓
┬
╥
Γ
≥
03
DC3
#
3
C
S
c
s
DC3
ú
│
├
╙
π
≤
04
DC4
$
4
D
T
d
t
DC4
ñ
┤
─
╘
Σ
⌠
05
%
5
E
U
e
u
Ñ
╡
┼
╒
σ
⌡
06
&
6
F
V
f
v
ª
╢
╞
╓
µ
÷
‘
7
G
W
g
w
BEL
º
╖
╟
╫
τ
≈
(
8
H
X
h
x
BS
¿
╕
╚
╪
Φ
°
07
BEL
08
BS
09
HT
)
9
I
Y
i
y
HT
⌐
╣
╔
┘
Θ
·
0A
LF
*
:
J
Z
j
z
LF
¬
║
╩
┌
Ω
·
0B
VT
+
;
K
[
k
{
VT
½
╗
╦
█
δ
√
0C
FF
,
<
L
\
l
|
FF
¼
╝
╠
▄
∞
ⁿ
0D
CR
-
=
M
]
m
}
CR
¡
╜
═
▌
φ
²
0E
SO
.
>
N
^
n
~
SO
«
╛
╬
▐
ε
■
0F
SI
/
?
O
_
o
DEL
SI
»
┐
╧
▀
∩
SP
CAN
ESC
CAN
ESC
Figure 62.CharacterSet1
Appendix A. Code Pages
161
260070‐001A
Programmer Manual
PTX‐S809
Character Set 2
00
00
10
20
30
40
50
60
70
80
90
A0
B0
C0
D0
E0
F0
SP
0
@
P
’
p
Ç
É
á
░
└
╨
α
≡
DC1
!
1
A
Q
a
q
ü
æ
í
▒
┴
╤
ß
±
NUL
01
02
`
DC2
“
2
B
R
b
r
é
Æ
ó
▓
┬
╥
Γ
≥
03
DC3
#
3
C
S
c
s
â
ô
ú
│
├
╙
π
≤
04
DC4
$
4
D
T
d
t
ä
ö
ñ
┤
─
╘
Σ
⌠
05
§
%
5
E
U
e
u
à
ò
Ñ
╡
┼
╒
σ
⌡
06
&
6
F
V
f
v
å
û
ª
╢
╞
╓
µ
÷
07
BEL
‘
7
G
W
g
w
ç
ù
º
╖
╟
╫
τ
≈
08
BS CAN
(
8
H
X
h
x
ê
ÿ
¿
╕
╚
╪
Φ
°
09
HT
)
9
I
Y
i
y
ë
ö
⌐
╣
╔
┘
Θ
·
0A
LF
*
:
J
Z
j
z
è
Ü
¬
║
╩
┌
Ω
·
0B
VT
+
;
K
[
k
{
ï
¢
½
╗
╦
█
δ
√
0C
FF
,
<
L
\
l
|
î
£
¼
╝
╠
▄
∞
ⁿ
0D
CR
-
=
M
]
m
}
ì
¥
¡
╜
═
▌
φ
²
0E
SO
.
>
N
^
n
~
Ä
₧
«
╛
╬
▐
ε
■
0F
SI
/
?
O
_
o
DEL
Å
ƒ
»
┐
╧
▀
∩
SP
ESC
Figure 63.CharacterSet2
Appendix A. Code Pages
162
260070‐001A
Programmer Manual
PTX‐S809
Hexadecimal to Decimal Table
00
10
20
30
40
50
60
70
80
90
A0
B0
C0
D0
E0
F0
00
0
16
32
48
64
80
96
112 128 144 160 176 192 208 224 240
01
1
17
33
49
65
81
97
113 129 145 161 177 193 209 225 241
02
2
18
34
50
66
82
98
114 130 146 162 178 194 210 226 242
03
3
19
35
51
67
83
99
115 131 147 163 179 195 211 227 243
04
4
20
36
52
68
84
100 116 132 148 164 180 196 212 228 244
05
5
21
37
53
69
85
101 117 133 149 165 181 197 213 229 245
06
6
22
38
54
70
86
102 118 134 150 166 182 198 214 230 246
07
7
23
39
55
71
87
103 119 135 151 167 183 199 215 231 247
08
8
24
40
56
72
88
104 120 136 152 168 184 200 216 232 248
09
9
25
41
57
73
89
105 121 137 153 169 185 201 217 233 249
0A
10
26
42
58
74
90
106 122 138 154 170 186 202 218 234 250
0B
11
27
43
59
75
91
107 123 139 155 171 187 203 219 235 251
0C
12
28
44
60
76
92
108 124 140 156 172 188 204 220 236 252
0D
13
29
45
61
77
93
109 125 141 157 173 189 205 221 237 253
0E
14
30
46
62
78
94
110 126 142 158 174 190 206 222 238 254
0F
15
31
47
63
79
95
111 127 143 159 175 191 207 223 239 255
Figure 64.Hexadecimal to Decimal Table
Appendix A. Code Pages
163
260070‐001A
Programmer Manual
PTX‐S809
Epson FX-series Code Pages
The following Epson code charts provide information on the character tables available for Epson FX-series
emulation mode.
Extended Graphics Character
Figure 65. Epson Extended Graphics Character
Appendix A. Code Pages
164
260070‐001A
Programmer Manual
PTX‐S809
Italic Character Table
Figure 66. Epson Italic Character
Appendix A. Code Pages
165
260070‐001A
Programmer Manual
PTX‐S809
Epson Extended Character Variables
The following table shows characters that vary, by language, from the Epson Extended Character Graphics
set.
The code points shown are the only ones that vary. For example, in the United Kingdom, only code point
X'23' is different from the basic Epson table, shown on previous pages.
Figure 67. Epson Extended Character Variables
Appendix A. Code Pages
166
260070‐001A
Programmer Manual
PTX‐S809
ANSI National Variations
The following table shows characters that vary, by language, from the ANSI Extended Character Graphics
set.
Figure 68. ANSI National Variations
Appendix A. Code Pages
167
260070‐001A
Programmer Manual
PTX‐S809
This page is intentionally left blank
Appendix A. Code Pages
168
260070‐001A
Programmer Manual
PTX‐S809
Appendix B. Interfaces
This section provides technical information for the parallel and serial interfaces.
The Parallel Interface
The parallel interface of this printer fully supports the Centronics protocol plus the specific features
requested by the EPSON and IBM printer connection in monodirectional mode and the Compatibility and
Nibbles modes in bidirectional mode, plus the negotiation phases and the device identifier (as IEEE
P1284).
The parallel interface is available on a specific 36 contact connector type AMPHENOL 57-40360- 12-D56
or equivalent connector for 1284 Type B.
● Drive Capability
Up to 15 feet (5 m) on AWG26 min. wire size of twisted conductors on TTL receiver. The max.
reachable distance is conditioned by the host drive capability and by the noise level along the interface
cable path.
● Printer Connector Type
36 pins, 1284 Type B
● Cable Connector
25 pin, 1284 A Type
Signals Description
According to the IEEE - P1284 Standard, the pins assume different meanings and are identified by
different names depending on the actual handshaking mode as follows:
● Compatibility mode (Centronics)
This is the lower level mode provides an asynchronous, byte-wide forward (host-to-peripheral) channel
with data and status lines used according to their original definitions. The interfaces power up in the
compatibility Mode Idle phase.
● Nibble Mode
This mode provides an asynchronous, reverse (peripheral-to-host) channel, under control of the host. In
this mode, peripheral device to host data bytes are sent as two sequential, four-bit nibbles using the
four peripheral-to-host status lines. These two modes cannot be active simultaneously.
● Byte Mode
This mode provides an asynchronous, byte-wide reverse (peripheral-to host) channel based on eight
data lines of the interface for data and the control/status lines for handshaking. Byte mode is under host
control and it cannot be simultaneously active with compatibility mode.
Operating Phases
The link protocol is mainly based on the following three phases:
● Negotiation Phase
This phase is activated always by the host, only when in compatibility mode, and defines:
– whether a bidirectional link protocol can be established.
– the handshaking mode as well as the communications mode to be used.
– the device identification, if supported.
● Communication Phase
This phase is based on well defined handshaking rules which depend upon the selected link mode.
● Termination Phase
Appendix B‐ Interfaces
169
260070‐001A
Programmer Manual
PTX‐S809
This phase is initiated by the host and returns the interface to the compatibility mode.
Parallel Interface Signals
Description of the signals in monodirectional link:
Signal Name
STROBE
ACK
Pin N° Source
1
HOST
10
PRINTER
DATA BIT 1
2
DATA BIT 2
DATA BIT 3
DATA BIT 4
DATA BIT 5
DATA BIT 6
DATA BIT 7
DATA BIT 8
BUSY
3
4
5
6
7
8
9
11
PRINTER
PE
12
PRINTER
SELECT
13
PRINTER
PRINTER /
HOST
AUTOFEEDXT 14
HOST
GND
16
CHASSIS GND 17
+5 VDC
18
–
–
PRINTER
SIGNAL GND 19-30 –
INIT
31
HOST
ERROR
32
PRINTER
+5V
SELECTIN
35
36
PRINTER
HOST
Appendix B‐ Interfaces
Description
Clock signal which controls data transmission with its falling edge.
Negative pulsed signal indicating that the printer has received data
and is ready to accept the next set of data. Also sent when the
printer is switched from off-line to on-line and at the end of the
initialization time. The BUSY line is always active.
Data 8 is the most significant bit. These are the data lines used by
host or printer to transfer control code or ASCII codes.
When high, this signal indicates that the printer cannot accept data
or control codes. This signal goes high during data processing, in
test and program modes, during initialization, when the buffer is full,
and when a paper jam, paper end or paper size error occurs, in case
of a power-on reset, the reception of a STROBE signal, while the
register was not yet read, or when the INIT line is still active.
When high, this signal indicates that the automatic input bin is out of
paper and paper cannot be loaded from an other bin.
When high, this signal indicates that the printer is on-line. It is put to
low state in case of initialization or test and program mode. In IBM
Proprinter emulation in low condition this signal signals a off-line
request from the operator panel, paper jam, paper end or paper size
errors.
Active low level signal. Indicates whether a LF is performed after a
CR or not.
Logical ground level (0V).
Frame ground.
Is the DC voltage supplied by a component that limits the driven
capability up to 100 mA.
Signal ground.
Active low level signal. Indicates, that the printer is initializing. The
BUSY signal is forced high.
When low, this signal indicates that the printer is offline, there is an
offline request from the operator panel, or the printer is in an error
state because of: paper jam, paper end or paper size error, engine
error, output bin full or cover open condition.
Pulled up to signal.
Active low level signal. Enables the printer.
170
260070‐001A
Programmer Manual
PTX‐S809
The pins 1 to 14 of the printer are connected to the pins with the same number of the parallel port of the
host.
The pins 19 to 30 of the printer are connected to the pins 18 to 25 of the parallel port of the host.
The pins 31, 32 and 36 of the printer are connected respectively to the pins 16, 15 and 17 of the parallel port
of the host.
1284 Mode signal names are shown with their Compatibility mode (Centronics) names in parenthesis ( ) for
the bidirectional link.
Signal Name
HostClk (nStrobe)
AD1 (Data 1)
AD2 (Data 2)
AD3 (Data 3)
AD4 (Data 4)
AD5 (Data 5)
AD6 (Data 6)
AD7 (Data 7)
AD8 (Data 8)
PrtClk (nAck)
PrtBusy (Busy)
AckDataReq (PError)
Xflag (Select)
HostBusy (nAutofd)
Peripheral Logic High
(+5 V)
n.a. (nInit)
nDataAvail (NFault)
1284 Active (NSelectIn)
Common Logic Ground
Chassis Ground
Pin N° for
Signal Wire
1
2
Pin N° for
Return Wire
19
20
3
4
5
6
7
8
9
10
11
13
14
15
18
21
22
23
24
25
26
27
28
29
28
28
30
Source
HOST
HOST in Compatibility mode and negotiation
phase.
NOT USED in Nibble mode.
BIDIRECTIONAL in Byte mode.
PRINTER
PRINTER
PRINTER
PRINTER
HOST
PRINTER
31
30
32
29
36
30
16 and Return Wires
17
HOST
PRINTER
Parallel Interface Signals Behaviour
HostClk /nWrite (nStrobe)
Compatibility Mode:
Set Active low to transfer data into printer input latch. Data is valid while nStrobe is
low.
Negotiation Phase:
Set active low to transfer extendibility request value into printer input latch. Data is
valid on the falling edge of HostClk.
Reverse Data Transfer Set high during Nibble Mode transfer to avoid latching data into printer. Pulsed
Phase:
low during Byte Mode transfers to acknowledge transfer of data from the printer.
The printer shall ensure that this pulse does not transfer a new data into the printer
input latch.
AD1 ... AD8 (Data 1 ... Data 8)
Compatibility Mode:
Forward channel data.
Negotiation Phase:
Extendibility request value.
Reverse Data Transfer Nibble Mode: NOT USED.
Phase:
Byte Mode: Reverse channel data.
Appendix B‐ Interfaces
171
260070‐001A
Programmer Manual
PTX‐S809
PrtClk (nAck)
Compatibility Mode:
Negotiation Phase:
Pulsed low by the printer to acknowledge the transfer of a data from the host.
Set low to acknowledge 1284 support, then set high to indicate that the Xflag
(Select) and data available flags may be read.
Reverse Data Transfer Used in both Nibble and Byte Modes to qualify data being sent to the host.
Phase:
PrtBusy (Busy)
Compatibility Mode:
Driven high to indicate that the printer is not ready to receive data.
Negotiation Phase:
Reflects the present state of the printer’s forward channel.
Reverse Data Transfer Nibble Mode: Data bits 3 then 7, then forward channel busy status
Phase:
Byte Mode: Forward channel busy status.
Reverse Idle phase: Forward channel busy status.
AckDataReq (PError)
Compatibility Mode:
Driven high to indicate that the printer has encountered an error in the paper path.
The printer shall set nFault low whenever it sets PError high.
Negotiation Phase:
Set high to indicate 1284 support, then follows nDataAvail (nFault).
Reverse Data Transfer Nibble Mode: Data bits then 6.
Phase:
Byte Mode: same as nDataAvail (nFault)
Reverse Idle phase:
Set high until host requests data transfer, then follows nDataAvail (nFault).
Xflag (Select)
Compatibility Mode:
Negotiation Phase:
Set high to indicate that the printer in on-line.
The Xflag refers to extendibility flag. Used by the printer to reply to the requested
extendibility byte sent by the host during the negotiation phase. The signal level is
low for Nibble Mode, high for Byte Mode.
Reverse Data Transfer Nibble Mode: Data bits 1 then 5.
Phase:
Byte Mode: Same as negotiation phase.
Reverse Idle phase:
Same as negotiation phase.
Xflag (Select)
Compatibility Mode:
Negotiation Phase:
Set low by host to put the printer into auto-line feed mode.
Set low in conjunction with 1284 Active (NSelectIn) being set high to request a
1284 mode.
Then set high after printer sets PtrClk (nAck) low.
Xflag (Select)
Reverse Data Transfer Nibble Mode: Set low to indicate that host can receive printer-to-host data then set
Phase:
high to acknowledge receipts of that nibble.
Byte Mode: Same as Nibble Mode to request and acknowledge bytes. Following a
reverse channel transfer the interface transitions to idle phase when
HostBusy (nAutoFd) is set low and printer‘s no data available.
Reverse Idle phase:
Set high in response to PtrClk (nAck) low pulse to re-enter reverse data transfer
phase.
Is set high with 1284 Active (nSelectIn) being set low, the 1284 idle phase is being
aborted and the interface returns to Compatibility Mode.
Peripheral Logic High (+ 5V)
Set high to indicate that all other signals sourced by the printer are in valid state. Set low to indicate the
printer is off.
Appendix B‐ Interfaces
172
260070‐001A
Programmer Manual
PTX‐S809
n.a. (nInit)
Compatibility Mode:
Pulsed low in conjunction with 1284 Active low to reset the interface and force to
return to Compatibility Mode idle phase.
Negotiation Phase:
Set HIGH.
Reverse Data Transfer Set HIGH.
Phase:
nDataAvail (NFault)
Compatibility Mode:
Negotiation Phase:
Set low to indicate that an internal printer error has occurred.
Set high to acknowledge 1284 compatibility. In Nibble or Byte Mode it is then set low
to indicate printer-to-host data is available following host setting HostBusy (nAutoFd)
high.
Reverse Data Transfer Nibble Mode: Set low to indicate that printer is ready to send to host. Then used to
Phase:
send data bits 0 then 4.
Byte Mode: Used to indicate that data is available.
Reverse Idle phase:
Used to indicate that data is available.
nDataAvail (NFault)
Compatibility Mode:
Negotiation Phase:
Set low to indicate that an internal printer error has occurred.
Set high to acknowledge 1284 compatibility. In Nibble or Byte Mode it is then set low
to indicate printer-to-host data is available following host setting HostBusy (nAutoFd)
high.
Reverse Data Transfer Nibble Mode: Set low to indicate that printer is ready to send to host. Then used to
Phase:
send data bits 0 then 4.
Byte Mode: Used to indicate that data is available.
Reverse Idle phase:
Used to indicate that data is available.
1284 Active (NSelectIn)
Compatibility Mode:
Set low by host to select printer.
Negotiation Phase:
Set high in conjunction with Host Busy being set low to request a 1284 mode.
Reverse Data Transfer Set high to indicate that bus direction is printer to host. Set low to terminate 1284
Phase:
mode and set bus direction host to printer.
Reverse Idle Phase:
Same as Reverse Data Transfer phase.
Appendix B‐ Interfaces
173
260070‐001A
Programmer Manual
PTX‐S809
Interface Timing
Timing and Handshaking depend upon the connection mode.
Figure 69. Mode Centronics
Our Centronics mode supports the BUSY-WHILE-STROBE busy signal timing and ACK-INBUSY as
BUSY-ACK relationship.
Legend
A
B
C
t
a
Time interval
Data Setup Time
Strobe pulse width
Data hold time
Busy while Strobe
Ack in Busy
Appendix B‐ Interfaces
Min.
1.0
1.0
1.0
0.25
0
174
Max.
500
all times in µs
1.0
2.5
260070‐001A
Programmer Manual
PTX‐S809
Mode IEEE 1284
Figure 70. Mode IEEE 1284
The Serial Interface
This printer provides the RS-232/C serial interfaces. The interface mode is selected via menu.
● Transmission Type
Data is sent and received in start/stop (asynchronous) transmission.
● Character Format
Each character is transmitted in the following format:
1
START BIT + 8 DATA BITS + 1 PARITY BIT + 1 STOP BIT
The least significant bit of the data bits is sent first after the start bit. The number of data bits is selected
via menu. The parity bit, when present, follows the data bits. The start bit is a logical “0” and the stop bit
is a logical “1”. The start and stop bits are used as character framing bits.
● Printer Connector
Male DB9 or equivalent connector.
● Drive Capability
Max. 50 feet (15 m) for all supported data rates. The RS-422/A interface is effective up to 1200 m.
Appendix B‐ Interfaces
175
260070‐001A
Programmer Manual
PTX‐S809
Serial Interface Signals
The following table lists the RS-232/C serial interface signals:
Signal Name
SIGNAL
GROUND
TXD
Pin Number
5
Local
Connect.
Source
–
3
Printer
Printer
RXD
RTS
2
7
Host
Printer
Data Set
Printer
CTS
8
Data Set
DSR
6
Data Set
DCD
1
Data Set
2nd RTS
DTR
9
4
Printer
Printer
Remote
Connect.
Source
–
Printer
Description
Always connected to the 0 Volts of the
Power Supply
Transmitted Data Signal (an output from
printer). A MARK condition is held during
IDLE communication state. An indeterminate
state is present when printer is powered off.
Received data signal (an input to printer).
Request to Send Signal (an output from
printer). Active HIGH level signal. It is HIGH
until the printer is powered off, then an
indeterminate state is present .
Active HIGH level signal indicates that the
host or data set is ready to receive data from
the printer.
Active HIGH level signal. Indicates that the
host or data set is ready to be connected to
the printer and is ready for data transfer.
Active HIGH level signal. Indicates that the
host is transmitting or the data set is r
receiving the Data Carrier signal.
Functionally equivalent to the DTR signal.
Data Terminal Ready. Normally HIGH (ON).
Indicates that the printer is ready to initiate a
connection.
LAN Interface Port
LAN Interface Port
1. Ethernet 10/100BaseT Connector
2. Green 10/100Mbit/sec. Transmission Speed LED
3. Yellow Traffic LED
LED Indicators
The LED indicator modes are described in the following table:
LED
Yellow LED
Green LED
Status
Unlit
Lit
Blinks
Description
Transmission speed at 10Mbit/sec.
Transmission speed at 100Mbit/sec.
Transmitting or receiving packets from the network.
USB Interface Port
USB 2.0 full speed 12/Mbit/sec. interface.
Appendix B‐ Interfaces
176
260070‐001A
Programmer Manual
PTX‐S809
Appendix C. Network Interface Technical Reference
Network Configuration Parameters
IP Address Assignment
Fixed: Assigns the static or fixed IP address.
DHCP: Assigns the dynamic IP address (DHCP protocol).
Default value is DHCP.
Fixed and DHCP assignments of IP addresses are supported. On most networks, you will want to assign a
permanent IP address and disable DHCP.
IP Address
These values set the IP Address. The address is represented by a decimal notation where the decimal
values are divided by points in four fields.
Each field ranges between 0 and 255.
Default is 127.000.000.000.
Subnet Mask
These values set the Subnet Mask number. This number is represented by a decimal notation where the
decimal values are divided by points in four fields. Each field ranges between 0 and 255.
Default is 255.255.254.000.
Default Gateway
These values set the Default Gateway address. This address is represented by a decimal notation where the
decimal values are divided by points in four fields. Each field ranges between 0 and 255.
Default is 000.000.000.000.
The gateway address tells the printer which router or gateway to use to access other subnets or hosts.
Simply add your router’s IP address as the default gateway. All packets destined for other subnets will be
forwarded to the default gateway for delivery to the destination host.
Host Name
The host is identified by a name in the NetBIOS protocol over TCP/IP. This function allows creating the name
of the host using a 14-character string.
Default is PTX_xxxxxx where xxxxxx are the last 6-digits of the MAC address...
Workgroup Name
The workgroup is identified by a name in the NetBIOS protocol over TCP/IP in Windows. This function allows
creating the name of the workgroup using a 14-character string.
Default is Workgroup.
Appendix C– Network Interface Reference
177
260070‐001A
Programmer Manual
PTX‐S809
SMTP Service
SMTP (Simple Mail Transfer Protocol) allows a mail server address to be entered into the printer
configuration to send automated e-mail notifications with printer alert conditions.
Disabled: Disables the SMTP (Simple Mail Transfer Protocol) service, that is disables the
reception/transfer/error service of the e-mail.
Enabled: Enables the SMTP service, that is it enables the reception/transfer/error service of the email.
Default is Disabled.
Mail Server Address
These values set the mail server address. This number is represented by a decimal notation where the
decimal values are divided by points in four fields. Each field ranges between 0 and 255.
Default is 000.000.000.000.
Note: Item selection on the printer menu allowed only if the “SMTP Service” function choice is Enabled.
E-mail Address (Receiver)
This function allows writing the e-mail address where you can notify the failures using a 48-character
string. Default is an empty string.
Note: Item selection on the printer menu allowed only if the “SMTP Service” function choice is Enabled.
E-mail Address (Sender)
This function allows to write the sender e-mail address using a 48-character string.
Default is an empty string.
Note: Item selection on the printer menu allowed only if the “SMTP Service” function choice is Enabled.
Location
You can enter the physical location of the printer into this field.
Contact
You can enter a network support contact’s name and phone number into this field.
Appendix C– Network Interface Reference
178
260070‐001A
Programmer Manual
PTX‐S809
Managing a Single Printer Configuration Using the Internal Webpage
Configuration Password
The Printronix S809's configuration settings can be protected by a password to keep unauthorized users
from making changes. When you try to submit any Printronix S809 configuration change, you will be asked
for your user name and password. At the prompt, enter the default user name = root and default
password = root, unless you have setup another user name and password with root privileges.
Storing and Saving Settings
When settings are configured on the Printronix S809 and the SUBMIT button on the related page has been
pressed, you will be reminded to Reboot the printer to ensure the latest settings are in use. To reset the
Printronix S809, go to the Home page, enter the Power On Reset page, and Click on the REBOOT
PRINTER button.
Managing Multiple Printers Using the Remote Printer
Management Utility
The Remote Printer Management Utility (RPMU) is a software tool for network administrator’s that allows
the configuration and control of Printronix S809 printers remotely over a LAN. With this tool the installed
printers can be controlled, configured and organized easily. The main features are:
Device Discovery - Searches for the devices within a range of IP addresses.
Printer Organization - Printers connected to the network can be organized into logical groups in a
hierarchically structured tree.
Printer Status Report - Checks the printer's status and reports alarms.
Printer Configuration - Printers may be configured as needed from the administrator's workstation.
Change the configuration of single printers, or simultaneously change the configuration of multiple
printers in your enterprise, anywhere, and anytime.
Firmware Updating - Provides a firmware download function to upgrade the printer's firmware.
Remote Operator Panel Management - Provides a virtual operator panel for the remotely connected
printer at the administrator's workstation that allows performing all functions normally achieved pressing
the operator panel keys. The RPMU also provides the basic status management for third-party printers
compliant to the standard MIB objects. Visit our website to download this free software utility program.
Network Interface Summary
Table 5. Network Interface Summary
INSTALLATION INTEGRATION
Network speed / connection
Auto-detection
Manual network speed selection
Parallel interface free
Network configuration through printer operator panel
Web page network setting configuration
Web page login password protection
Web page default user-id and default password
Windows Port Monitor and Drivers
NIC configuration printout
Appendix C– Network Interface Reference
10/100 BASET
10/100 network speed Yes
No
Yes
Yes
Yes
Yes
Root, Root
Yes, download from www.Printronix.com
Yes
179
260070‐001A
Programmer Manual
PTX‐S809
Table 5. Network Interface Summary (cont.)
DHCP
WINS
DDNS
SYSTEM / OS
IBM System i OS 400
IBM pSeries® AIX
Sun Solaris
Unix
Linux®
Windows 95,98,2000,NT,XP, 2003 Server
Windows VISTA, Win7, Win8, Win10
NETBIOS over TCP
NETBEUI
Novell Netware
OS2
MacIntosh / Apple EtherTalk
PRINTING METHODS
Raw Port 9100
LPD/LPR Port 515
LPR print queue name
IPDS Port 5100
Interleaved multi-protocol communications
Hot Interface switching
Hot Port switching
Multiple internal print server queues
String substitutions
String before/after job
DATASTREAMS
S809 ASCII native
ASCII text and single byte escapes
IBM Proprinter III emulation
IBM Personal Printer 2391 emulation
IBM Proprinter III emulation
IBM Personal Printer 2391 emulation
Epson LQ series emulation
Epson - FX emulation Yes (on some models)
Epson LQ1600K with GB18030
character set emulation
IPDS
PRINTER SERVER FACILITIES SUPPORT
PSF AIX
PSF OS400
Appendix C– Network Interface Reference
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
Yes
Yes
Any name (PR1, d1PRN, etc.) can be used.
Yes (with IPDS option on some models)
Yes
Yes between Parallel and LAN interfaces
Yes between Raw 9100, LPR/LPD 515,
and IPDS 5100 (with IPDS option on some models)
No
No
No
Yes
Yes
Yes (on some models)
Yes (on some models)
Yes (on some models)
Yes (on some models)
Yes (on some models)
Yes (with DBCS option on some models)
Yes (with IPDS option on some models. See
“Intelligent Printer Data Stream,” for
application program compatibility considerations)
Yes
Yes
180
260070‐001A
Programmer Manual
PTX‐S809
Table 5. Network Interface Summary (cont.)
PSF MVS™
Yes
PSF VSE
Yes
PSF VM
Yes
NETWORK MANAGEMENT
S809 Remote Printer Management Utility
Yes, download from www.Printronix.com
IBM NPM
Yes (generic printer)
HP JetAdmin
Yes (generic printer)
E-mail SMTP
Yes
Internal Web page
Yes
PRINTER STATUS AND ERROR REPORTING
Ready
Yes
Not ready
Yes
Paper out
Yes
Paper jam
Yes
Cover open
Yes
Machine check (carriage fault, ribbon blocked...)
Yes
NETWORK CONFIGURATION PARAMETERS (see above)
LINK LAYER
Ethernet II
Yes
802.2
Yes
802.3
Yes
2/SNAP
Yes
Link disconnect (no data timeout)
15 second fixed setting
PROTOCOLS
IP
Yes
TCP
Yes
UDP
Yes
ARP
Yes
RARP
Yes
SMP
Yes
Telnet
Yes
DHCP
Yes
DDNS
Yes
WINS
Yes
BOOTP
Yes
FTP
Yes
TFTP
Yes
ICMP
Yes
LPR/LPD
Yes
DHCP
Yes
SNMP
Yes
SMTP
Yes
Appendix C– Network Interface Reference
181
260070‐001A
Programmer Manual
PTX‐S809
Table 5. Network Interface Summary (cont.)
Direct Socket Printing
HTTP
PING
SNMP
MIB II (RFC 1514)
Host Resource MIB (RFC 1514)
Printer MIB (RFC1759)
S809 Private MIB
Reverse Telnet
PROS
IPP
SLPv2
HARDWARE
RISC processor
Flash memory
RAM
Attachment connector type
Network traffic led
Network speed led
FIRMWARE UPGRADE
Firmware upgrade over network
Firmware upgrade through parallel interface
Yes
Yes
Yes
Yes
Yes (see note)
Yes
Yes
Yes
No
No
No
No
Yes
4MB
16MB
RJ-45
Yes (green)
Yes (yellow)
Yes
Yes
Note: All relevant parts of MIB-II (RFC1231) required to support HP JetAdmin are implemented.
● The following IP table group OIDs are not implemented: ipForwarding, ipDefaultTTL , ipInReceives
,ipInHdrErrors,ipInAddrErrors, ipForwDatagrams, ipInUnknownProtos, ipInDiscards, ipInDelivers,
ipOutRequests, ipOutDiscards, ipOutNoRoutes, ipReasmTimeout ,ipReasmReqds,
ipReasmOKs,ipReasmFails,ipFragOKs, ipFragFails, ipFragCreates
● The ipRouteTable OIDs are not implemented.
● The ipNetToMediaTable OIDs are not implemented.
● The icmp group OIDs are not implemented.
● The tcp group OIDs are not implemented.
● The udp group OIDs are not implemented.
● The snmp group OIDs are not implemented.
Appendix C– Network Interface Reference
182
260070‐001A
Programmer Manual
PTX‐S809
Appendix D. LAN Interface MIB Support
Table 6 List of the MIB of the printer.
Description
prtButton
prtBaseCodeVersion
prtHtmlContact
prtRebootPrinter
prtRestoreToMfg
prtGetPrinterStatus
prtMenuLocked
prtPowerOnCycles
prtPowerOnMinutes
prtBarCodes
prtPageWithGraphics
prtHSDraftCharacters
prtDPCharacters
prtDPTextCharacters
prtNLQCharacters
prtBESTDraftCharacters
prtLQCharacters
prtPrintedPageNumber
prtLPD_Timeout
LPD_Reboot
prtMenuUserMacro
prtMenuUserMacroTable
prtUserMacroEntry
prtUserMacroIndex
prtUserMacroLineSpace
prtUserMacroLineSpaceLock
prtUserMacroLength
prtUserMacroTopOfForm
prtUserMacroSkiPover
prtUserMacroDraftMode
prtUserMacroFont
prtUserMacroPitch
prtUserMacroPitchLock
prtUserMacroLeftMargin
prtUserMacroRightMargin
prtUserMacroSlashZero
prtUserMacroPath
prtUserMacroTear
prtUserMacroImpact
prtUserMacroPerforSave
prtUserMacroGap
prtUserMacroTuningHor
prtUserMacroTuningVer
prtUserMacroIgnoreFF
prtUserMacroQuality
prtUserMacro1524Cpi
Appendix D – Lan Interface MIB Support
MIB
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 2
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 3
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 4
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 5
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 6
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 7
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 8
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 9
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 10
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 11
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 12
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 13
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 14
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 15
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 16
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 17
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 18
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 19
1, 3, 6, 1, 4, 1, 6345, 1, 2, 1, 20
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 2
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 3
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 4
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 5
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 6
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 7
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 8
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 9
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 10
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 11
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 12
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 13
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 14
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 15
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 16
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 17
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 18
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 19
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 20
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 21
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 22
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 23
183
260070‐001A
Programmer Manual
PTX‐S809
Table 6 List of the MIB of the printer.
Description
prtUserMacroTearDelay
prtUserMacroQuiet
prtUserMacroDBCS
prtUserMacroDBCS_Cpi
prtUserMacroDBCS_Lpi
prtUserMacroTH_Space
/* IPDS SETTINGS START */
prtUserMacroI_Pitch
prtUserMacroI_LineSpace
prtUserMacroI_RightMargin
prtUserMacroI_FormLength
prtUserMacroI_Font
prtUserMacroI_NLQ_Font
prtUserMacroI_HostFastDraft
prtUserMacroI_Nation
prtUserMacroI_Emulation
prtUserMacroI_MediaSizePriority
prtUserMacroI_BcMode
prtUserMacroI_GraMode
prtUserMacroFontLock
/* IPDS SETTINGS END */
prtMenuConfig
prtMenuConfigTable
prtMenuConfigEntry
prtMenuConfigMacroWork
prtMenuConfigIfType
prtMenuConfigEmulation
prtMenuConfigCharset
prtMenuConfigNation
prtMenuConfigAutoCR
prtMenuConfigAutoLF
prtMenuConfigIBM20CPI
prtMenuConfigBarcode
/* ANSI SETTINGS START */
prtMenuConfigA_CharSet
prtMenuConfigA_CharTable
prtMenuConfigA_Nation
prtMenuConfigA_RIS_Enable
prtMenuConfigA_SI_SO_Control
prtMenuConfigA_AutoCR
prtMenuConfigA_PrimeOnDEL
prtMenuConfigA_ControlInDg
prtMenuConfigA_ExpandUp
prtMenuConfigA_AltGraph
prtMenuConfigA_8BitControl
prtMenuConfigA_ENQ_Code
prtMenuConfigA_SubSuperScript
prtMenuConfigA_ControlInESC
prtMenuConfigA_VT_NotSet
Appendix D – Lan Interface MIB Support
MIB
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 24
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 25
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 26
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 27
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 28
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 29
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 30
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 31
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 32
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 33
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 34
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 35
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 36
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 37
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 38
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 39
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 40
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 41
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 2, 1, 1, 42
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 2
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 3
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 4
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 5
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 6
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 7
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 8
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 9
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 10
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 11
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 12
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 13
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 14
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 15
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 16
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 17
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 18
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 19
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 20
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 21
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 22
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 23
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 24
184
260070‐001A
Programmer Manual
PTX‐S809
Table 6 List of the MIB of the printer.
Description
MIB
prtMenuConfigA_DoubleLF
prtMenuConfigA_AutoWrap
prtMenuConfigA_ClearMargin
prtMenuConfigA_Backup
prtMenuConfigA_GuardBar
/* ANSI SETTINGS END */
prtMenuConfigParType
prtMenuConfigParSelectIn
prtMenuConfigParDataBits
prtMenuConfigParDedicBuffer
prtMenuConfigSerType
prtMenuConfigSerBaudRate
prtMenuConfigSerDataBits
prtMenuConfigSerParity
prtMenuConfigSerProtocol
prtMenuConfigSerLocRem
prtMenuConfigSerDedicBuffer
prtMenuConfigBuzzer
prtMenuConfigSequence
prtMenuConfigRibbon
prtMenuConfigBarCodeDpi
prtMenuConfigTextDirect
prtMenuConfigGraphDirect
prtMenuConfigBarCodeDirect
prtMenuConfigGraphHighSpeed
prtMenuConfigPowerOnPath
prtMenuConfigMenuLanguage
prtMenuConfigLowerJamSensor
prtMenuConfigUpperJamSensor
prtMenuConfigTearAdjust
prtMenuConfigQuick
prtMenuConfigOverlay
prtMenuConfigA_AutoLF
prtMenuConfigD_G0_CharSet
prtMenuConfigD_UP_CharSet
prtMenuConfigD_AutoCR
prtMenuConfigD_AutoLF
prtMenuConfigD_AutoWrap
prtMenuConfigCondensed
printserver
csystem
csystemVersion
cinetd
cinetdnum
cinetdNumber
cinetdlpd
cinetdDescr1
cinetdType1
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 25
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 26
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 27
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 28
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 29
Appendix D – Lan Interface MIB Support
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 30
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 31
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 32
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 33
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 34
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 35
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 36
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 37
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 38
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 39
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 40
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 45
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 46
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 47
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 48
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 49
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 50
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 51
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 52
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 53
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 54
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 55
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 56
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 57
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 58
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 59
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 60
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 61
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 62
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 63
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 64
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 65
1, 3, 6, 1, 4, 1, 6345, 1, 2, 3, 3, 1, 1, 66
1, 3, 6, 1, 4, 1, 6345, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 2, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 2, 2
185
260070‐001A
Programmer Manual
PTX‐S809
Table 6 List of the MIB of the printer.
Description
MIB
cinetdUdp1
cinetdWait1
cinetdInstance1
cinetdUserID1
cinetdProgram1
cinetdProgram11
cinetdftp
cinetdDescr2
cinetdType2
cinetdUdp2
cinetdWait2
cinetdInstance2
cinetdUserID2
cinetdProgram2
cinetdProgram12
cinetdtelnet
cinetdDescr3
cinetdType3
cinetdUdp3
cinetdWait3
cinetdInstance3
cinetdUserID3
cinetdProgram3
cinetdProgram13
cinetddipd
cinetdDescr4
cinetdType4
cinetdUdp4
cinetdWait4
cinetdInstance4
cinetdUserID4
cinetdProgram4
cinetdProgram14
cservices
cservnum
cservNumber
cservftp
cservDescr1
cservPort1
cservType1
cservtelnet
cservDescr2
cservPort2
cservType2
cservlpd
cservDescr3
cservPort3
cservType3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 2, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 2, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 2, 5
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 2, 6
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 2, 7
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 2, 8
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 3, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 3, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 3, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 3, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 3, 5
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 3, 6
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 3, 7
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 3, 8
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 4, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 4, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 4, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 4, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 4, 5
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 4, 6
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 4, 7
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 4, 8
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 5
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 5, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 5, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 5, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 5, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 5, 5
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 5, 6
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 5, 7
1, 3, 6, 1, 4, 1, 6345, 1, 1, 2, 5, 8
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 2, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 2, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 2, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 3, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 3, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 3, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 4, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 4, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 4, 3
Appendix D – Lan Interface MIB Support
186
260070‐001A
Programmer Manual
PTX‐S809
Table 6 List of the MIB of the printer.
Description
MIB
cservdipd
cservDescr4
cservPort4
cservType4
cqueue
cinit
cintAddr
cdefRout
cnetMask
cinitHost
cinitWorkg
cinitDescr
cinitBoot
cprinter
cconfig
csnmpd
csnmpdEnb
csnmpdReadCommunity
csnmpdSetCommunity
csnmpdSetCommunityCrypt
chttpd
chttpdEnb
csamba
csambaEnb
cnovell
cnovellEnb
cnovellFrmType
cnovellNwServer
cnovellPrtName
cnovellQueueName
csmtp
csmtpEnb
csmtpEmailAddr
csmtpSMTPAddr
csmtpTrap
csmtpEmailMittAddr
csecurity
csecUser
csecPwd
csecPwdCrypt
cipds
cipdsEnb
cipdsPort
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 5
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 5, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 5, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 3, 5, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 5
1, 3, 6, 1, 4, 1, 6345, 1, 1, 5, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 5, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 5, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 5, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 5, 5
1, 3, 6, 1, 4, 1, 6345, 1, 1, 5, 6
1, 3, 6, 1, 4, 1, 6345, 1, 1, 5, 7
1, 3, 6, 1, 4, 1, 6345, 1, 1, 6
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 1, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 1, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 1, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 1, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 2, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 3, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 4, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 4, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 4, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 4, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 4, 5
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 5
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 5, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 5, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 5, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 5, 4
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 5, 6
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 6
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 6, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 6, 2
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 6, 3
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 7
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 7, 1
1, 3, 6, 1, 4, 1, 6345, 1, 1, 7, 7, 2
Appendix D – Lan Interface MIB Support
187
260070‐001A
Programmer Manual
Appendix D – Lan Interface MIB Support
PTX‐S809
188
260070‐001A
Programmer Manual
PTX‐S809
Appendix E. The Remote Printer Management Utility
The Remote Printer Management Utility (RPMU) is a software tool for network administrators that allows the
configuration and control of Printronix Company printers remotely connected to the Ethernet LAN.
With this tool the installed printers may be controlled, configured and organized easily.
The main features are:
Device Discovery
Searches for the devices within a range of IP addresses.
Printer Organization
The printers connected to the network can be organized into logical
groups in a hierarchically structured tree.
Printer Status
Report Checks the printer's status and reports alarms.
Printer Configuration
The remotely connected printers may be configured as needed from
the administrator's workstation.
Firmware Updating
Provides a firmware downloading function to upgrade both the base
and the LAN card firmware.
Remote Operator Panel
Provides a virtual operator panel for the remotely connected
Management
printer at the administrator's workstation that allows to perform all
functions normally achieved pressing the operator panel keys.
The Remote Printer Management Utility also provides the basic status management for third-party printers
compliant to the standard MIB objects.
Operating System Compatibility
The Remote Printer Management Utility is a Java™ based application and can be run on any platform
supporting the Java Run Time Environment version 1.6 or newer.
Software Installation and Documentation
The Remote Printer Management Utility software and Administrator's Guide can be downloaded from our
website at : www.printronix.com
Appendix E – The RPMU
189
260070‐001A
Programmer Manual
PTX‐S809
This page is intentionally left blank
Appendix E – The RPMU
190
260070‐001A
Programmer Manual
PTX‐S809
Appendix F. Print Driver Support
Microsoft Windows drivers, IBM pSeries AIX color files, and IBM System i workstation customization objects
can be downloaded from our website: www.Printronix.com
Appendix F – Printer Driver Support
191
260070‐001A
Programmer Manual
PTX‐S809
This page is intentionally left blank.
Appendix F – Printer Driver Support
192
260070‐001A
Programmer Manual
PTX‐S809
Appendix G. S809 Bar Code and OCR Printing Options
This appendix contains information about the options that are available for printing bar codes and Optical
Character Recognition (OCR) characters. The bar code charts detail the element (bar/space) width
options, the wide-to-narrow element ratios, the magnification percentages, and the characters printed per
inch plus whether the bar codes can be printed in low-contrast or high-contrast modes. Low-contrast mode
provides the best throughput, while high-contrast mode results in the best bar code printing quality.
The OCR section contains the Optical Character Recognition symbol subsets that can be printed.
Bar Code Printing Options Charts
Keep the following statements in mind when printing bar codes.
● All bar codes printed by the S809 Printer can print in high-contrast mode. Not all of them, however, can
print in low-contrast mode. If you specify low-contrast mode for a bar code that is not supported in that
mode, the printer will not return an error but will default to high-contrast mode instead.
● Vertically-rotated bar codes may not consistently meet bar/space width specifications. Users should test
for application suitability.
● Bar codes printed in low-contrast mode may not consistently meet specifications. Users should test for
application suitability.
Table 7. Bar Code Printing Options for Non-UPC Family Bar Codes
Appendix G
193
260070‐001A
Programmer Manual
PTX‐S809
Table 7. Bar Code Printing Options for Non-UPC Family Bar Codes (continued)
Appendix G
194
260070‐001A
Programmer Manual
PTX‐S809
Table 7. Bar Code Printing Options for Non-UPC Family Bar Codes (continued)
Table 8. Bar Code Printing Options for UPC Family Bar Codes
Optical Character Recognition (OCR) Printing
OCR Symbols
The S809 prints a comprehensive set of OCR-A and OCR-B characters derived from standards developed
by the International Standards Organization (ISO) and the American National Standards Institute (ANSI).
All OCR character shapes produced by the S809 Printer are not identical with the shapes defined in these
standards. Users should test OCR printing with their scanning equipment to verify satisfactory
performance.
Appendix G
195
260070‐001A
Programmer Manual
PTX‐S809
OCR Scanning
Printronix Company has tested the following OCR symbol subsets for readability:
Table 9. OCR Symbol Subsets
Appendix G
196
260070‐001A
Programmer Manual
PTX‐S809
Appendix H. Configuration Menu Lockout
Configuration Menu Lockout should be used by the application programmer or printer operator to lock the
Configuration Menu when you want to prevent a casual operator from changing parameter values that
have been set for print jobs.
To set Configuration Menu Lockout:
1. Press ON LINES if the READY indicator is on. The printer goes to the NOT READY state.
2. In the NOT READY state, press and hold ALTERNATE + MACRO + ONLINE keys in the same time.
The printer displays MENU LOCKED.
3. To unlock the Configuration Menu repeat the step 1 and 2. The printer display MENU UNLOCKED.
Press STOP
Appendix I. Addendum (Bar Codes)
197
26007X‐001A
Programmer Manual
PTX‐S809
This page is intentionally left blank.
Appendix I. Addendum (Bar Codes)
198
26007X‐001A
Programmer Manual
PTX‐S809
Appendix I Addendum (Bar Codes)
The following chapter integrates the Bar Code information already present in this manual adding the
Intelligent Mail Barcode explanation with examples in different emulations.
Furthermore it describes some features in specific Emulation Commands present in the firmware but not
described in the previous chapters.
Bar Code Mode
The S809 printer has three different Bar Code Modes selectable in the Power-on Configuration Setup.
1) Native selection enables bar code printing using :
● The Native commands as indicated in chapter 2 and also in this chapter as examples
● MTPL commands as indicated later on in this chapter.
2) Alt.1 selection enables bar code printing using :
● EPSON or IBM commands as indicated in chapter 1.
3) Alt.2 selection enables bar code printing using:
● SEIKOSHA commands as indicated later on in this chapter.
The S809 can print Bar Code using also :
● ANSI commands as indicated in chapter 3 (see example in this chapter)
USPS Intelligent Mail Bar Code 4-state
The S809 can print the USPS Intelligent Mail Bar Code 4-state in different emulations.
The 4-statebarcode data must contains only ASCII numeric (from 0 to 9) and must be converted into only 0,
1, 2 or 3. Each number represents one of the four possible bars.
The Intelligent Mail barcode is a 65-bar Postal Service™ barcode used to sort and track letters and flats. It
allows mailers to use a single barcode to participate in multiple Postal Service programs simultaneously,
expands mailers’ ability to track individual mail pieces, and provides greater mail stream visibility.
The Intelligent Mail barcode consists of a 20-digit tracking code (Barcode Identifier, Service Type Identifier,
Mailer Identifier, and Serial Number) and a Routing Code (ZIP Code™) field of up to 11 digits.
An encoder converts the digits into a 65-character string representing the bars of the IMb® tracking code,
EXAMPLE:
Service Type ID of 270 (First-Class Mail®, Intelligent Mail Full-Service option, with IMb Tracing® service,
no address correction), Mailer ID 123456, uniquely identified by Serial Number 200800001, going to ZIP
Code 98765-4321(01), is encoded like this:
Digit String:
0027012345620080000198765432101
Intelligent Mail barcode encoder > Encoded string (T=Tracker, F=Full Bar, A=Ascender, D=Descender):
TTFAFDADTFFFADTAFAFTTDATDFAAFTDAFDFDFDATFDFTDDDDFADFFDADDTDDTTDAT
More information on website: https://postalpro.usps.com/mailing/intelligent-mail-barcode
Appendix I. Addendum (Bar Codes)
199
26007X‐001A
Programmer Manual
PTX‐S809
Intelligent Mail Bar Code 4-state with Native Commands Mode
(Native Bar Code Mode)
DC4 DC4 ESC ! h “ f EM
UPPS Bar Code Selection.
ASCII Code
DC4 DC4 ESC ! h “ f F r EM
Hexadecimal Value
X'14' X'14' X'1B' X'21' h X’22’ f F r X’19’
Decimal Value
20 20 27 33 h 34 f F r 25
h = Bar Code Height at n/6”, 1 < h < 30
f = Readable character printing
f = 0 printing disabled
f = 1 printing enabled, characters below barcode, justified position
f = 21 printing enabled, characters above barcode, justified position
f = 81 printing enabled, characters below barcode, middle position
f = A1 printing enabled, characters above barcode, middle position
F = Font selection for the printable characters
0 Selected font by r value
1 Default font for text
1 Special font for OCR-A o OCR-B bar codes according to the t value
3 Special font for OCR-A bar codes
4 Special font for OCR-B bar codes
r = Bar code rotation
r
0
1
2
3
4
Selection
No rotation
Rotation at 0°
Rotation at 90°
Rotation at 180°
Rotation at 270°
EM = Check sequence terminator
Appendix I. Addendum (Bar Codes)
200
26007X‐001A
Programmer Manual
PTX‐S809
Intelligent Mail Bar Code 4-state with Epson/IBM Emulations Commands
(Alt. 1 Bar Code Mode)
See chapter 1, pages 54, 55 for details of these commands.
Remark: these commands are not handled in DEC emulations.
ESC [ v n m
Sets Barcode parameters. (IBM -Epson)
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ vnm
X'1B' X'5B' X'76' nm
27 91 118 nm
Set barcode parameters according to the table below. Parameter values that are not supported result in
the command being ignored.
n
0
2
Parameter Description
Barcode style IMB 4-state
Human readable line
8
Rotation and HRC font
11
HRC font for rotate barcode
m values
X ‘22’, 34 dec
0=disable
1, 21 =enable below barcode
81, A1 =enable above barcode
0.1=no rotation and current font for HRC
2=90 3=180 4=270 and special HRC font
3=OCRA 4=OCRB
Intelligent Mail Bar Code 4-state with MTPL Commands
(Native Bar Code Mode)
ESC [ 9 SP k CR
Sets bar code parameters (BC).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ 9 SP k CR
X'1B' X'5B' X’39’ X'20' X’6B’ X’0D’
27 91 57 32 109 13
In next pages a specific sub-chapter describes the MTPL (Mannesmann-Tally Printer Language) commands
which can be handled by S809 printer.
Appendix I. Addendum (Bar Codes)
201
26007X‐001A
Programmer Manual
PTX‐S809
Intelligent Mail Bar Code 4-state with ANSI Emulation Commands
See chapter 3, pages 86 and 87 for details of these commands.
ESC [ p1; ; ; pn }
Sets bar code parameters (BC).
ASCII Code
Hexadecimal Value
Decimal Value
ESC [ p1; pn }
X'1B' X'5B' p1 X'3B' pn X'7D'
27 91 p1 59 pn 125
This command allows selection of the bar code characteristics such as style height, symbol rotation and so
on. The command ESC [3 t enables the bar code mode while ESC [0 t disables the mode.
p1:
p1
Bar code style
FUNCTION
X ’33 34’, dec 48 49
IMB 4-state
p3:
p3
Human Readable Input (HRI)
FUNCTION
0
Disables printing of the HRI
1
Enables printing of the HRI
p9:
p9
Rotation
FUNCTION
0
0 degrees using current font
1
0 degrees using special HRI font
2
90 degrees using special HRI font
3
180 degrees using special HRI font
4
270 degrees using special HRI font
Appendix I. Addendum (Bar Codes)
202
26007X‐001A
Programmer Manual
PTX‐S809
USPS Intelligent Mail Bar Code 4-state Examples
The following are samples for USPS Intelligent Mail Bar Code 4-state printed with the S809 Printer with
related hex commands:
Figure 71. Intelligent Mail Bar Code in Native Commands Example (Bar Code Mode Native)
Figure 72. Intelligent Mail Bar Code in Epson/IBM Commands Example (Bar Code Mode Alt. 1)
Appendix I. Addendum (Bar Codes)
203
26007X‐001A
Programmer Manual
PTX‐S809
Figure 73. Intelligent Mail Bar Code in ANSI Commands Example
Figure 74. Intelligent Mail Bar Code in MTPL Commands Example (Bar Code Mode Alt. 1)
Appendix I. Addendum (Bar Codes)
204
26007X‐001A
Programmer Manual
PTX‐S809
Bar Codes handled in NATIVE Commands
(Native Bar Code Mode)
The S809 integrates in the firmware the handling of the Bar Codes with the NATIVE commands.
The complete and detailed information for these commands can be found on chapter 2 of this Programmer
Manual. Here are reported some examples how these commands work.
Figure 75. Bar Code Examples with NATIVE Commands Example (Bar Code Mode Native)
Appendix I. Addendum (Bar Codes)
205
26007X‐001A
Programmer Manual
PTX‐S809
Figure 76. Hex Dump of example on figure 75
Appendix I. Addendum (Bar Codes)
206
26007X‐001A
Programmer Manual
PTX‐S809
Figure 77. Bar Code Examples with NATIVE Commands Example (Bar Code Mode Native)
Appendix I. Addendum (Bar Codes)
207
26007X‐001A
Programmer Manual
PTX‐S809
Figure 78. Bar Code Examples with NATIVE Commands Example (Bar Code Mode Native)
Appendix I. Addendum (Bar Codes)
208
26007X‐001A
Programmer Manual
PTX‐S809
Figure 79. Bar Code Examples with NATIVE Commands Example (Bar Code Mode Native)
Appendix I. Addendum (Bar Codes)
209
26007X‐001A
Programmer Manual
PTX‐S809
Figure 80. Hex Dump of example on figures 77, 78, 79
Appendix I. Addendum (Bar Codes)
210
26007X‐001A
Programmer Manual
PTX‐S809
Bar Codes handled in MTPL Commands
(Native Bar Code Mode)
The S809 integrates in the firmware a sub-set handling of the MTPL emulation Bar Codes commands.
The complete and detailed information for these commands can be found on specific MTPL Programmer
Manual available on web.
Bar Code Description
Before the data, which contain the Barcode information, are transmitted to the printer, the Barcode header
must be sent. Otherwise the standard parameter values are used (see section "Header Format"). In the
header, the printing parameters, the Barcode size and the Barcode Type are de-fined. This header only
needs to be transferred once, unless settings are to be changed or the printer has been turned off.
Header Format Format: SUB [F] a [n] [;xyz] [;p] EM
[ ] Specification is optional
x, y unregarded at EAN/UPC-Barcode!
For Code 128 and EAN 128 (Type S+T) only the X parameter is valid. This is automatically used for the Y
parameter. The Z parameter is not evaluated.
Meaning of the characters:
SUB (hex.1A, dec.26) Start header
F
Print feature
SP (hex. 20, dec. 32): HRI OFF, Normal Print, Double Pass, Unidirectional (def.)
! (hex. 22, dec. 34): HRI ON, Normal Print, Double Pass, Unidirectional
a ASCII a = "A"..."S"
Barcode Types (def. “A”, see later on)
n ASCII n = "0"..."90" Barcode height in n/6 inch. At n="0" the Barcode height equals to 1/12 inch. (def. 1)
; ASCII
Separation character
x ASCII x = "0"..."3"
Width of the narrow bar (def.0 )
y ASCII y = "0"..."3"
Width of the narrow space (def.0 )
z ASCII z = "0"..."3"
Ratio of wide to narrow (def.0 )
p ASCII p = "0"…"9"
Barcode orientation (def. 0, horizontal)
EM (hex.19, dec.25)
End of header
Barcode Types
A = 2/5 matrix (default)
D = Code 11
G = Codabar
J = 2/5 matrix (default)
M = MSI/modified Plessey
P = UPC E with HRI
T = EAN 128/GSI-128
B = 2/5 industrial
E = Code BCD matrix
H = EAN 8 with HRI
K = EAN 13 with HRI
N = UPC A with HRI
Q = UPC E without HRI
Post Office Barcode Types
US Postnet Barcode
Planet Barcode
KIX Barcode
Royal Mail Customer Barcode
USPS Intelligent Mail Barcode (IMB)
Appendix I. Addendum (Bar Codes)
C = 2/5 interleaved
F = Code 39
I = EAN 8 without HRI
L = EAN 13 without HRI
O = UPC A without HRI
S = Code 128
= ESC [ 1 SP p
= ESC [ 2 SP p EM
= ESC [ 2 SP k
= ESC [ 1 SP k
= ESC [ 9 SP k
211
26007X‐001A
Programmer Manual
PTX‐S809
MTPL Bar Codes Commands Examples
Figure 81. Bar Code Examples with MTPL Commands (Bar Code Mode Alt. 1)
Appendix I. Addendum (Bar Codes)
212
26007X‐001A
Programmer Manual
PTX‐S809
Figure 82. Bar Code Examples with MTPL Commands (Bar Code Mode Alt. 1)
Appendix I. Addendum (Bar Codes)
213
26007X‐001A
Programmer Manual
PTX‐S809
Figure 83. Hex Dump of example on figures 81, 82
Appendix I. Addendum (Bar Codes)
214
26007X‐001A
Programmer Manual
PTX‐S809
Bar Codes handled in SEIKOSHA Commands
(Alt. 2 Bar Code Mode)
The S809 partially integrates in the firmware a sub-set handling of the SEIKOSHA BP-9000 Bar Codes
specific commands.
The complete and detailed information for these can be found in specific SEIKOSHA BP-9000 programmer
manual available on web.
#
1.
Function
Bar code type
Bar Code Commands
DC4 DC4 T n
2.
Element width
DC4 DC4 E n1 n2
3.
Bar code height
DC4 DC4 H n
4.
Setting HRI on and off
DC4 DC4 I n
5.
HRI font
DC4 DC4 F n
6.
Check character
DC4 DC4 C n
7.
Starting the bar code data sequence
ESC SI
8.
9.
10.
11.
12.
13.
14.
15.
16.
Ending the bar code data seqence
Bar code data sequence
Printing density
Guard bar expansion
Start and stop characters
Bar code rotational angle
Disabling HRI of the start and stop characters
Value input mode
Initializing the bar code mode
ESC SO
DC4 DC4 B n d1 d2 ... dk
DC4 DC4 D n
DC4 DC4 G n
DC4 DC4 N n1 n2
DC4 DC4 R n
DC4 DC4 S n
DC4 DC4 V n
DC4 DC4 @
Bar Code Type (n)
0 Industrial 2 of 5
1 Interleaved 2 of 5
2 Matrix 2 of 5
3 Codabar
4 Code11
Appendix I. Addendum (Bar Codes)
5
6
7
8
9
Code39
Code93
Code128
EAN-8
EAN-13
215
10
11
12
UPC-A
UPC-E
Postnet
26007X‐001A
Programmer Manual
PTX‐S809
SEIKOSHA Commands Bar Codes Examples
Figure 84. Bar Code Examples with SEIKOSHA Commands (Bar Code Mode Alt. 1)
Appendix I. Addendum (Bar Codes)
216
26007X‐001A
Programmer Manual
PTX‐S809
Figure 85. Hex Dump of example on figure 84
Appendix I. Addendum (Bar Codes)
217
26007X‐001A
Programmer Manual
PTX‐S809
This page is intentionally left blank
Appendix I. Addendum (Bar Codes)
218
26007X‐001A
Programmer Manual
PTX-S809
Notices
These terms are trademarks or registered trademarks of Ricoh Co., Ltd., in the United States, other
countries, or both:
● IBM
● Infoprint Solutions
● Ricoh
● Advanced Function Printing
● AFP
● Intelligent Printer Data Stream
● IPDS
These terms are trademarks or registered trademarks of International Business Machines Corporation in
the United States, other countries, or both:
● AIX
● AS400
● i5/OS
● IBM
● iSeries
● MVS
● OS/400
● Print Services Facility
● PSF
● System i
● z/OS
● zSeries
Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks
of Adobe Systems Incorporated in the United States and/or other countries.
Intel, Intel Inside (logos), MMX, and Pentium are trademarks of Intel Corporation in the United States,
other countries, or both.
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun
Microsystems, Inc. in the U.S. and other countries.
Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the
United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other countries.
Other company, product, or service names may be trademarks or service marks of others.
Notices
219
260070‐001A
Programmer Manual
PTX-S809
This page is intentionally left blank.
Notices
220
260070‐001A
Programmer Manual
PTX-S809
This page is intentionally left blank.
Notices
221
260070‐001A
Programmer Manual
PTX-S809
This page is intentionally left blank.
Notices
222
260070‐001A
Programmer Manual
PTX-S809
Customer Support
Printronix Customer Support Center
IMPORTANT
Please have the following information available prior to calling the Printronix
Customer Support Center:
•
•
•
•
Model number
Serial number (located on the back of the printer)
Installed options (i.e., interface and host type if applicable to the problem)
Configuration printout:
Press the ON LINE key to take the printer OFF LINE
Press the PROGRAM key
Is displayed
PRINT OUT? NO
The PROGRAM SETUP
Press the → key
PRINT OUT? YES
PRINTOUT is printed
Press the ↓ key until
PRINT STATS? NO Is displayed
The USAGE STATISTICS
Press the → key
PRINT OUT? YES
DATA PRINTOUT is printed
Press the ↓ key until
Is displayed
CONFIG MENU NO
Press the → key to display
CONFIG MENU YES
Is displayed
Press the ↓ key
PRINT OUT? NO
The CONFIGURATION
Press the → key
PRINT OUT? YES
SETUP PRINTOUT is printed
Press the PROGRAM key
Press the TEAR key and tear off the printout at the perforation
• Is the problem with a new install or an existing printer?
• Description of the problem (be specific)
• Good and bad samples that clearly show the problem (faxing or emailing these samples
may be required)
Americas
Europe, Middle East, and Africa
Asia Pacific
China
(714) 368-2686
(31) 24 6489 311
(65) 6548 4114
(86) 800-999-6836
http://www.printronix.com/support.aspx
Printronix Supplies Department
Contact the Printronix Supplies Department for genuine Printronix supplies.
Americas
Europe, Middle East, and Africa
Asia Pacific
China
(800) 733-1900
(33) 1 46 25 19 07
(65) 6548 4100
(86) 400-886-5598
http://www.printronix.com/supplies-parts.aspx
Customer Support
223
260070‐001A
Programmer Manual
PTX-S809
Corporate Offices
Printronix, LLC.
6440 Oak Canyon Rd, Suite 200
Irvine, CA 92618
U.S.A.
Phone: (714) 368-2300
Fax: (714) 368-2600
Printronix Inc.
c/o Printronix Nederland BV
Bijsterhuizen 11-38
6546 AS Nijmegen
The Netherlands
Phone: (31) 24 6489489
Fax: (31) 24 6489499
Printronix Schweiz GmbH
3Changi Business Park Vista
#04-05 AkzoNobelHouse
Singapore 486051
Phone: (65) 6548 4100
Fax: (65) 6548 4111
Printronix Commercial (Shanghai) Co. Ltd
Room 903, 9thFloor
No. 199, North Xizang Road
200070 Shanghai P.R. China
Phone: (86) 400 886 5598
Fax: (8621) 61171256
Printronix India PvtLtd
B-808/809, BSEL Tech Park 8thFloor, Sector 30A
VashaiNaviMumbai 400705 India
Toll Free No.: 1800 102 7896 Fax: (9211) 4158 5555
Visit the Printronix web site at www.printronix.com
Customer Support
224
260070‐001A
SPECIFICATIONS ARE SUBJECT TO CHANGE WITHOUT NOTICE.
This manual refers to various company and products by their trade names.
In most of the cases, these designations are claimed as trademarks or
registered tramarkers by their respective companies.
Copyright 2017 PRINTRONIX s.r.l. - Printed in Italy
260070-001A
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Author : sbassani Create Date : 2017:12:14 14:37:06+01:00 Modify Date : 2017:12:14 14:39:30+01:00 XMP Toolkit : XMP Core 5.5.0 Producer : Acrobat Distiller 9.2.0 (Windows) Creator Tool : PScript5.dll Version 5.2.2 Format : application/pdf Title : Microsoft Word - 260070-001A_PM_S809NEW Creator : sbassani Document ID : uuid:9a2b3e62-5a52-4191-b6ba-5c33442c09a7 Instance ID : uuid:eb3a6906-6ed8-4941-a73e-e45e2f3283f6 Page Count : 228EXIF Metadata provided by EXIF.tools