The following paragraph does not apply to any country where such provisions are inconsistent with local law: LEXMARK
INTERNATIONAL, INC., PROVIDES THIS PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions; therefore, this
statement may not apply to you.
This publication could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these
changes will be incorporated in later editions. Improvements or changes in the products or the programs described may be made at any
time.
Comments about this publication may be addressed to Lexmark International, Inc., Department F95/032-2, 740 West New Circle Road,
Lexington, Kentucky 40550, U.S.A. In the United Kingdom and Eire, send to Lexmark International Ltd., Marketing and Services
Department, Westhorpe House, Westhorpe, Marlow Bucks SL7 3RQ. Lexmark may use or distribute any of the information you supply in
any way it believes appropriate without incurring any obligation to you. You can purchase additional copies of publications related to this
product by calling 1-800-553-9727. In the United Kingdom and Eire, call +44 (0)8704 440 044. In other countries, contact your point of
purchase.
References in this publication to products, programs, or services do not imply that the manufacturer intends to make these available in all
countries in which it operates. Any reference to a product, program, or service is not intended to state or imply that only that product,
program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any existing intellectual
property right may be used instead. Evaluation and verification of operation in conjunction with other products, programs, or services, except
those expressly designated by the manufacturer, are the user’s responsibility.
Lexmark, Lexmark with diamond design, MarkNet, MarkVision, and Optra are trademarks of Lexmark International, Inc., registered in the
United States and/or other countries. ColorGrade, PerfectFinish, and PictureGrade are trademarks of Lexmark International, Inc.
The following terms are trademarks or registered trademarks of other companies:
AlbertusThe Monotype Corporation plc
Antique OliveMonsieur Marcel OLIVE
Apple-ChanceryApple Computer, Inc.
ArialThe Monotype Corporation plc
CandidAgfa Corporation
CG OmegaProduct of Agfa Corporation
CG TimesBased on Times New Roman under license
ChicagoApple Computer, Inc.
ClarendonLinotype-Hell AG and/or its subsidiaries
EurostileNebiolo
GenevaApple Computer, Inc.
GillSansThe Monotype Corporation plc
HelveticaLinotype-Hell AG and/or its subsidiaries
HoeflerJonathan Hoefler Type Foundry
ITC Avant Garde Gothic International Typeface Corporation
AppleTalk, EtherTalk, LocalTalk, and Macintosh are trademarks of Apple Computer, Inc., registered in the United States and other
countries.
PCL® is a registered trademark of the Hewlett-Packard Company. PCL 3, PCL 5, and PCL 6 are Hewlett-Packard Company’s designations
of a set of printer commands (language) and functions included in its printer products. These printers are intended to be compatible with
the PCL 3, PCL 5, and PCL 6 languages. This means these printers recognize PCL 3, PCL 5, and PCL 6 commands used in various
application programs, and that the printer emulates the functions corresponding to the commands.
PostScript
commands (language) and functions included in its software products. These printers are intended to be compatible with the PostScript
language. This means these printers recognize PostScript commands used in various application programs, and that the printer emulates
the functions corresponding to the commands.
Other trademarks are the property of their respective owners.
®
is a registered trademark of Adobe Systems Incorporated. PostScript is Adobe Systems’ designation of a set of printer
from The Monotype Corporation plc, is a
product of Agfa Corporation
ITC BookmanInternational Typeface Corporation
ITC Lubalin GraphInternational Typeface Corporation
ITC Mona LisaInternational Typeface Corporation
ITC Zapf ChanceryInternational Typeface Corporation
Joanna MTThe Monotype Corporation plc
MarigoldArthur Baker
MonacoApple Computer, Inc.
Mona LisaInternational Typeface Corporation
New YorkApple Computer, Inc.
OxfordArthur Baker
PalatinoLinotype-Hell AG and/or its subsidiarie
Stempel GaramondLinotype-Hell AG and/or its subsidiarie
TaffyAgfa Corporation
Times New RomanThe Monotype Corporation plc
TrueTypeApple Computer, Inc.
UniversLinotype-Hell AG and/or its subsidiarie
WingdingsMicrosoft Corporation
1998, 2008 Lexmark International, Inc.
All rights reserved.
UNITED STATES GOVERNMENT RESTRICTED RIGHTS
This software and any accompanying documentation provided under this agreement are commercial computer software and documentation
developed exclusively at private expense.
Draft document
Contents
Set Initial Conditions Commands...................................1-1
SIC Command Format ....................................................................................... 1-2
The Set Initial Conditions (SIC) command sets the printer to the default values that
were set at the factory or to user-defined defaults.
The following data is applicable to both IBM and Epson modes, unless otherwise
noted. The SIC command cannot be used in OKI emulation mode.
There are three copies of the settings for each of the parameters specified by the SIC
command:
• Factory default settings stored in flash memory
• User default settings stored in NVRAM
• Printer's current settings stored in RAM
Factory Factory defaults cannot be modified.
User The SIC command has the ability to override Current settings with the
User defaults or Factory defaults. It can then change those values and
optionally store then back to NVRAM as the new User defaults.
Current When the printer is turned on, the current RAM settings are initialized
from the User default settings. The basic commands implemented in
IBM, Epson and Oki emulations can modify the Current settings stored
in RAM but cannot save them back to User Defaults in NVRAM.
1-2
SIC Command
Draft document
SIC Command Format
Format:ESC[Kn1n2initidparm1parm 2...parm 24
Decimal:279175n10initidparm1parm 2...parm 24
Hexadecimal:1B5B4Bn100initidparm1parm 2...parm 24
Usage Notes:
• "n1 is the low order byte. n2 is the high order byte. n1 and n2 specify the
number of mode bytes in the escape sequence. n1 is the number of
parameters +2. (the number of parameters plus init and id.) Normally, n1 is 1,
3 or 4. n2 is always 0.
• "init - this parameter specifies which condition the printer should be initialized
to. See the Initial Values table below for details.
• "id - This parameter specifies the parm conditions that follow it. See the Id
Values table below for details.
Init Values
“init” sets the printer to user-defined or factory settings. The following table describes
the valid init values and their affect on the printer default settings initialization, macro
settings and download font:
Table 1-1: Initial Values
DecHexCurrent Settings
0 00Initialized to the user default
setting.
Then updated to updated to
reflect parm values in SIC
command
User Default
Settings
unchangedInitialized to the
Default Macro
Settings
user default
settings.
Other Macro
Settings
Not initialized.Not cleared.
Download
Font
1 01Initialized to the user default
setting.
Then updated to updated to
reflect parm values in SIC
command
unchangedInitialized to the
user default
settings.
Not initializedCleared.
Draft document
Table 1-1: Initial Values (Continued)
1-3
SIC Command
DecHexCurrent Settings
4 04Initialized to the factory default
setting.
Then updated to updated to
reflect parm values in SIC
command
5 05Initialized to the factory default
setting.
Then updated to updated to
reflect parm values in SIC
command
254FEInitialized to the user default
setting.
Then updated to updated to
reflect parm values in SIC
command
255 FFInitialized to the factory default
setting.
User Default
Settings
unchangedInitialized to the
unchangedInitialized to the
NVRAM
updated to
reflect parm
values in SIC
command
NVRAM
updated to
reflect parm
values in SIC
command
Default Macro
Settings
factory default
settings.
factory default
settings.
Initialized to the
user default
settings.
Initialized to the
factory default
setting.
Other Macro
Settings
Not initialized.Not cleared.
Not initialized.Cleared.
Not initialized.Cleared.
Initialized to the
factory default
setting.
Download
Font
Cleared.
Id Values
The supported values of Id are as follows. If the Id is any other value, the parm bytes
are ignored.
Note: The most common ID values are C5 and C6. Remaining values are listed for
backward compatibility. Not all Parms are valid for each Id value. Some are
ignored.
Table 1-2: Id Values
PrinterDecHexNotes
2580 /2581
2590/2591
2580 /2581
2590/2591
2590/25913523
2590/25913624
303Supported in Native mode.
Supported in Proprinter III mode (258X only).
2216
Parm 1 and parm 2 are valid.
If parms 3 - 24 are specified, they are ignored. See the following parm
tables.
Draft document
Table 1-2: Id Values (Continued)
PrinterDecHexNotes
1-4
SIC Command
2580 /2581
2590/2591
2580 /2581
2590/2591
2580 /2581
2590/2591
2580 /2581
2590/2591
2580 /2581
2590/2591
177B1Parm 1 is valid.
Parm 1 is same as parm 1 of id = 03H, 16H, 23H or 24H.
180B4
182B6Supported in Epson mode.
Supported in Native mode.
Not valid when Proprinter III mode ON is selected in Setup. (258X
only)
This id allows the user to select the Emulation mode with parm 1.
197C5Supported in Epson mode.
Supported in Native mode.
Not valid when Proprinter III mode ON is selected in Setup.(258X only)
Parm 1 to parm 24 are valid with this id.
See the following parm tables.
198C6Supported in Epson mode.
Parm 1 to parm 24 are valid with this id.
See the following parm tables.
Note: Id is valid for B6H, C5H and C6H only in Epson mode. If any other value is
specified to id in Epson mode, this command sequence is ignored.
2Valid only for Ids Dec 3, 22, 35, 36, (Hex 03, 16, 23, 24)
7Discard byteIgnore this byteProcess this byte
6Code Page850437
5Reserved
4Reserved
3Reserved
2Reserved
1Line Length8.0 inches13.6 inches (2581/2591only)
0Reserved
Table 1-4: Id - Dec 182 (Hex B6)
ParmDescriptionDecHexAction
1Emulation000No Change
101IBM
202EPSON
3 - 25503 - FFNo Change
1-6
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Sheet 1 of 9)
ParmDescriptionDecHexAction for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
1Emulation000No ChangeNo Change
101PPDSPPDS
202EPSONEPSON
3 - 25503 - FFNo ChangeNo Change
2Panel Disable000No changeNo change
101Panel DisablePanel Disable
202Panel EnablePanel Enable
Note: Specific buttons can be enabled during Panel Disable mode. The upper 6 bits of parm 2 represent the different buttons
on the operator panel as below.
BitOFFON
7. FontDisabledEnabled
6. PitchDisabledEnabled
5. Micro upDisabledEnabled
4. Micro downDisabledEnabled
3. LFDisabledEnabled
2. MacroDisabledEnabled
3Macro000No changeNo change
101Macro 1Macro 1
202Macro 2Macro 2
303Macro 3Macro 3
404Macro 4Macro 4
5 - 25405 - FENo ChangeNo Change
255FFDisable MacroDisable Macro
Notes:
• Macro 1 is the original macro that is backward compatible. Macros 2-4 were added to provide additional flexibility when
changing between alternate form sizes. Disable macro is functionally the same as Macro 1.
If init = dec 4, 5 (hex 04, 05) are specified, parm 3 is ignored.
If init = dec 0, 1, 254, 255 (hex 00, 01, FE, FF) are specified, parm 3 value is used as Macro No. instead of Default Macro
setting No.
If init = dec 254, 255 (hex FE, FF) are specified, parm 3 value is overwritten to Default Macro setting in NVRAM. If the
disable (=255) is set to parm 3 Macro No. 1 setting is used to initialize.
• “No change” indicates the printer will retain the current macro. All parameters will overwrite the NVRAM of the current
macro.
1-7
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 2 of 9)
ParmDescriptionDecHexAction for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
4FONT000No ChangeNo Change
101Fast DraftFast Draft
202DraftDraft
303GothicGothic
404CourierCourier
505Download font Download font
606No ChangePrestige
707No changePresentor
808No changeOrator
909No changeScript
10 - 2550A - FFNo changeNo Change
Note: Values 06 through FF are not supported for id hex C5 because corresponding fonts are not available for the 258X
printers.
5Pitch000No ChangeNo Change
10110 pitch10 pitch
20212 pitch12 pitch
30315 pitch15 pitch
40417.1 pitch17.1 pitch
50520 pitch20 pitch
606PSPS
70724 pitch24 pitch
8 - 25508 - FFNo ChangeNo Change
1-8
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 3 of 9)
ParmDescriptionDecHexAction for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
Note: Parm 6 actions are based on the XNLS Code Page. Choose appropriate parm 6 data.
6Code Page
(XNLS = Std /
OCR-B)
000No ChangeNo Change
101437437
202850850
303860860
404863863
505865865
606437G437G
707813813
808851851
909853T853T
100A857857
110B869869
120C920920
130D10531053
140E861861
150F10041004
1610858858
17 - 25511 - FFNo ChangeNo Change
1-9
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 4 of 9)
ParmDescriptionDecHexAction for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
6Code Page
(XNLS =
Eastern)
000No ChangeNo Change
101437437
202850850
303852852
404855855
505866866
60618551855
70718521852
80828522852
90938523852
100A48524852
110B12501250
120C12511251
130D912912
140E915915
150F18661866
1610858858
17 - 25511 - FFNo ChangeNo Change
1-10
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 5 of 9)
ParmDescriptionDecHexAction for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
6Code Page
(XNLS = Baltic)
000No ChangeNo Change
101437437
202850850
303858858
404866866
505915915
60612511251
70718661866
808775775
909919919
100A12571257
110B916916
120C918918
130D28662866
140E771771
150F929929
1610773773
17 - 25511 - FFNo ChangeNo Change
6Code Page
(XNLS =
Arabic)
000No ChangeNo Change
101437437
202850850
303864864
40410461046
50510981098
6061198708
707708720
808720449p
909449p858
100A858
11 - 2550B - FFNo ChangeNo Change
1-11
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 6 of 9)
ParmDescriptionDecHexAction for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
6Code Page
(XNLS =
Levant)
6Code Page
(XNLS = OKI)
000No ChangeNo Change
101437437
202850850
303864864
40410461046
50510981098
6061198862
707862856
8088561862
909916916
100A1862858
110B858
12 - 2550C - FFNo ChangeNo Change
000No Change
101437
202850
303860
404863
505865
606437G
707813
808851
909853T
100A857
110B869
120C920
130D1040
140E1041
150F850B
16 - 25510 - FFNo Change
7Form Length000No ChangeNo Change
1 - 17601 - B01 to 176 lines (Max 22")1 to 176 lines (Max 22")
177 - 255B1 - FFNo ChangeNo Change
1-12
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 7 of 9)
ParmDescriptionDecHexAction for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
8Lines per inch000No ChangeNo Change
10133
20244
30366
40488
5 - 25505 - FFNo ChangeNo Change
9Left Margin000No ChangeNo Change
1010 inch0 inch
2021 inch1 inch
3032 inch2 inch
4043 inch3 inch
5 - 25505 - FFNo ChangeNo Change
10Right Margin000No ChangeNo Change
1014 inch4 inch
2025 inch5 inch
3036 inch6 inch
4047 inch7 inch
5058 inch8 inch
60613.6 inch (2581 only)13.6 inch (2591 only)
7 - 25507 - FFNo ChangeNo Change
11Bottom Margin000No ChangeNo Change
1010 inch0 inch
2021/2 inch1/2 inch
3031 inch1 inch
4042 inch2 inch
5053 inch3 inch
6 - 25506 - FFNo ChangeNo Change
1-13
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 8 of 9)
ParmDescriptionDecHexAction for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
12Alarm000No changeNo change
101Disable AlarmDisable Alarm
202Enable AlarmEnable Alarm
3 - 25503 - FFNo ChangeNo Change
13Auto CR000No changeNo change
101ONON
202OFFOFF
3 - 25503 - FFNo ChangeNo Change
14Auto LF000No changeNo change
101ONON
202OFFOFF
3 - 25503 - FFNo ChangeNo Change
15Slash Zero000No changeNo change
101Zero slashedZero slashed
202Zero not slashedZero not slashed
3 - 25503 - FFNo ChangeNo Change
16Character Set000No changeNo change
101Set 1Set 1
202Set 2Set 2
3 - 25503 - FFNo ChangeNo Change
17Bidirectional000No changeNo change
101Uni-DirectionalUni-Directional
202Bi-DirectionalBi-Directional
3 - 25503 - FFNo ChangeNo Change
18Sheet Feeder000No changeNo change
101DisableDisable
202EnableEnable
3 - 25503 - FFNo ChangeNo Change
1-14
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 9 of 9)
ParmDescriptionDecHexAction for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
19Lock000No changeNo change
101Font LockFont Lock
202Pitch LockPitch Lock
303Font and Pitch LockFont and Pitch Lock
404Font and Pitch UnlockFont and Pitch Unlock
254FESIC Command LockSIC Command Lock
255FFSIC Command UnlockSIC Command Unlock
20FF Enable000No ChangeIgnore
101Ignore FF
202Honor FF
21TOF Read000No ChangeNo Change
101TOF Read DisableTOF Read Disable
202TOF Read EnableTOF Read Enable
22Tractor000No ChangeNo Change
101Tractor 1Tractor 1
202Tractor 2Tractor 2
23Tear Off000No ChangeNo Change
101OnOn
202OffOff
303One secondOne second
24PnP (Plug &
Play)
000No ChangeNo Change
101Enable Enable
202DisableDisable
2-1
Control Codes
Draft document
CHAPTER 2: IBM Emulation Mode
Printer Commands
This section provides a detailed description of IBM emulation mode commands you
can use with your printer.
Control Codes
Control codes are one-character printer commands that are used to:
• Manage the printing of a job.
• Control the movement of the cursor, which changes the current print position.
• Control secondary font selection, such as condensed and double-wide.
The first 32 characters of the Standard ASCII table are control codes. This printer uses
the following control codes.
Table 2-1: Control Codes
Code Name Symbol Description
Sounds the printer beeper for approximately 1
Beeper BEL
Backspace BS Causes the printer to move the current print position one
Horizontal Tab HT Moves the print head to the next horizontal tab position
Line Feed LF Advances the paper one line on the page. An automatic
second.
character position to the left.
specified by the ESC D command. If no tab position is
set or programmed, tabs are set by default to every 8th
column, beginning at column 9.
When no tab is set between the current position and the
right margin or if the tabs are all cleared, the code is
ignored.
carriage return may be optionally disabled.
Value
(Dec)
7 07
8 08
9 09
10 0A
Value
(Hex)
Draft document
Table 2-1: Control Codes (Continued)
2-2
Control Codes
Code Name Symbol Description
Sounds the printer beeper for approximately 1
Beeper BEL
Vertical Tab VT Advances the paper to the next vertical tab position set
Form Feed FF Advances the paper to the top of the next page and does
Carriage Return CR Moves the current print position to the left margin of the
Double-Wide Printing by
Line
Condensed Printing SI Condenses printing from 10 characters per inch (cpi) to
Select Printer DC1 Selects the printer, causing all subsequent data to be
Select 10 cpi DC2 Returns condensed printing to normal (10 cpi). Cancels
SO Prints all characters in double-width mode.
second. 7 07
by the ESC B command. If no tab position is set, the
printer performs a single line feed.
If the next vertical tab position is greater than the form
length (or form length minus skip perforation), the VT
does a line feed.
An automatic carriage return may be optionally disabled
a carriage return.
current line. An automatic line feed may be optionally
added by the setup.
This mode is canceled by the receipt of ESC [ @, ESC W
n, CR, LF, VT, FF, DC4, CAN or auto wrap.
17.1 and 12 cpi to 20.
accepted.
SI mode.
Value
(Dec)
11 0B
12 0C
13 0D
14 0E
15 0F
17 11
18 12
Value
(Hex)
Deselect Printer DC3 This control code has no effect on the parallel interface.
This command is accepted and ignored.
Cancel Double-Wide
Printing by Line
Cancel Data CAN Clears current line buffer of data already received to print
DC4 Cancels double-width printing mode and returns printing
to normal.
on the current line. Does not change the current print
position
19 13
20 14
24 18
Draft document
Escape Sequences
An escape sequence (two or more characters of information) lets you change the way
the printer is currently printing. Like a control code, it gives you control over the printed
output. The escape sequence begins with the character ESC (decimal 027,
hexadecimal 1B). The printer recognizes this character as the beginning of a printer
command signaling that the information following is control information and not data
to be printed.
Printer Command Parameters
2-3
Escape Sequences
A command parameter sets the value for a command. This value stays constant until
either a different value resets the command or a command resets the printer to its
default values. For example, after the printer receives a command that selects a right
margin beginning at column 63, the right margin of each printed page begins at
column 63. The margin remains constant until a right margin command with a different
value resets the margin, or the printer is reset.
In this section, command parameters are indicated by a lowercase n. Usage Notes
explain how to compute this parameter.
When this command is sent, the printer ignores all data except DC1.
FormatESCQn
Decimal2781n
Hexadecimal 1B51n
USAGE NOTE
The following values of n are valid:
ModelDecimalHexadecimal
2580303Pro-III Mode ON
2-7
Pro-III Mode
Setting in Setup
182B6Pro-III Mode OFF
General Printer
25812216Pro-III Mode ON
25903523
25911624
Stop Printing (259X only)
This command stops printing and causes the printer to go into OFF LINE mode.
Pressing the Start/Stop key returns the printer to ON LINE mode.
FormatESCj
Decimal27106
Hexadecimal 1B6A
184B8Pro-III Mode OFF
185B9
183B7
Draft document
Print Position Commands
Relative Move Inline Forward (n/120")
This command moves the current print position to the right by the distance specified
in the parameter.
FormatESCdLnHn
Decimal27100LnHn
Hexadecimal 1B64LnHn
USAGE NOTES
2-8
Print Position
• Any attempt to use this command to move the print position beyond the
current right margin leaves the print position set to the right margin.
• If underscoring and/or overscoring are in effect, the space of the move is
underscored/overscored (unlike the case of a horizontal tab).
• The unit of measure is 1/120 inch. The position will be moved relative to the
current print position. The distance is computed as (Ln+(Hn*256)) in inches.
• When a value is represented by two parameter bytes, value (A) = Ln + Hn X
256. Calculate values of A less than 256.
– Hn is 0.
– Ln is the value.
• To calculate values of A equal to or greater than 255.
– Divide the value A by 256.
– The result is Hn.
– The remainder is Ln.
Draft document
Automatic Line Feed (LF)
Turns the automatic line feed mode On and Off.
FormatESC5n
Decimal2753n
Hexadecimal 1B35n
USAGE NOTES
The value of n can be either of the following:
• 1 (dec) 01 (hex) = ON
• 0 (dec) 00 (hex) = OFF
• When on, executes an automatic line feed when a carriage return is received.
2-9
Print Position
Reverse Line Feed
This command feeds the paper one line in the reverse direction.
Format ESC ]
Decimal 27 93
Hex 1B 5D
Caution: This command is not recommend. Repetitive use of this command can
cause a paper jam.
Set Vertical Units (259X only)
For 259x printers only.
This command selects the line feed spacing increment for the following commands:
• Set Graphics Line Spacing (ESC 3)
• Graphics Variable Line Spacing (ESC J).
FormatESC[\n1n2m1m2m3m4
Decimal 279192n1000m3m4
Hexadecimal 1B5B5Cn1000000m3m4
Draft document
2-10
USAGE NOTES
Print Position
• The default is 1/216 inch. The supported alternative is 1/180 inch and 1/360
inch.
• n1 and n2 specify the number of mode bytes contained in this escape
sequence. Normally, n1 is 4, and n2 is 0.
• m1 and m2 are ignored.
• m3 and m4 set the base units as follows:
Table 2-3: Set Vertical Unit - m3 and m4 values
m3m4
UnitDecimalHexadecimalDecimalHexadecimal
216D800001/216
180B400001/180
1046801011/360
Select 1/8" Line Spacing
This command (ESC zero) sets the line spacing at 1/8 inch between each line, which
is 8 lines per inch (lpi).
FormatESC0
Decimal2748
Hexadecimal 1B30
Select 7/72" Line Spacing
This command sets the line spacing at 7/72 inch between each line, which is 10.3 lpi.
FormatESC1
Decimal2749
Hexadecimal 1B31
Draft document
Set Text Line Spacing (n/72")
This command sets line spacing in n/72 inch increments. To activate the line spacing,
use the printer command Start Text Line Spacing (ESC 2).
FormatESCAn
Decimal2764n
Hexadecimal 1B41n
USAGE NOTE
The value for n must be between 1 and 85.
Start Text Line Spacing
2-11
Print Position
This command activates the line spacing designated by the Set Line Spacing for Text
(ESC A) printer command. If no value is set by ESC A, command sets the line spacing
to 1/6 inch, which is 6 lpi.
FormatESC2
Decimal2750
Hexadecimal 1B32
Draft document
Page/Form Layout Commands
Set All Tabs to Power On Setting
This command sets the horizontal tabs at every 8th column, beginning at column 9 (9,
17, 25, and so on) and clears all vertical tabs.
FormatESCR
Decimal2782
Hexadecimal 1B52
USAGE NOTE
2-12
Page/Form Layout
• To set user-defined tabulation stops, use printer command ESC D for
horizontal tabs and ESC B for vertical tabs.
Set Horizontal Tabs
This command sets up to 28 tabulation stops to be used with the printer command HT,
Horizontal Tabulation.
FormatESCDn1...n280
Decimal27680n1...n280
Hexadecimal 1B44n1...n2800
USAGE NOTES
• Set the tabulation stops in ascending order (n1.....n28).
• The last digit in the sequence must be 0 to terminate the command.
• Horizontal tabs are specified by column number. The left most column is
numbered one.
• ESC D 0 clears all existing horizontal tab stops.
• ESC R (Set Default Tabulation Stops) resets to the default horizontal
tabulation stops.
• The printer command HT, Horizontal Tabulation, activates the tabulation
stops set by this Escape sequence.
Draft document
Set Vertical Tabs
Sets as many as 64 tabulation stops by line number.
FormatESCBn1...n640
Decimal27680n1...n640
Hexadecimal 1B44n1...n6400
USAGE NOTES
• Set the tabulation stops in ascending order (n1.....n64).
• The last digit in the sequence must be 0 to terminate the command.
• Vertical tab positions are specified by a line number, and the first line is
numbered one.
2-13
Page/Form Layout
• ESC B 0 or ESC R (Set Default Tabulation Stops) clears all vertical tab stops.
• The last digit in the sequence must be a 0 to terminate the command.
• The printer command VT, Vertical Tabulation activates the tabulation stops
set by this escape sequence.
– If no tab position is set, the printer performs a single line feed.
– If the next vertical tab position is greater than the form length (or form length
minus skip perforation), the VT does a line feed.
– An automatic carriage return may be optionally disabled.
Set Horizontal Margins
This command sets the left and right margins.
FormatESCXnm
Decimal2788nm
Hexadecimal 1B58nm
USAGE NOTES
• n selects the left margin position.
• m selects the right margin position.
• Margins are specified in the character positions at the current pitch and are
stored in absolute displacement from the left edge of the paper.
• The values for n and m must be between 0 and 255. If the value is set at 0,
the margin is left unchanged.
Draft document
Set Automatic Perforation Skip
This command specifies the number of lines to be skipped at the bottom of each page,
which creates a bottom margin.
FormatESCNn
Decimal2778n
Hexadecimal 1B4En
USAGE NOTES
• This command remains in effect until:
– Cancel Skip Perforation (ESC O) printer command is received.
– Set Form Length in Lines (ESC C) printer command is received.
– Set Form Length in Inches (ESC C 0) printer command is received.
2-14
Page/Form Layout
• Valid values for n are 1 through 255 (decimal), 01 through FF (hexadecimal).
Cancel Automatic Perforation Skip
This command cancels Set Automatic Perforation Skip (ESC N).
FormatESCO
Decimal2779
Hexadecimal 1B4F
Proportional Space Mode
This command turns proportional space mode on and off.
FormatESCPn
Decimal2780n
Hexadecimal 1B50n
USAGE NOTES
• The value of n can be either of the following:
– 1 (dec) 01 (hex) = ON
– 0 (dec) 00 (hex) = OFF
• (259x only) ON changes character pitch to the LQ proportional mode. OFF
returns character pitch in LQ mode to the pitch selected before the
proportional space mode was turned on.
Draft document
Set Top of Form
This command sets the first line of printing on each page to the current vertical paper
position.
FormatESC4
Decimal2752
Hexadecimal 1B34
Set Form Length in Inches
This command sets the form length to a specified number of inches.
FormatESCC00n
Decimal 276700n
Hexadecimal 1B4300n
2-15
Page/Form Layout
USAGE NOTES
• The value of n must be between 1 and 255.
• When the command is sent, the current vertical position becomes the new top
of form.
• Automatic Perforation Skip is canceled
Set Form Length in Lines
This command sets the form length to a specified number of lines.
FormatESCCn
Decimal2767n
Hexadecimal 1B43n
USAGE NOTES
• The value of n must be from 1 to 255, and works in conjunction with the
current line spacing (ESC A).
• When the command is sent, the current vertical position becomes the new top
of form.
• Automatic Perforation Skip is canceled.
Draft document
Character Commands
Select Character Set 1
Selects character set 1 for printing.
Character set 1 contains characters and symbols that are used in the English
language.
Format ESC 7
Decimal 27 55
Hex 1B 37
2-16
Character
See page YYY for more information. {Reference will be updated when document
is finalized.}
Select Character Set 2
Selects character set 2 for printing.
Character set 2 contains characters and symbols that are used in English and nonEnglish languages.
Format ESC 6
Decimal 27 54
Hex 1B 36
See page YYY for more information. {Reference will be updated when document
is finalized.}
Download a Character Set
See page YYY for more information. {Reference will be updated when document
is finalized.}
Draft document
Select Print Mode
This command selects the normal font or the download font in Draft, NLQ (258x only)
or LQ (259x only).
Format ESC I n
Decimal 27 73 n
Hex 1B 49 n
USAGE NOTES
• This command cancels any print combinations that conflict with ESC I.
• The following table shows valid values for n for the 248x and 249x printers.
The command is ignored if any other value is entered:
2-17
Character
Table 2-4: Print Mode Values
Printer ModelDecimalHexadecimalPrint Mode
258X0 00 Draft Resident
1 01 Fast DP (12 cpi)Resident
2 02 NLQ Gothic Resident
3 03 NLQ Courier Resident
4 04 Draft Download
5 05 Fast DP (12 cpi) Download
6 06 NLQ Download
7 07 NLQ IIDownload
8 08 Draft Download
9 09 Fast DP (12 cpi) Download
10 0A NLQ Gothic Download
11 0B NLQ Courier Italic Download
12 0C Draft Download
13 0D Fast DP (12 cpi) Download
14 0E NLQ Download
15 0F ALT NLQ II Download
2-18
Draft document
Table 2-4: Print Mode Values (Continued)
Printer ModelDecimalHexadecimalPrint Mode
259X0 00 (Draft) 10 cpi Normal
8 08 (Draft) 12 cpi Normal
16 10 (Draft) 17 cpi Normal
2 02 (LQ) 10 cpi - Courier Normal
10 0A (LQ) 12 cpi -Prestige Normal
18 12 (LQ) 17 cpi -Courier Normal
3 03 (LQ) Proportional Normal
4 04 10 cpi Draft Download
12 0C 12 cpi Draft Download
20 14 17 cpi Draft Download
6 06 10 cpi LQ Download
14 0E 12 cpi LQ Download
Character
22 16 17 cpi LQ Download
7 07 Proportional LQ Download
2-19
Draft document
Code Page Commands
Set Code Page
Use this printer command to change the active code page.
FormatESC[Tn1n2n3n4HcLc
Decimal 279184n1n200HcLc
Hexadecimal 1B5B54n1n20000HcLc
USAGE NOTES
• n1 is a one-byte binary number that is the less significant byte of the two-byte
parameter count.
Code Page
• n2 is a one-byte binary number that is the more significant byte of the two-
byte parameter count. Zero is a valid count.
• n3 and n4 are always 0.
• Hc and Lc are two-byte values that specify the code page to be used.
See“Code Page Table” on page A-1 for decimal and hexadecimal values.
• This command is ignored if an unavailable code page is specified.
• To calculate Hc Lc for a code page that is not shown:
– Divide the code page number, such as 437, by 256.
– The whole number result is the Hc value.
– The remainder is the Lc value.
– If your code page has an alphabetic character, such as 437G, add 10,000
to the code page number, then divide by 256.
Continuously Print From All Character Chart
This command prints the next (n = m X 256) characters from the All Characters Chart.
FormatESC\LnHnn1...nn
Decimal2792LnHnn1...nn
Hexadecimal 1B5CLnHnn1...nn
USAGE NOTES
• Identify the number of characters (A) that you want to print.
Draft document
2-20
– When a value is represented by two parameter bytes, value (A) = Ln + Hn
X 256. Calculate values of A less than 256.
•Hn is 0.
•Ln is the value.
– To calculate values of A equal to or greater than 255.
•Divide the value A by 256.
•The result is Hn.
•The remainder is Ln.
Code Page
• The variables, n1 n2 n3 and so on, are the number of characters that you
want to print. For example, for each character, n1 n2 n3...., that you want to
print, you must input the decimal or hexadecimal digit for that character.
• Use the “Code Page Table” on page A-1 for decimal and hexadecimal values.
– Locate the character on the code page table.
– Use the decimal or hexadecimal digit for that character in the printer com-
mand format.
Print One Character
This command prints the next character from the All Characters Chart.
FormatESC^
Decimal2794
Hexadecimal 1B5E
Draft document
Style Commands
Set Print Quality
This command changes the print quality.
FormatESC[dn1n2m
Decimal2791100n1n2m
Hexadecimal 1B5B64n11nm
USAGE NOTES
• n1 and n2 specify the number of parameter bytes contained in this escape
sequence. Normally, n1 is 1, and n2 is 0.
2-21
Style Commands
m specifies the print quality as follows:
Table 2-5: Set Print Quality m parameter values
Printer ModelDecimalHexadecimalQuality
258X0 00 No change
1 - 6301 - 3FFast Draft
64 - 12740 - 7FDraft
128 - 25480 - ENLQ
255FFDefault Font
259X0 00 No change
1 - 6301 - 3FFast Draft
64 - 12740 - 7FDraft
128 - 191 80 - BFLetter Quality (LQ)
192 - 254C0 - FEEnhanced Leter Quality (ELQ)
3 03 (LQ) Proportional
255FFDefault Font
2-22
Draft document
Style Commands
Select Global Font
This command allows the user to vary the font, pitch and code page.
FormatESC[ILnHnHfLfHsLsSmNulHcLc
Decimal 279173LnHnHfLfHsLsSmNulHcLc
Hexadecimal 1B5B49LnHnHfLfHsLsSmNulHcLc
USAGE NOTES
• Count the number of parameter bytes contained in this escape sequence as
value (A).
– When a value is represented by two parameter bytes, value (A) = Ln + Hn
X 256. Calculate values of A less than 256.
•Hn is 0.
•Ln is the value.
– To calculate values of A equal to or greater than 255.
•Divide the value A by 256.
•The result is Hn.
•The remainder is Ln.
• If Font Lock and Pitch Lock are active, this command is ignored.
• The font global ID (Hf = high byte and Lf = low byte) specify the pitch and font
typestyle you want to print. The Global Font Id Tables below describe the Hf
and Lf variables. When the font global ID is valid data, size parameters (Hs,
LS, Sm) are ignored.
• The size parameters (Hs, Ls and Sm) specify the pitch. They are valid when
font ID (Hf and Lf) is not valid. Nul data is ignored. See Table 2-12: “Global
Font Size Parameters” on page 2-26 for the valid size parameters.
• Sm specifies the size modifier. Values of Sm are:
– 00 - No change
– 01 - Width is measured in increments of 0.018 mm (1/1440 in.)
– 02, 03 - Font is proportional
– All other values are regarded as 0.
• The code page ID (Hc and Lc) specify the Code Page. See“Code Page
Table” on page A-1 for decimal and hexadecimal values.
• This command uses the following best-fit algorithm in the following order:
– Requested font, pitch and code page
– Requested pitch and code page, first font found
– Requested code page, first font and pitch found
– No change
2-23
Style Commands
Draft document
The following table applies to all models, except where noted.
Note: There are subtle differences between the 258X and 259X printers. This is
intentional, not a typo.
2-27
Draft document
Select Print Type Style
This command selects the following printing modes:
• Character height - single or double
• Character width - single or double
• Line Spacing - single or double
• Italic print
• Shadow print (259x only)
• Outline print (259x only)
FormatESC[@n1n2m1m2m3m4
Decimal 279164n1n2m10m3m4
Hexadecimal 1B5B40n1n2m100m3m4
Style Commands
USAGE NOTES
• n1 and n2 specify the number of mode bytes contained in this escape
sequence. Normally, n1 is 4, and n2 is 0.
• Normally, m2 is 0 (Dec) 00 (Hex). (Not supported)
• m1 controls start and stop of the character modes. See the table below for
values.
• m3 controls line spacing and character height. It as two parts: a high-order
half-byte and a low-order half-byte. The high-order half-byte of m3 controls
the line spacing and the low-order half-byte controls the character height. See
the table below for values.
• m4 controls the character width. Only the low-order half-byte is significant in
this mode byte. The high-order half-byte is ignored. See the table below for
values.
2-28
Style Commands
Draft document
See the following table for m1, m3, and m4 values.
Table 2-13: Select Print Type Style Values
VariableDecimalHexadecimalDescription
m1000No change
101Start Italic Print
202Stop Italic Print
404Start Outline Print (259X only)
808Stop Outline Print (259X only)
1610Start Shadow Print (259X only)
3220Stop Shadow Print (259X only)
m3Chracter HeightLine Space
000UnchangedUnchanged
1610UnchangedSingle
3220UnchangedDouble
101SingleUnchanged
1711SingleSingle
3321SingleDouble
202DoubleUnchanged
1812DoubleSingle
3422DoubleDouble
m4001Unchanged
101Single
202Double
Select 12 cpi
This command sets the pitch at 12 cpi.
FormatESC:
Decimal2758
Hexadecimal 1B3A
Draft document
Select/Cancel Emphasized Mode
This command selects and cancels the emphasized mode.
To select emphasized mode:
FormatESCE
Decimal2769
Hexadecimal 1B45
To cancel emphasized mode:
FormatESCF
Decimal2770
Hexadecimal 1B46
2-29
Style Commands
Select/Cancel Double-Strike Mode
This command selects and cancels the double-strike mode.
Double-strike print results in a darker print because the printhead strikes the character
twice.
To select double-strike mode:
FormatESCG
Decimal2771
Hexadecimal 1B47
To cancel double-strike mode:
FormatESCH
Decimal2772
Hexadecimal 1B48
Draft document
Start Superscript or Subscript Printing
This command selects the subscript and superscript modes.
FormatESCSn
Decimal2783n
Hexadecimal 1B53n
USAGE NOTE
The value of n can be either of the following:
• 1 (dec) 01 (hex) = Subscript ON
• 0 (dec) 00 (hex) = Superscript ON
2-30
Style Commands
Cancel Superscript and Subscript Printing
This command cancels the subscript and superscript modes.
FormatESCT
Decimal2784
Hexadecimal 1B54
Score Select (259X only)
For 259x printers only.
This command selects forms of overscore, underscore, and strikethrough.
FormatESC[-n1n2m1m2
Decimal 279145n1n2m1m2
Hexadecimal 1B5B2Dn1n2m1m2
USAGE NOTES
To cancel this command, designate type as Dec 255 or ex FF.
• n1 and n2 specify the number of parameter bytes contained in this escape
This command begins and ends continuous underscore of spaces and characters.
To begin Continuous Underscore:
FormatESC-n
Decimal2745n
Hexadecimal 1B2Dn
2-31
Style Commands
USAGE NOTE
• The value of n can be either of the following:
– 1 (dec) 01 (hex) = Underscore ON
– 0 (dec) 00 (hex) = Underscore OFF
Continuous Overscore
This command begins and ends continuous overscore of spaces and characters.
To begin Continuous Overscore:
FormatESC_n
Decimal2795n
Hexadecimal 1B5Fn
USAGE NOTE
• The value of n can be either of the following:
– 1 (dec) 01 (hex) = Overscore ON
– 0 (dec) 00 (hex) = Overscore OFF
2-32
Draft document
Graphics Commands
Normal Density Bit Image Graphics (60 dpi)
This command sends normal density bit images to be printed at 60 dots per inch (dpi)
horizontally and 72 dpi vertically.
FormatESCKLnHnV1...Vn
Decimal2775LnHnV1...Vn
Hexadecimal 1B4BLnHnV1...Vn
USAGE NOTES
Graphics
• The command discards all data that goes beyond the current margin.
• Text and graphics can be printed on the same line.
• Count the total number of bytes of binary bit-image data (A). The total number
of bytes cannot exceed the number of dot columns that remain on the line.
This value is represented by Ln and Hn.
– When a value is represented by two parameter bytes, value (A) = Ln + Hn
X 256. Calculate values of A less than 256.
•Hn is 0.
•Ln is the value.
– To calculate values of A equal to or greater than 255.
•Divide the value A by 256.
•The result is Hn.
•The remainder is Ln.
• V1 though Vn represent graphics data.
Each vertical dot column can have 8 rows of dots.
To print bit image graphics, the printer uses either the first 8 (258x) or 20 (259x) wires
of the printhead to map the eight bits of data.
The following table shows how the print wires are mapped for the 258X printers.
Table 2-14: Print Wire Mapping (258X only)
Dot PositionBit NumberDecimalHexadecimal
Top
Draft document
2-33
Graphics
Table 2-14: Print Wire Mapping (258X only)
Dot PositionBit NumberDecimalHexadecimal
712880
66440
53220
41610
3808
2404
1202
0101
Bottom
The following table shows how the print wires are mapped for the 259X printers.
Table 2-15: Print Wire Mapping (259X only)
Dot PositionBit NumberDecimalHexadecimal
Top
7128801, 2
If dots 7 and 6 print, wire 3 is also used.
6 64404, 5
5 32206, 7
If dots 5and 4 print, wire 8is also used.
4 16109, 10
380811, 12
If dots 3 and 2 print, wire 13 is also used.
240414, 15
120216, 17
If dots 1and 0 print, wire 18 is also used.
010119. 20
Bottom
Dual-Density Bit Image Graphics (Half Speed 120 dpi)
This command sends normal density bit images to be printed at 120 dots per inch
(dpi).
FormatESCLLnHnV1...Vn
Decimal2776LnHnV1...Vn
Hexadecimal 1B4CLnHnV1...Vn
2-34
Draft document
USAGE NOTES
• The command discards all data that goes beyond the current margin.
• Text and graphics can be printed on the same line.
• Each vertical dot column can have 8 rows of dots.
• Dual-density graphics print at half-speed of normal-density bit image
graphics.
• ESC L dual-density bit image graphics can print adjacent dots.
• See “Normal Density Bit Image Graphics (60 dpi)” on page 2-32 for more
information on bit image graphics.
Dual-Density Bit Image Graphics (Normal Speed 120 dpi)
Graphics
This command sends bit images to be printed at a horizontal resolution of 120 dots
per inch (dpi).
FormatESCYLnHnV1...Vn
Decimal2789LnHnV1...Vn
Hexadecimal 1B59LnHnV1...Vn
USAGE NOTES
• The command discards all data that goes beyond the current margin.
• Text and graphics can be printed on the same line.
• Each vertical dot column can have 8 rows of dots.
• ESC Y dual-density graphics print at normal speed.
• ESC Y dual-density graphics cannot print horizontally adjacent dots.
• See “Normal Density Bit Image Graphics (60 dpi)” on page 2-32 for more
information on bit image graphics.
High-Density Bit Image Graphics (240 dpi)
This command sends bit images to be printed at a horizontal resolution of 240 dots
per inch (dpi).
FormatESCZLnHnV1...Vn
Decimal2790LnHnV1...Vn
Hexadecimal 1B5ALnHnV1...Vn
Draft document
USAGE NOTES
• The command discards all data that goes beyond the current margin.
• Text and graphics can be printed on the same line.
• Each vertical dot column can have 8 rows of dots.
• ESC Z high-density graphics print at half-speed of normal-density bit image
graphics.
• ESC Z high-density graphics cannot print horizontally adjacent dots.
• See “Normal Density Bit Image Graphics (60 dpi)” on page 2-32 for more
information on bit image graphics.
High Resolution Graphics (259x only)
2-35
Graphics
For 259x printers only.
This command sends data for dot matrix graphics to the printer.
FormatESC[gLnHnmV1...Vn
Decimal 2791103LnHnmV1...Vn
Hexadecimal 1B5B67LnHnmV1...Vn
Format ESC [ g n1 n2 m data
Decimal 27 91 103 n1 n2 m data
Hex 1B5B 67 n1 n2 m data
USAGE NOTES
• This command allows selection of eight modes for both emulated 8-wire
graphics and 24-wire graphics.
• Count the total number of bytes of binary bit-image data PLUS ONE (A). The
total number of bytes cannot exceed the number of dot columns that remain
on the line. This value is represented by Ln and Hn.
– When a value is represented by two parameter bytes, value (A) = Ln + Hn
X 256. Calculate values of A less than 256.
•Hn is 0.
•Ln is the value.
– To calculate values of A equal to or greater than 255.
•Divide the value A by 256.
•The result is Hn.
2-36
Draft document
•The remainder is Ln.
• V1 though Vn represent graphics data.
• m is a one-byte value to select the graphics mode. The following modes are
supported:
Table 2-16: High Resolution Graphics m parameter values
DecimalHexadecimal Horizontal DensityWireComments
0 00 60 8Same as ESC K graphics command
1 01 120 8Same as ESC L graphics command
2 02 120 8Same as ESC Y graphics command
3 03 240 8 Same as ESC Y graphics command
8 08 60 24High resolution for ESC K
9 09 120 24 High resolution for ESC L
11 0B 180 24
Graphics
12 0C 360 24
13 0D 120 48
14 0E 180 48
16 10 360 48
Note:
The graphics data is organized by byte. For 8-wire modes, it is arranged and mapped to the wires identically to ESC K. For
24-wire modes, the data has three bytes per slice, with the most significant bit of he first byte mapping to the top wire and the
least significant bit to of the third byte mapping to the bottom wire. The slices are in sequence from left to right.
Modes 2,3 and 12 use consecutive dot elimination. No two adjacent horizontal dots can be printed. The second is
eliminated. For high resolution mode (8,9,11 and 12), the count should be: 1+(3 number of slices).
For 48-wire modes, the data has six bytes per slice.
However the 48-wire image is mapped to the 24-wire head by ORing bits 1 and 2 to wire 1, bit 3 and 4 to wire 2, and so on.
Set Graphics Line Spacing (n/216")
This command sets line spacing to n/216 inches. It does not cause the form to move.
It changes the vertical distance moved when a line feed command is received.
FormatESC3n
Decimal2751n
Hexadecimal 1B33n
USAGE NOTES
• The value of n can be from 1 to 255 (decimal), 01 to FF (hexadecimal).
Draft document
• n must be a multiple of 3 to advance exactly n/216 inches.
• 259x printers only - The units used by ESC 3 can be changed by ESC [ \ Set
Vertical Units.
Graphics Variable Line Spacing (n/216")
Advances the paper in a vertical movement a distance of n/216 inches relative to the
current print position.
FormatESCJn
Decimal2774n
Hexadecimal 1B4An
Format ESC J n
2-37
Graphics
Decimal 27 74 n
Hex 1B 4A n
USAGE NOTES
• n is a value from 1 to 255 (decimal) or 01 to FF (hex).
• 259x printers only - The units used in ESC J can be changed by ESC [ \ Set
Vertical Units.
• n must be a multiple of 3 to advance exactly n/216 inch.
2-38
Draft document
Bar Code Commands
Setup Barcode Parameter
This command sets the barcode parameters to the printer.
FormatESC[f n1n2k m s V1V2c
Decimal 27911026 0 kmsV1V2
Hexadecimal 1B5B660600kmsV1V2
USAGE NOTES
• The printer must receive this command prior to the barcode data command.
The printer may ignore this command when the received parameters include
undefined data.
Bar Code
Barcode Types
• The latest barcode command cancels all previous commands.
• n1 and n2 specify command length. n1 is always 6 (dec), 06 (hex). n2 is
always 0 (dec), 00 (hex).
• k specifies the barcode type . See “Barcode Types” on page 2-38.
• m specifies the module width. See “Barcode Module Width” on page 2-39.
• The variable s denotes the space width adjustment and affects the barcode
printing width. "s" specifies space width adjustment and is used for each
'spaces' to match optical conditions. There is no effect for the 'bar' width
adjustment. The s parameter is ignored in Post-Net. See remarks in this
section for definition of 'space' and 'bar'. See “Adjustment Unit” on page 2-39.
• V1 and V2 specify bar length (2 bytes). See “Barcode Length” on page 2-40.
• c specifies control flag. See “Barcode Control Flag” on page 2-41.
The following values are valid for k:
Table 2-17: Barcode Types
DecimalHexadecimalBarcode
177B1 NW7
178 B2 EAN-13
179 B3 EAN-8
Draft document
Table 2-17: Barcode Types (Continued)
DecimalHexadecimalBarcode
180 B4 CODE 39
181 B5 INDUSTRIAL 2 of 5
182 B6 INTERLEAVED 2 of 5
183 B7 UPC-A
184 B8 UPC-E
185 B9 POST-NET (barcode)
186 BA CODE 128
Barcode Module Width
2-39
Bar Code
The suggested values for m are as follows:
Table 2-18: Barcode Module Width
m
DecimalHexadecimal(259X) 24 wire (258X) 9 wire
0 00 default (2 dots)0.015 in. 0.021 in.
1 *01* 2 dots0.012 in. 0.017 in.
2 02 2 dots0.015 in. 0.021 in.
3 03 3 dots0.021 in. 0.030 in.
4 04 4 dots0.026 in. 0.038 in.
Notes:
* When m = 1, human readable flag is always ignored, and its character is not printed.
In case of "Post-Net", this value only affects bar-width and does not affect bar-pitch.
When m = 1, the barcode prints by 1/360 or 1/240 full dot method. For all other values, the barcode prints by half dot method.
Module width values are nominal values.
Unit Module
Dots
Width
Adjustment Unit
24 wire printers (259X) 1=1/360 in.
9 wire printers (258X) 1=1/240 in
Draft document
2-40
Adjustment Values are:
Table 2-19: Barcode Space Width Adjustment
sDecimalHexadecimal
-3253FD
-2254FE
-1255FF
0000 (default)
1101
2202
3303
Note: Undefined s value is handled as default value.
Bar Code
Note : Bar/Space number of one digit (Interleaved 2 of 5 : one pair digit)
Barcode TypeBARSPACE
NW-743
EAN/UPC-A22
CODE 3954 + 1 Gap
Interleaved 2 of 555
CODE 12833
"s" value affects barcode printing width. If barcode printing area reaches to the right
or left margin, the printer ignores this command.
Barcode Length
The variables v1 and v2 control the bar length. V1 specifies lower byte. V2 specifies
upper byte. Bar length is controlled by multiple value of a unit of 1/2160 inch.
Values for V1, V2 are:
Table 2-20: Barcode Length
V1, V2 value
ModelDecimalHexadecimal
minimum values24 wire (259X)288120
9 wire (248X)27010E
Draft document
Table 2-20: Barcode Length (Continued)
ModelDecHexVertical Pitch
all barcodes except
Post-Net
Post-Net
a
b
a. All the input data is rounded to the multiple value shown.
b. Barcode height is fixed to the values shown.
24 wire (259X)120C1/180 inch
9 wire (248X)301E1/72 inch
ModelDecHexlong bar heightshort bar height
24 wire (259X)28812024/180 inch8/180 inch
9 wire (248X)27010E18/144 inch6/144 inch
V1, V2 value
2-41
Bar Code
Barcode Control Flag
The control flag is made up of 8 bits as follows:
Table 2-21: Barcode Control Flags
BitDescriptionDecimalHexadecimal Effect
b1Check Digit000No check code is generated by the printer.
The host computer should generate the
check code.
101Check code is generated automatically by
the printer.
b2Human Readable Character000Print On
101Print Off
b3EAN-13 (13th digit), UPC-A
(number system character) flag
character position
b4-b8not used
000Center
101Under
Setup Barcode Data
This command sets the barcode data on the current printing position.
FormatESC[pn1n2d1d2
Decimal 2791112n1n2d1d2
Hexadecimal 1B5B70n1n2d1d2
Draft document
2-42
Bar Code
USAGE NOTES
• The printer must receive the Setup command ESC [ f prior to the ESC [ p
command.
• The barcode prints after the printer receives the LF line feed command.
• The printer may ignore this command in the following conditions:
– The barcode print area exceeds the left or right margin.
– The barcode print area exceeds the page margin.
– Undefined data is included in the command. In this case, the command
strings defined "n1,n2" are ignored.
• n1 and n2 specify:
– n1, n2 show data quantity following ESC [ p n1, n2.
– n1 is a low byte of command length data in hexadecimal.
– n2 is a high byte of command length data in hexadecimal.
– If an undefined value is found in the data string, the printer will ignore all the
received barcode data with a length defined as n1, n2.
– Valid n1, n2 values are listed in the following table:
1 to 255 01 to FF 1 to 255 01 to FF 0 00 INTERLEAVED 2 of 5
12 0C 11 0B 0 00 UPC-A
10 0A 9 09 0 00 POST-NET
2 to 255 02 to FF 2 to 255 02 to FF 0 00 CODE 128
a. Automatic check digit generation flag is OFF.
b. Automatic check digit generation flag is ON.
c. The value of n2 does not change based on the check digit generation flag status.
a
n1 (low byte) ON
b
n2 (high byte)
c
3-1
Draft document
CHAPTER 3: Code Pages
Enabling code page character support
In addition to the standard support for the US and Western Europe code pages, the
2500 series forms printers include support for characters contained in a variety of
other code pages.
Enabling code page
When the printer is switched to one of these modes, the new set of code pages
replaces those supported in the standard operating mode.
1Turn the printer off.
2Raise the Ribbon access cover and manually move the Carrier all the way to the
left (Carrier home position sensor = ON). {insert graphic}
3Press and hold one or more buttons on layer 2 of the control panel while turning
the printer on as described in the following table.
Note: Buttons must be held until the printer initializes.