Third Edition (October 2000)
The following paragraph does not apply to the United Kingdom or any country
where such provisions are inconsistent with local law: LEXMARK INTERNA-
TIONAL, 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 of the publication. Improvements and/or changes
in the product(s) and/or the program(s) described in this publication may be
made at any time.
Publications are not stocked at the address given below; requests for publications
should be made to your point of purchase.
A form for reader's comments is provided at the back of this publication. If the
form has been removed, comments may be addressed to Lexmark International,
Inc., Department F95/035-3, 740 New Circle Road N.W., Lexington, Kentucky
4051 1-1876, U.S.A. Lexmark may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you.
Lexmark is a trademark of Lexmark International, Inc.
Other trademarks are the property of their respective owners.
This software and documentation are pr ovided with RESTRICTED RIGHTS. Use,
duplication or disclosure by the Government is subject to restrictions as set forth
in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software
clause at DFARS 252.227-7013 and in applicable F AR pr ovisions: Lexmark International, Inc., Greenwich, CT 06836.
Your dot-matrix printer is an easy-to-use desktop printer that provides lowcost, high-quality output from your personal computer. It handles cut forms,
document-on-demand, and continuous form applications.
Your printer is a wire-matrix printer. The printer makes impressions by forcing
a hardened wire against an ink ribbon to transfer ink to the paper on impact. A
dot is printed each time the wire strikes the ribbon against the paper. This
impact printing technology has unique capabilities. The information in this
manual enables you to fully use the capabilities of dot-matrix impact printing.
This book applies to the Lexmark Forms Printer 2400 Series dot-matrix family
of printers. Differences that occur between printer models are noted.
The information in this manual is intended primarily for hardware and
software programmers, engineers, technicians, and others who require indepth technical information. If you need information to operate your printer,
see your User’s Guide.
1
Section 1: Introduction
7
Page 10
Available Options
OptionsPart Number
1329605 (10 ft.),
Parallel Cable
Serial interface
• Internal RS-232
• Serial cable
Auto Sheet FeederNarrow Carriage
Auto Sheet FeederWide Carriage
Tractor 2 FeederNarrow Carriage
Tractor 2 FeederWide Carriage
USB cable12A2405YesYesYesYes
248x OKI emulation 12T0155YesYesNoNo
Cut Sheet Output
Support Stand
1427498 (20 ft.),
or equivalent
12T0154
1038693 (50 ft), or
equivalent
12T0150YesNoYesNo
12T0151NoYesNoYes
12T0152YesNoYesNo
12T0153NoYesNoYes
12T0014YesYesYesYes
2480248124902491
YesYesYesYes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Physical Characteristics
WidthHeightDepthWeight
8
2480/2490
2481/2491
Section 1: Introduction
491.5 mm
(18.75 in.)
633.5 mm
(24.35 in.)
195 mm
(7.36 in.)
195 mm
(7.36 in.)
290 mm
(11.28 in.)
290 mm
(11.28 in.)
8.0 kg
(14.8 lb)
9.8 kg
(18.7 lb)
Page 11
Print Speeds
Your printer supports the following burst print speeds in characters per
second (cps).
Mode2480/24812490/2491
Fast Draft
• 10 cpi
• 12 cpi
Draft
• 10 cpi
• 12 cpi
Near Letter Quality Gothic, Courier
• 10 cpi
• 12 cpi
Letter Quality Prestige, Presentor,
Orator, and Script
• 10 cpi
• 438 cps
• 510 cps
• 309 cps
• 304 cps
• 77 cps
• 76 cps
N/A91 cps
• 409 cps
• 465 cps
• 274 cps
• 328 cps
• 91 cps
• 109 cps
Printhead Description
Your printer uses dot-matrix impact technology to generate characters. The 248x
has a 9-wire printhead. The 249x has a 24-wire printhead.
248x
The 248x printhead has nine wires arranged in a single vertical column. The
diameter of each wire is 0.30 mm (0.012 in.). The center-to-center distance
between wires is 0.353 mm (1/72 in.). The printhead has an impact force
sufficient to generate readable copies on multipart forms and envelopes up to
and including 6-ply forms (original plus 5 copies).
249x
The 249x printhead has twenty-four wires arranged in two parallel vertical
columns of twelve wires each. The diameter of each wire is 0.22 mm (0.009 in.).
The wires in each of the rows are vertically separated to produce a 0.141 mm (1/
180 in.) space between the centers of adjacent dots. The printhead has an impact
force sufficient to generate readable copies on multipart forms and envelopes
up to and including 4-ply forms (original plus 3 copies).
Section 1: Introduction
9
Page 12
Printhead Movement
The printhead moves by a direct-current stepper motor.
The printhead can print while moving in both directions (bidirectional print).
When the printhead is printing in both directions, it automatically finds the
shortest path to print the next line.
The maximum velocity of the printhead is 1117.6 mm (44 in.) per second for the
248x and 1041.4 mm (41 in.) per second for the 249x.
Environmental Conditions
Optimum Temperature Ranges
ConditionOperatingStoredShipping
Ambient air
temperature
range
Humidity range8.0% to 90%5.0% to 100%5.0% to 100%
+10° to +40.6°C
(+50° to +105°F)
Vibration
Although this desktop printer is portable and durable, do not operate or place
the printer in vibration-prone areas. For best results, operate the printer on a
level surface.
Clearances
Printer operation produces natural convection, or airflow. To allow sufficient
airflow, make sure there is 50.8 mm (2 in.) of space around all exposed surfaces.
Power Requirements
+1° to +60°C
+34° to +140°F
-40° to +60°C
(-40° to +140°F)
Power Consumption
• 38 W average operating power
• 7 W average idle power
10
Section 1: Introduction
Page 13
Alternating Current Line Voltage Power
Your printer uses one of the following alternating current (ac) line voltage
power values.
Note: Input voltage value varies with the country where the printer was pur-
chased.
• 90-137 V ac, 50/60 Hz
• 180-265 V ac, 50/60 Hz
Power Cord
Printers for the United States and Canada have a 1.83 m (6.0 ft) power cord.
Printers for all other countries have a 2.74 m (9.0 ft) power cord, with the correct
plug to match the country requirements.
Noise Emission Value
The following are noise emission values for your printer.
Noise Emission Values248x-001249x-001
Operating 4 Mic Average, Draft
Operating Front Mic Average, Draft
Operating 4 Mic Average, NLQ
Operating Front Mic Average, NLQ
IDLE (standby mode)
All measurements were made in accordance with ISO 7779.
Note: When the optional Auto Sheet Feeder or Tractor 2 Feeder is installed, the maximum width of a cut form is 215 mm (8.5 in.) for manual loading.
Maximum559 mm
Minimum76 mm
Maximum90 g/m
Minimum60 g/m
Note:Thickness up to 0.512 mm (0.0202 in.) for 2480/2481 printers; up to0.36 mm
(0.015 in.) for 2490/2491 printers.
Single
(11.7 in.)
See Note
N/A
See Note
(3.0 in.)
N/AN/A63 mm
(22.0 in.)
(3.0 in.)
(24 lb.)
(16 lb.)
Thickness - Multiple Part Forms of 45 g/m2 (12 lb.) paper
0.058 mm
(0.0023 in.)
Multiple
part
254 mm
(10 in.)
241 mm
(9.5 in.)
76 mm
(3.0 in.)
63 mm
(2.5 in.)
559 mm
(22.0 in.)
3.2 mm
(0.125 in.)
2
2
N/A90 g/m
N/A75 g/m
See Note0.042 mm
Envelopes
241 mm
(9.5 in.)
152 mm
(6.0 in.)
152 mm
(6.0 in.)
110 mm
(4.1 in.)
(0.017 in.)
N/A
N/A
2
(24 lb.)
2
(20 lb.)
12
Section 1: Introduction
Page 15
2481/2491 (Wide Carriage Models)
Cut Forms Continuous Forms
Paper
Dimensions
Single
Multiple
part
Single
Width
Maximum420 mm
(16.5 in.)
Maximum
N/AN/A393 mm
Hole to Hole
Minimum76 mm
(3.0 in.)
Minimum
N/AN/A63 mm
Hole to Hole
420 mm
(16.5 in.)
76 mm
(3.0 in.)
406 mm
(16.0 in.)
(15.5 in.)
76 mm
(3.0 in.)
(2.5 in.)
Page Length
Maximum559 mm
(22.0 in.)
Minimum76 mm
(3.0 in.)
559 mm
(22.0 in.)
76 mm
(3.0 in.)
559 mm
(22.0 in)
3.2 mm
(0.125 in.)
Weight
(24 lb.)
(16 lb.)
2
N/A90 g/m
(24 lb.)
2
N/A56 g/m
(15 lb.)
Maximum90 g/m
Minimum60 g/m
Thickness - Multiple Part Forms of 45 g/m2 (12 lb.) paper
0.058 mm
(0.0023 in.)
See Note0.058 mm
(0.0023 in.)
Note:Thickness up to 0.512 mm (0.0202 in.) for 2480/2481 printers; up to0.36 mm
(0.015 in.) for 2490/2491 printers.
Multiple
part
406 mm
(16.0 in.)
393 mm
(15.5 in.)
76 mm
(3.0 in.)
63 mm
(2.5 in.)
559 mm
(22.0 in.)
3.2 mm
(0.125 in.)
2
2
N/A90 g/m
See Note0.053 mm
Envelopes
241 mm
(9.5 in.)
N/A
152 mm
(6.0 in.)
N/A
152 mm
(6.0 in.)
110 mm
(4.1 in.)
(24 lb.)
75 g/m
(20 lb.)
(0.021 in.)
2
2
Section 1: Introduction
13
Page 16
Pap er SizeNarrow carriage (2480/2490)Wide carriage (2481/2491)
Automatic Feed Mode (single-part form)
Length139.7 mm (5.5 in.)
minimum
355.6 mm (14.0 in.)
maximum
Width105 mm (4.13 in.)
minimum
215.9 mm (8.5 inch)
maximum
Tractor Feeder (continuous forms)
Length76 mm (3.0 in.)
minimum
N/A
maximum
Width76 mm (3.0 in.)
minimum
254 mm (10 in.)
maximum
Notes:
1
For paper width greater than 8.5 inches.
139.7 mm (5.5 in.)
minimum
355.6 mm (14.0 in.) (See Note 1)
maximum
558.8 mm (22 in.) (See Note 2)
105 mm (4.13 in.)
minimum
364 mm (14.3 in.)
maximum
76 mm (3.0 in.)
minimum
N/A
maximum
76 mm (3.0 in.)
minimum
406 mm (16.0 in.)
maximum
2 For paper width up to 8.5 inches.
Manual Feed (cut sheets)
Length76.2 mm (3.0 in.)
minimum
558.8 mm (22.0 in.)
maximum
Width76.2 mm (3.0 in.)
minimum
279.4 mm (11.0 in.)
maximum
Paper Weight16 ~ 24 lbs (60 ~ 90 g/m
76.2 mm (3.0 in.)
minimum
558.8 mm (22.0 in.)
maximum
76.2 mm (3.0 in.)
minimum
420 mm (16.5 in.)
maximum
2
)
14
Section 1: Introduction
Page 17
Ribbon Specifications
The life expectancy of the 2300/2400 series standard re-inking ribbon is
approximately 4 million characters in 10 characters per inch (cpi) draft mode.
For replacement ribbon, order ribbon number 11A3540.
Length:1.8 m (6.0 ft)
Width:8 mm (0.315 in.)
Fabric:Nylon
High yield re-inking ribbon is available for the 2400 series printer. It has a life
expectancy of approximately 8 million characters in 10 cpi draft mode. For
replacement ribbon, order ribbon number 11A3550.
Length:2.5 m (8.3 ft)
Width:8 mm (0.315 in.)
Fabric:Nylon
Diagnostics
This section discusses diagnostics at power-on and how to do the printer test.
Power-On Diagnostics
The following tests are performed when the printer is turned On.
• RAM Test
• Font ROM/Microcode Sum Test
• Timer/Interrupt Controller Test
• NVRAM Test
• Switch Scan Test of the operator panel
• Carrier Initialization
• Paper Feed Initialization
If any errors occur during the tests, a combination of blinking LEDs indicate
which test failed.
Printer Test
You can run a Printer Test to aid in problem determination. In addition to the
normal power-on internal tests (see “Power-On Diagnostics” on page 15), the
printer test generates a sample printout.
This test printout can be printed either with or without connecting the printer to
your computer.
Section 1: Introduction
15
Page 18
To run the printer test, follow these steps:
Make sure the paper and ribbon are installed.
1
Turn the printer Off.
2
Press Line Feed while you turn the printer On.
3
After a few seconds, release Line Feed.
4
To stop or interrupt the printer test:
Press Start/Stop. The test stops after a complete line of characters has
1
printed.
Press Start/Stop to continue the printer test.
2
Programming Examples
Examples in this manual have been formatted to be processed by a simple
BASIC program. The BASIC program reads an input file and writes data to an
output file. Printer commands may be entered into the input file in a
hexadecimal format and enclosed with opening and closing delimiters.
The opening delimiter is a less-than symbol, ’<’, followed by an ’x’. The ’x’ may
be either upper or lower case. The closing delimiter is a greater-than symbol,
’>’.
Within the delimiters, hexadecimal data must be presented in two-digit pairs.
White space, blanks, carriage returns and line feeds may be used between the
pairs. In addition, a comment may be added to the end of a line by using a
minus sign, ’-’, at the start of the comment. All data after a minus sign is ignored
until a carriage return or line feed is encountered.
The example format used in this book is shown below:
All of the examples use this encoding method and have been tested using the
following BASIC program:
1000 INPUT "Enter file name to be printed"; FILENAME$
1010 OPEN FILENAME$ FOR INPUT AS #1
1020 OPEN "prtrout.bin" FOR OUTPUT AS #2
1030 WHILE EOF(1) = 0
1040 I$ = INPUT$(1, #1)
The SIC command sets the printer to the default values that were set at the
factory or to user-defined defaults.
SIC Command Format
Use the following format:
FormatESC [KLn Hn init ID p1...p22
Decimal279175Ln Hn
Hex1B5B4BLnHn
Ln is the number of parameters plus 2. Hn is 0.
The decimal and hexadecimal digits for the printer command appear below the
printer command format.
Section
2
Section 2: Set Initial Conditions (SIC) Command
21
Page 22
init sets the printer to user-defined or factory settings. The value for init can be:
Initial ValuesDescription
Initializes printer to user-defined settings. The download font
remains unchanged. If parameters are specified, they overwrite the default settings. If the emulation mode is changed,
0
1
4
the download font is initialized. This command only copies
data from the selected macro, add parameter changes, if any,
and store in working RAM; the data stored in the macro’s nonvolatile RAM is not affected.
Initializes printer to user-defined settings. The download font
is initialized. If parameters are specified, they overwrite the
default settings. This command only copies data from the
selected macro, add parameter changes, if any, and store in
working RAM; the data stored in the macro’s non-volatile
RAM is not affected.
Initializes 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, add parameter changes, if any, and
store in working RAM; the data stored in the macro’s non-volatile RAM is not affected.
5
254
255
Initializes 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, add parameter changes, if any, and store in working
RAM; the data stored in the macro’s non-volatile RAM is not
affected.
Initializes printer to user-defined settings. The download font
is initialized. If parameters are specified, they overwrite the
default settings. This command changes data stored in the
selected macro. It copies data from the selected macro, add
parameter changes, if any, and store in working RAM and in
the selected macro. It also changes the default macro to the
value of parm 3.
Initializes printer to default settings. The download font is initialized. If parameters are specified, they overwrite the default
settings. This command changes data stored in the macro’s
non-volatile RAM. It copies default settings from ROM, add
parameter changes, if any, and store in working RAM and all
macros. It also sets the default macro to Disable.
22
Section 2: Set Initial Conditions (SIC) Command
Page 23
Use the following parameters (parms) with SIC commands that use the printer
ID of C5 and C6:
You can disable specific buttons on the operator panel. The upper 6 bits of parm 2
represent the different buttons on the operator panel. The lower 2 bits are reserved
to enable or disable the panel.
BitOffOn
7. FontDisabledEnabled
6. PitchDisabledEnabled
5. Micro
4. Micro
3. LFDisabledEnabled
2. MacroDisabledEnabled
Bits 0 and 1 allow for existing panel disable functions.
To disable the panel or any of the buttons, bit 0 must be On.
The Start/Stop button and the Form Feed button are always enabled.
2 If Parm 3 has no value (macro has not been supplied), the printer default macro is
used to store the change.
When init=04H or 05H is specified, parm3 is ignored.
When init=00H, 01H, FEH, FFh are specified, parm3 value is used as Macro No.
instead of Default Macro setting No.
When init=FEH, FFh are specified parm3 value is overwritten to Default Macro
setting in NVRAM. When the disable(=255) is set to parm3 Macro No.1 setting is
used to initialize.
4Font 0=No Change
1=Fast Draft
2=Draft
3=Gothic
4=Courier
5=Download Font
6=Prestige
(249x Plus only)
7=Presentor
(249x Plus only)
8=Orator
(249x Plus only)
9=Script
(249x Plus only)
1=0 Inch
2=1/2 Inch
3=1 Inch
4=2 Inches
5=3 Inches
12Alarm0=No Change
1=Disable Alarm
2=Enable Alarm
13Auto CR0=No Change
1=On
2=Off
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
0
1
0
1
2
3
4
0
1
2
3
4
0
1
2
3
4
5
6
0
1
2
3
4
5
0
1
2
0
1
2
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
00
01
00
01
02
03
04
00
01
02
03
04
00
01
02
03
04
05
06
00
01
02
03
04
05
00
01
02
00
01
02
Section 2: Set Initial Conditions (SIC) Command
25
Page 26
ParmDescriptionSelectionDecHex
14Auto LF0=No Change
1=On
2=Off
15Slash Zero0=No Change
1=Slashed Zero
2=Normal Zero
16Character Set0=No Change
1=Set 1
2=Set 2
17Print Direction 0=No Change
1=Unidirectional
2=Bidirectional
18Sheet Feeder0=No Change
1=Disable
2=Enable
19Lock0=No Change
1=Font Lock
2=Pitch Lock
3=Font and Pitch Lock
4=Font and Pitch Unlock
254=SIC Command Lock
254=SIC Command
Unlock
20FF Enable
(2480 only)
21TOF Read0=No Change
22Tractor0=No Change
23Tear Off0=No Change
0=No Change
1=Ignore FF
2=Honor FF
1=TOF Read Disable
2=TOF Read Enable
1=Tractor 1
2=Tractor 2
1=On
2=Off
3=One Second
0
1
2
0
1
2
0
1
2
0
1
2
0
1
2
0
1
2
3
4
5
6
0
1
2
0
1
2
0
1
2
0
1
2
00
01
02
00
01
02
00
01
02
00
01
02
00
01
02
00
01
02
03
04
05
06
00
01
02
00
01
02
00
01
02
00
01
02
26
Section 2: Set Initial Conditions (SIC) Command
Page 27
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 primary and secondary font selection.
The first 32 characters of the Standard ASCII table are control codes. This
printer uses the following control codes.
Code
Name
NullNULNull character.000
SymbolDescription
Section
Value
(Dec)
3
Value
(Hex)
Sound
Beeper
Backspace BSCauses the printer to move the current
Horizontal
Tab
Line Feed LFAdvances the paper one line on the page. 100A
Vertical TabVTMoves the paper to the next vertical
Form Feed FF
BELSounds the printer beeper for
HTMoves the printhead to the horizontal
approximately 1 second.
print position one character position to the
left.
tabulation stops.
tabulation stop set with the printer
command Set Vertical Tabulation Stops
(ESC B).
Advances the paper to the top of the next
page and does a carriage return.
Section 3: IBM Emulation Mode Printer Commands
707
808
909
110B
120C
27
Page 28
Code
Name
SymbolDescription
Value
(Dec)
Value
(Hex)
Carriage
Return
DoubleWide
Printing by
Line
Condensed
Printing
Select
Printer
Select 10
cpi
Deselect
Printer
Cancel
DoubleWide
Printing by
Line
Cancel
Data
CRMoves the current print position to the left
margin of the current line.
SOPrints all characters in double-width
mode.
SICondenses printing from 10 characters per
inch (cpi) to 17.1 and 12 cpi to 20.
DC1Selects the printer.1711
DC2Returns condensed printing to normal (10
cpi)
DC3Signals the printer to stop accepting data
from the computer. This control code has
no effect on the parallel interface.
DC4Cancels double-width printing mode and
returns printing to normal.
CANClears current line buffer of data already
received to print on the current line since
last Form Feed, Line Feed, Carrier Return,
or Cancel.
130D
140E
150F
1812
1913
2014
2418
SpaceSP
Moves the print position one character
space to the right.
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 signalling that the information that follows is
control information and not data to be printed.
Printer Command Parameters
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
3220
28
Section 3: IBM Emulation Mode Printer Commands
Page 29
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.
Command Structure
The printer commands use ASCII; the decimal and hexadecimal digits are
shown for your convenience.
Most commands have the following structure (spaces have been added for
readability; do not include spaces when you type the command):
ESC& a n C data
&Parameterized character from ASCII table range 33-47 decimal.
aGroup character from ASCII table range 96-126 decimal that
specifies a group type of control.
nValue within specified numeric range, from ASCII table range
48-57, 45, 46 decimal. If a value is not specified, a value of 0
is assumed.
CTermination character fr om ASCII table range 64-90
(47-122 w/chaining) decimal.
dataBinary 8-bit data (from graphics, and so on). The value field
specifies the number of bytes of binary data.
Section 3: IBM Emulation Mode Printer Commands
29
Page 30
Example of IBM Emulation Mode Printer Command
Select Code Page (
(A short description of the command follows)
This command placed before the first character changes the active code page.
(The printer command format follows with the decimal and hexadecimal values).
The digits 4 0 0 0 (decimal), 04 00 00 00 (hexadecimal) are constants.
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.
• Code page information begins on page 188.
Related commands list other commands that can or should be used with the
printer command being described.
Usage Notes give additional information for that command, such as:
•how the command reacts with other commands
•any other command that is required, or that supplements the command
•how the datastream is affected by the command
Pay attention to the uppercase (capital letter) and the lowercase letters. If the
format shows an uppercase letter, enter the command with an uppercase letter.
If the letter in the command format is lowercase, enter it as lowercase. The
printer looks at the uppercase and lowercase letters as separate command
instructions.
The uppercase letter O is different from the numeral 0 (zero). Notice that the
uppercase O is wider and rounder than the zero. To help you with this distinction, the text that describes the command shows the numeral 0 and also spells
out zero.
The digits 4 0 0 0 (decimal), 04 00 00 00 (hexadecimal) are constants.
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
Section 3: IBM Emulation Mode Printer Commands
33
Page 34
the code page number, then divide by 256.
• Code page information begins on page 188.
Print From Code Page
Continuously Print Characters from a Code Page
Use this command to print characters from the all Characters Chart of a Code
Page (see “Printing a Code Page” on page 204).
FormatESC \LnHnn1.....nn
Decimal2792LnHnn1.....nn
Hex1B5CLnHnn1.....nn
Ln Hn
Ln (low number) and Hn (high number) identify the number of characters that
you want to print.
See below for ways to calculate this variable.
n1 n2 n3......nn
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
substitute the decimal or hexadecimal digit for that character.
Use the code page tables for the decimal or the hexadecimal digit (see “Code
Pages” on page 187).
• Locate the character on the code page table.
• Use the decimal or hexadecimal digit for that character in the printer command format.
Usage Notes
To print less than 256 characters:
• Hn is 0.
• Ln is the number of characters you want to print.
To print more than 256 characters:
• Divide the number of characters you want to print by 256.
—The result is Hn.
—The remainder is Ln.
You must input a decimal or hexadecimal digit for each character
(n1.....nn) you want to print. The decimal and hexadecimal digits are
34
Section 3: IBM Emulation Mode Printer Commands
Page 35
located in the code page tables beginning on page 188.
Print One Character
Use this command to print a character from the All Characters Chart of a Code
Page (see “Code Pages” on page 187).
FormatESC ^n
Decimal2794n
Hex1B5En
Usage Note
Substitute the decimal or hexadecimal digit of the character you want to print
for the variable n.
Download a Character Set
This command downloads a character set to the printer and starts a character
font image download. Up to 256 consecutive characters can be downloaded in
each ESC = sequence.
To download fonts, download must be enabled in the Setup menu.
FormatESC =count low/high idstart low/high data
Decimal2761count low/high idstart low/high data
Hex1B3Dcount low/high idstart low/high data
Usage Notes
count low/count high
The number of bytes of data being downloaded starting with the printer id byte.
id
A 1-byte number identifying the printer.
Printer
2480 Plus
2481 Plus
2490 Plus
2491 Plus
DecHex
182B6
184B8
183B7
185B9
Section 3: IBM Emulation Mode Printer Commands
35
Page 36
start low/start high
When character data is downloaded, the start address is the absolute address of
the start of the character data. When the lookup table data is downloaded, the
start address is the address of the new entry in the lookup table.
data
Character data from the character design, or lookup table data.
Select Global Font
This command allows you to vary the font and pitch typestyle within a file.
• If Font Lock and Pitch Lock are active, this command is ignored.
• The Hf and Lf variables identify the pitch and font typestyle you want to
print. Tables 1 and 2 on page 37 describe the Hf and Lf variables. To use
the tables:
1 Locate the type style (pitch and font) you want in the left column (Pitch).
2 For the decimal digits for Hf Lf, look across the row to the second
through fifth columns (depending on the typestyle you want to print).
3 For the hexadecimal digits for Hf Lf, look across the row to the sixth
through ninth columns (depending on the typestyle you want to print).
4 Substitute these digits for Hf Lf in the printer command syntax.
• The size parameters (Hs, Ls and Sm) are valid when the pitch and font
typestyle variables (Hf and Lf) are not valid and the size modifier parameter (Sm) is 1 (decimal) or 01 (hexadecimal). Table 3 on page 39 specifies the
pitch for valid size parameters. Other valid sizes for Sm include:
1 00 - No change
2 01 - Width is measured in 0.018 mm (1/1440 in.)
3 02, 03 - Font is porportional
4 All other values are regarded as 0.
• The Hc and Lc variables identify the Code Page you want to use. (See
Table 4 on page 39.)
36
Section 3: IBM Emulation Mode Printer Commands
Page 37
Table 1. 248x: Select Global Font
Pitch
Normal BoldItalicBold/Ital Normal BolditalicBold/Ital
• For 2480 printers, the value of n can be any of the following:
DecimalHex
000No Change
1 to 6301 to 3FFast Draft
64 to 12740 to 7FDraft
128 to 25480 to FENear Letter Quality
255FFDefault Quality
• For 2490 printers, the value of n can be any of the following:
DecimalHex
000No Change
1 to 6301 to 3FFast Draft
64 to 12740 to 7FDraft
128 to 19180 to BFLetter Quality
192 to 254CO to FEEnhanced Letter Quality
255FFDefault Quality
48
Section 3: IBM Emulation Mode Printer Commands
Page 49
Graphics Print Modes
Normal Density Bit Image Graphics
Use this command to print normal density bit images at 60 dots per inch (dpi)
horizontally and 72 dpi vertically.
• Ln and Hn identify the number of bytes in data.
To print less than 256 bytes:
—Hn is 0.
—Ln is the number of bytes you want to print.
To print more than 256 bytes:
—Divide the number of bytes you want to print by 256.
—The result is Hn.
—The remainder is Ln.
• data is the bit-mapped graphics information.
Each vertical dot column can have 8 rows of dots. To print bit image graphics,
the printer uses either the first 8 (248x) or 20 (249x) wires of the printhead to
map the eight bits of data. The following table shows how the print wires are
mapped for the 249x printer:
Bit NumberBinary ValuePrint Wires
7128
6 64
5 32
4 16
3 8
1, 2
If dots 7 and 6 print, wire 3 is also used
4, 5
6, 7
If dots 5 and 4 print, wire 8 is also used.
9, 10
11, 12
If dots 3 and 2 print, wire 13 is also used.
Section 3: IBM Emulation Mode Printer Commands
49
Page 50
Bit NumberBinary ValuePrint Wires
2 4
1 2
0 1
14, 15
16, 17
If dots 1 and 0 print, wire 18 is also used.
19, 20
Mode and Horizontal Density (249x Only)
For 249x printers only.
Use this command to select the mode and horizontal density for dot matrix
• Ln and Hn identify the number of bytes in mode and data.
To print less than 256 bytes:
—Hn is 0.
—Ln is the number of bytes you want to print, plus 1 for the mode byte.
To print more than 256 bytes:
—Divide the number of bytes you want to print (plus 1 mode byte) by
256.
—The result is Hn.
—The remainder is Ln.
• mode is the vertical wire count and the horizontal density in dots per inch.
Select mode from the following table.
• Ln and Hn identify the number of bytes in data.
To print less than 256 bytes:
—Hn is 0.
—Ln is the number of bytes you want to print.
To print more than 256 bytes:
—Divide the number of bytes you want to print by 256.
—The result is Hn.
—The remainder is Ln.
• data is the bit-mapped graphics information.
Section 3: IBM Emulation Mode Printer Commands
51
Page 52
Dual-Density Bit Image Graphics (Normal Speed)
Use this command to print dual-density bit images at 120 dpi horizontally and
72 dpi vertically.
• Ln and Hn identify the number of bytes in data.
To print less than 256 bytes:
—Hn is 0.
—Ln is the number of bytes you want to print.
To print more than 256 bytes:
—Divide the number of bytes you want to print by 256.
—The result is Hn.
—The remainder is Ln.
• data is the bit-mapped graphics information.
High-Density Bit Image Graphics
Use this command to print high-density bit images at 240 dpi horizontally and
72 dpi vertically.
• Ln and Hn identify the number of bytes in data.
To print less than 256 bytes:
—Hn is 0.
—Ln is the number of bytes you want to print.
To print more than 256 bytes:
—Divide the number of bytes you want to print by 256.
—The result is Hn.
—The remainder is Ln.
• data is the bit-mapped graphics information.
52
Section 3: IBM Emulation Mode Printer Commands
Page 53
Horizontal Movement
Set Horizontal Tabulation Stops
This command sets up to 28 tabulation stops to be used with the printer
command HT, Horizontal Tabulation.
FormatESC Dtab stops 0
Decimal27680 n1.....n28 0
Hex1B44n1.....n28 00
Usage Notes
n1.....n28 is used to set the tabulator stop positions.
• ESC D is terminated by a 0 entry.
• The first tabulation stop is at the leftmost column.
• Input the tabulation stops (n1.....n28) in ascending numerical order.
• ESC D 0 clears all existing horizontal tab stops.
• The printer command ESC R resets to the default horizontal tabulation
stops, which are set at every eight positions beginning at column 9 (9, 17,
25, and so on).
• The printer command HT, Horizontal Tabulation, activates the tabulation
stops set by this printer command.
Set Default Tabulation Stops
This command sets the tabulation stops to the default settings. The default
tabulation stops are set to every 8 columns, beginning at column 9 (9, 17, 25, and
so on).
FormatESC R
Decimal2782
Hex1B52
Usage Notes
• ESC R clears all vertical tabulation stops.
• To set user-defined tabulation stops, use printer command ESC D.
Section 3: IBM Emulation Mode Printer Commands
53
Page 54
Set Horizontal Margins
This command sets the left and right margins.
FormatESC Xn1n2
Decimal2788n1n2
Hex1B58n1n2
Usage Notes
• Use n1 to select the left margin position.
• Use n2 to select the right margin position.
• Margins are specified in the character positions at the current pitchand ar e
stored in absolute displacement from the left edge of the paper.
• The values for n1 and n2 must be between 0 and 255. If the value is set at 0,
the margin is left unchanged.
Move Current Print Position
This command moves the current print position to the right in increments of
1/120 inch.
• m3 and m4 designate the denominator (the lower number) of a two-part
fraction. The fraction can be 1/180, 1/216, or 1/360, and indicates the fraction of an inch at which line feed spacing increments .
m3 (Hex)m4 (Hex)Denominator
D8H00H216
B4H00H180
68H01H360
Vertical Tabulation
Set Vertical Tabulation Stops
Sets as many as 64 tabulation stops by line number.
FormatESC Btab settings 0
Decimal2766n1.....n64 0
Hex1B42n1.....n6400
Usage Notes
• Use ESC B to set the tabulation stops and to advance paper to the next vertical tabulation stop (VT) to activate them.
56
Section 3: IBM Emulation Mode Printer Commands
Page 57
• ESC R (Set Default Tabulation Stops) and ESC B 0 will clear all vertical tab
stops.
• Set the tabulation stops in ascending order (n1.....n64).
• The last digit in the sequence must be a 0 to terminate the command.
Line Spacing
Set Line Spacing to 1/8 Inch
This command (ESC zero) sets the line spacing at 1/8 inch between each line,
which is 8 lines per inch (lpi).
FormatESC 0
Decimal2748
Hex1B30
Set Line Spacing to 7/72 Inch
This command sets the line spacing at 7/72 inch between each line, which
is 10.3 lpi.
FormatESC 1
Decimal2749
Hex1B31
Activate Line Spacing for Text
This command activates the line spacing designated by the Set Line Spacing for
Text (ESC A) printer command.
FormatESC 2
Decimal2750
Hex1B32
Section 3: IBM Emulation Mode Printer Commands
57
Page 58
Set Line Spacing for Text
This command sets line spacing in n/72 inch increments. To activate the line
spacing, use the printer command Activate Line Spacing for Text (ESC 2).
FormatESC An
Decimal2765n
Hex1B41n
Usage Note
The value for n must be between 1 and 85.
Set Line Spacing for Graphics
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.
FormatESC 3n
Decimal2751n
Hex1B33n
Usage Notes
• The number can be from 0 to 255 (decimal), 00 to FF (hexadecimal).
• n must be a multiple of 3 to advance exactly n/216 inches.
Porportional Space Mode
This command turns porportional space mode on and off.
FormatESC Pn
Decimal2780n
Hex1B50n
Usage Notes
• Porportional spacing is ON when n is set to 0 (decimal) or 00 (hexadecimal).
• Porportional spacing is OFFwhen n is set to 1 (decimal) or 01 (hexadecimal).
58
Section 3: IBM Emulation Mode Printer Commands
Page 59
Set Top of Form and Page Length
Set Top of Form
This command sets the first line of printing on each page to the current paper
position.
FormatESC 4
Decimal2752
Hex1B34
Set Page Length in Inches
This command sets the page length to a specified number of inches.
FormatESC C 0inches
Decimal2767 0n
Hex1B4300n
Usage Notes
• The value of n is the number of inches you want to set as the page length
and must be between 1 and 255.
• When the command is sent, the current vertical position becomes the new
top of form.
• If the printer command Set Skip Perforation (ESC N) is active, or if "skip
over perforation" is On in the printer setup, this printer command deactivates it.
Set Page Length in Lines
This command sets the page length to a specified number of lines.
FormatESC Clines
Decimal2767n
Hex1B43n
Usage Notes
• The value of n is the number of lines you want to set as the page length and
works in conjunction with the current line spacing (ESC A).
Section 3: IBM Emulation Mode Printer Commands
59
Page 60
• When the command is sent, the current vertical position becomes the new
top of form.
• If the printer command Set Skip Perforation (ESC N) is active, or if "skip
over perforation" is On in the printer setup, this printer command deactivates it.
Set Skip Perforation
This command specifies the number of lines to be skipped at the bottom of each
page, which creates a bottom margin.
FormatESC Nlines
Decimal2778n
Hex1B4En
Usage Notes
• This command remains in effect until:
—Cancel Skip Perforation (ESC O) printer command is received.
—Set Page Length in Lines (ESC C) printer command is received.
—Set Page Length in Inches (ESC C 0) printer command is received.
• Valid values for n are 1 through 255 (decimal), 01 through FF
(hexadecimal).
• To cancel this printer command, use Cancel Skip Perforation (ESC O).
Cancel Skip Perforation
This command cancels Set Skip Perforation (ESC N).
FormatESC O
Decimal2779
Hex1B4F
60
Section 3: IBM Emulation Mode Printer Commands
Page 61
Printer Control
Deselect Printer
When this command is sent, the printer ignores all data except DC1 .
FormatESC Qn
Decimal2781n
Hex1B51n
The following values of n are valid:
ModelDecHex
2480
2481
Mode
Setting
303ON
182B6OFF
2216ON
184B8OFF
2490
2491
Setup Barcode Parameter
This command sets the barcode parameters to the printer.
FormatESC [f6 0 k ms v1v2c
Decimal2791102 6 0 k ms v1v2c
Hex1B5B660600 k ms v1v2c
Usage Note
The printer must receive this command prior to the barcode data command.
23H
B9H
24H
B7H
Section 3: IBM Emulation Mode Printer Commands
61
Page 62
The barcode type is denoted by k. The following values are valid for k:
k
Barcode Type
DecHex
177B1
178B2
179B3
180B4
181B5
182B6
183B7
184B8
185B9
186BA
<reserved>
EAN-13
EAN-8
CODE 39
<reserved>
INTERLEAVED 2 of 5
UPC-A
<reserved>
POST-NET (barcode)
CODE 128
Module width is denoted by m. When m is 1, the barcode prints by
1/360 or 1/240 full dot method. For all other values, the barcode prints by half
dot method. The suggested values for m are as follows:
62
m
DecHex24 wire9 wire
0000.015 in.0.021 in.
1010.012 in.0.017 in.
2020.015 in.0.021 in.
3030.021 in.0.030 in.
4040.026 in.0.038 in.
Unit Module
Dots
The variable s denotes the space width adjustment and affects the barcode
printing width. The value for s may range from 3 (03 hex) to -3 (FD hex),
however, 0 is the default value. The adjustment unit for 24 wire printers is
1=1/360 in. and for 9 wire printers the unit is 1=1/240 in.
The variables v1 and v2 control the bar length. The minimum value of v1, v2 is
288 dec (24 wire) and 270 (9 wire).
Section 3: IBM Emulation Mode Printer Commands
Width
Page 63
The variable c denotes the control code. The control is made up of 8 bits
(b1 - b8). The 8 bits are defined as follows:
b1Check Digit
b2Human Readable Character (0: print On, 1: print Off)
b3EAN-13, UPC-A flag character position (0: Center, 1: Under)
b4 -b8 Not used
Setup Barcode Data
This command sets the barcode data on the current printing position. .
• The printer must receive the ESC [ f command prior to the ESC [ p command.
• The barcode prints after the printer receives the LF line feed command.
Command length is denoted by n1 and n2. The following values are valid for n1 and n2 when the automatic check digit generation flag is on and when it is
off:
Automatic Check Digit Generation Flag Off
n1 (low byte)n2(high byte)
Barcode Type
DecHexDecHex
130D000
808000
1 to 25501 to FF000
1 to 25501 to FF000
120C000
100A000
2 to 25502 to FF000
EAN-13
EAN-8
CODE 39
INTERLEAVED 2 of 5
UPC-A
POST-NET (barcode)
CODE 128
Section 3: IBM Emulation Mode Printer Commands
63
Page 64
Automatic Check Digit Generation Flag On
n1 (low byte)n2(high byte)
DecHexDecHex
Barcode Type
120C000
707000
1 to 25501 to FF000
1 to 25501 to FF000
110B000
909000
2 to 25502 to FF000
EAN-13
EAN-8
CODE 39
INTERLEAVED 2 of 5
UPC-A
POST-NET (barcode)
CODE 128
64
Section 3: IBM Emulation Mode Printer Commands
Page 65
Epson Emulation
Mode Printer
Commands
This section provides tables describing Epson mode commands you can use
with your printer.
Sets additional space to the right of each
character, which is added to the original
space alloted to the character cell, n/120
inch. n can be a value of 0 to 127.
Select Print Style
Selects the print style as indicated in the
n parameter. See the table on page 70 for
the print styles available.
Begin or End Continuous Underline
n=0 End
n=1 Begin
ESC p27 112 n1B 70 n
ESC S27 83 n1B 53 nBegin Superscript or Subscript
ESC T27 841B 54End Superscript or Subscript
Section 4: Epson Emulation Mode Printer Commands
Proportional Spacing Mode
n=0 End
n=1 Begin
n=0 Superscript
n=1 Subrscript
69
Page 70
NameDecHexDescription
ESC a27 97 n1B 61 n
ESC w27 119 n1B 77 n
DEL127 7FDelete Text
Select Justification
n=0 prints the line of characters against
the left margin.
n=1 centers the line of characters
between the left and right margins.
n=2 prints the line of characters against
the right margin.
n=3 causes lines of characters to be
printed evenly along both the left
and right edges when the buffer
becomes full.
Begin or End Double-high Printing
n=0 End
n=1 Begin
Deletes the text character at the end of a
print line.
The following table lists the n parameters for the ESC ! command.
60ESC K
120ESC L
120ESC Y
240ESC Z
80None
72None
90None
144None
Equivalent Command
249x Graphic Modes include 0, 1, 2, 3, 4 and 6 from the 248x table above and the
following additional values of n in the ESC * command:
Dots per Inch
n=
32
33
38
39
40
Density
High resolution for ESC K
High resolution for ESC L
CRT-III Screen
High resolution, triple
density
High resolution, hex
density
(dpi)
60None
120None
90None
180None
360None
Equivalent Command
72
Section 4: Epson Emulation Mode Printer Commands
Page 73
Horizontal Movement
NameDecHexDescription
BS808Backspace
HT909Horizontal Tab
Moves left one space, based on pitch setting.
Moves right to the next horizontal tab stop. Tab is
set with the ESC D command.
ESC D27 68 0 n1
n2...n32 0
ESC $27 36 n1 n2 1B 24 n1 n2
CR130DCarriage Return
SP3220Space
ESC I27 108 n1B 6C n
ESC Q27 81 n1B 51 n
ESC \27 92 n1 n2 1B 5C n1 n2
1B 44 0 n1, n2...n32 00
Set Horizontal Tab Stops
Sets up to 32 tabs by column number (n1...n32) in
ascending order. The sequence ends with 0.
Set Absolute Print Position
Offsets the print position by an absolute distance
from the left margin. The formula for calculating
offset is: (n1 + (n2 x 256))/60 (inch).
Moves print position horizontally to the left
margin.
Moves print position one print column to the right.
Set Left Margin
Sets the left margin in character positions at the
current pitch.
Left margin=n (character) x cpi
Set Right Margin
Sets the right margin in character positions at the
current pitch.
Set Relative Position
Offsets the print position by the relative distance
from the current position.
Offset=(n1 + (n2 x 256))/120 (inch).
Section 4: Epson Emulation Mode Printer Commands
73
Page 74
Vertical Movement
NameDecHexDescription
LF100ALine Feed
VT110BVertical Tab
Advances the form one line.
Advances the paper to the next vertical tab stop.
ESC B27 66 0 n1
n2...n16 0
FF120CForm Feed
ESC J27 74 n1B 4A n
ESC j27 106 n1B 6A n
ESC b27 98 m
n1...n8 0
ESC Q27 81 n1B 51 n
ESC /27 47 n1B 2F n
1B 42 0 n1, n2...n16 00
1B 62 m n1...n8 00
Set Vertical Tab Stops
Sets up to 16 tab stops. The sequence ends with 0.
Advances the paper to the top of the next page.
Relative Move Base Line
Advances the paper by n/216 inches on 248x
printer; n/180 inches on 249x printer.
Reverse Relative Move Base Line
Feeds the paper by n/216 inches in the reverse
direction on 248x printer; n/180 inches in the
reverse direction on 249x printer.
Set Vertical Tabs in Channel
Sets vertical tab stops in specified channel by m.m must be a one-byte decimal value from 0 to 7.
Set Right Margin
Sets the right margin in character positions at the
current pitch.
Select Vertical Tab Channel
Line Spacing
NameDecHexDescription
ESC +27 431B 2BSet n/360 Line Spacing - 249x only
ESC 027 481B 30Set 1/8 Inch Line Spacing
ESC 127 491B 31Set 7/72 Inch Line Spacing - 248x only
ESC 227 501B 326 Lines Per Inch
74
Section 4: Epson Emulation Mode Printer Commands
Sets line spacing to eight lines per inch.
Sets line spacing to 7/72 lines per inch.
Sets line spacing to six lines per inch.
Page 75
NameDecHexDescription
ESC 327 51 n1B 33 n
ESC A27 651B 41Set n/72 Inch Line Spacing
ESC b27 98 m
n1...n16 0
Page Format
NameDecHexDescription
ESC C 027 67 0 m1B 43 00 m
ESC C27 67 n1B 43 n
1B 62 m n1...n8 00
Set Graphics Line Spacing - 248x only
Use a line spacing of 24/216 for bit-image graphics
using 8 bits. n must be a 1-byte decimal value from
0 to 255. To move exactly n/216 inch per line, n
must be an integer multiple of 3.
Set Graphics Line Spacing - 249x only
Sets line spacing to n/180 inches per line.
Sets line spacing to n/72 inch for subsequent line
feed command. The value of n must be between 0
and 85.
Set Vertical Tabs in Channel
Sets vertical tab stops in specified channel by m.
m must be a one-byte decimal value from 0 to 7.
Set Page Length to m Inches
Set Page Length to n Lines
ESC N27 78 n1B 4E nSet Skip Perforation
ESC O27 791B 4FCancel Skip Perforation
Printer Control
NameDecHexDescription
ESC s27 1151B 73Turn Half Speed Mode On/Off -248x only
ESC EM27 25 n1B 19 n
ESC B27 66 0 n1
n2...n16 0
FF120CForm Feed
1B 42 0 n1, n2...n16 00
Creates a bottom margin by skipping n lines. Valid
values of n are 0 through 255.
Cancels the skip perforation function.
Auto Sheet Feeder On/Off
n=0 Off
n=4 On
n=R Eject
Set Vertical Tab Stops
Sets up to 16 tab stops. The sequence ends with 0.
Advances the paper to the top of the next page.
Section 4: Epson Emulation Mode Printer Commands
75
Page 76
NameDecHexDescription
BEL707Beeper
Sounds the printer beeper for approximately 1
second.
DC11711Select Printer (XON)
The host sends this command to signal the printer
to begin printing data.
DC31913Null (XOFF)
CAN2418Cancel Data
Clears data received since the last buffer
terminator.
Resets the printer to its original state. (This
command is the same as ESC [K command in IBM
mode. See page 32.)
Resets the printer to user default settings after
downloading the string descriptor to the printer.
(This command is the same as ESC K command in
IBM mode. See page 32.)
Turns off the paper-out sensor to allow printing to
the end of a paper.
Cancels ESC 8.
Disables the control of the MSB value set by ESC =
or ESC >.
Page 77
NameDecHexDescription
ESC &27 38 0 n1
n2 d1 data
ESC :27 58 0 n 0 1B 3A 00 n
ESC <27 601B 3CSelect Left-to-Right Printing
ESC =27 611B 3DSet MSBs to Zero
ESC >27 621B 3ESet MSBs to One
ESC W27 87 n1B 57 n
ESC [f27 91 102 1B 5B 66 Setup Barcode Parameter
ESC [f27 91 112 1B 5B 70 Setup Barcode Data
1B 26 0 n1
n2 d1 data
00
Define Download Characers
Copy Normal Characters from ROM to RAM
Sets the MSBs of all data sent to the printer to 0.
Sets the MSBs of all data sent to the printer to 1.
Begin or End Continuous Double-Wide Printing
n=0 End
n=1 Begin
This command is the same as the ESC [f command
in the IBM mode. (See page 32.)
This command is the same as the ESC [p command
in the IBM mode. (See page 32.)
SI150FStart 17 cpi printing
SO140EBegin Double-Wide Printing by Line
ESC SO27 141B 0ESelect Double-Wide
ESC SI27 151B 0FSelect Condensed Mode
DC21812Cancel Condensed Mode
DC42014End Double-Wide Printing by Line
ESC :27 581B 3ASet 12 Pitch Font
Section 4: Epson Emulation Mode Printer Commands
77
Page 78
78
Section 4: Epson Emulation Mode Printer Commands
Page 79
OKI Microline
Emulation Mode
Printer Commands
This section provides tables describing OKI Microline mode commands you
can use with your printer.
Character Set
NameDecHexDescription
ESC ! 0 27 33 481B 21 30Select Standard Character Set
ESC ! 1 27 33 491B 21 31Select Block Graphics Character
ESC ! 2 27 33 501B 21 31Select Line Character Set
ESC ! n 27 33 n1B 21 n
Section
Set
Select an International
Character Set
n
Hex
Dec
64 40 USA
65 41 USA 2
66 42 British
70 46 Danish
72 48 Dutch
68 44 French
74 4A Fr. Canadian
67 43 German
73 49 Italian
76 4C Latin Am.
71 47 Norway
90 5A Publisher
75 4B Spaini
69 45 Swedish
RS301EPrint 10 Characters per Inch
FS281CPrint 12 Charaters per Inch
ESC g27 1031B 67Print 15 Charaters per Inch
GS291DPrint 17.1 Charaters per Inch
ESC # 327 35 511B 23 33Print 20 Charaters per Inch
ESC J27 741B 4AStart Superscript Printing
ESC K27 751B 4BStop Superscript Printing
ESC L27 761B 4CStart Subscript Printing
ESC M27 771B 4DStop Subscript Printing
ESC US311FBegin Double-Width Printing
ESC US 127 31 491B 1F 31Begin Double-Height Printing
ESC US 027 31 481B 1F 30End Double-Height Printing
ESC & 27 38 n1 n2
n3 n4 58
ESC Y27 891B 59Select Porportional Spacing
ESC Z27 901B 5ACancel Porportional Spacing
ESC N 27 78 n1B 4E n
1B 26 n1 n2 n3 n4 3A
Select Print Features
Selects print quality, character pitch and
other print features. See the Table 1 on
page 82 for the features applicable to
each variable and the value of each. To
calculate the total value of a variable,
add the values (column 1) of each
feature you want to use, and then add
that sum to the variable factor (bottom
row).
Note: You may enter any combination of
the variables (n1 to n4) in any order.
Adjusts the space between letters to
compensate for the varying widths of
individual characters.
Note: Available only with Near Letter
Quality (NLQ) and Draft printing.
Select Intercharacter Spacing
Adds additional spacing to the right of
each character. Valid values for n must
be between 0 and 11.
Selects the density and defines the speed and
"word size." For more information, see Table 2 and
Table 3 on page 84.
(Graphics)
(Text)
(Graphics)
83
Page 84
NameDecHexDescription
ETX ETX3 303 03Stored graphics data in one dot column buffer
Determines the graphics setting. In 7-bit mode, the
graphic setting is 14/144"; in 8-bit graphics mode,
it is 16/144"
Table 2. Density
n1
1
2
4
8
16
Dots per inch/Density
60 dpi
72 dpi
Single density
Double density
Quadruple density
To calculate the density (value for n1),
1 Locate the dpi and density you want from the above table.
2 Select the corresponding n1 values for each.
3 Add the values selected in step 2.
4 Add 96 to the total.
Example: For 60 dpi printing at quadruple density, calculate the value of n1 as follows: n1=1+16+96=113
Table 3. Speed and Word Size
84
n2
0
8
0
16
Speed/Word Size
Normal speed
Double speed
7-bit graphics
8-bit graphics
To calculate the speed and word size (value for n2),
1 Locate the speed you want from the above table.
2 Select the corresponding n2 value.
3 Locate the word size (7 or 8-bit graphics).
4 Select the corresponding n2 value.
If the value for the left margin is less than 3 digits,
use zeros for the first digit(s). Maximum margin
value is 899 (2480 printer model) or 999 (2481
printer model). Units are set at 1/120".
Set Right Margin
The right margin must be at least 60 units greater
than the left margin. If the value for the right
margin is less than 4 digits, use zeros for the first
digit(s). Maximum margin value is 0960 (2480
printer model) or 1632 (2481 printer model). Units
are set at 1/120".
Advances the printhead 8 columns to the right
before printing the next character.
Set Horizontal Tabs by Characters
Sets tab stops for up to 16 positions. The values for
x, y and z must be entered as three-digit ASCII
numbers (use leading zeros if necessary),
separated by commas, and in ascending order.
Maximum values are as follows:
Sets tab stops for up to 16 positions. The character
pitch determines the distance represented by the
tab (distance from the center of one dot to the
center of the next dot).
Pitch
Shift Increment
10 cpi 1/120
12 cpi 1/144
15 cpi 1/180
17.1 cpi 1/206
20 cpi 1/240
The values for x, y, z and w must be entered as
four-digit ASCII numbers (use leading zeros if
necessary), separated by commas, and in
ascending order.
To calculate the value, multiply the position for
which you want to set a tab by the pitch increment
of shift, and then subtract one from the product.
For example, to set a tab for 2" from the left margin
using 12 cpi pitch, multiply 2 by 144, and then
subtract 1. The value would be 0287.
Maximum values are as follows:
Pitch
2480
2481
10 cpi 959 1631
12 cpi 1151 1956
15 cpi 1339 2447
17.1 cpi 1643 2795
20 cpi 1917 3261
86
ESC HT CR27 9 131B 09 0DESC HT CR
Clears horizontal tabs set by character spacing.
ESC % B27 37 66 n1
n2 n3 n4
1B 25 42 n1
n2 n3 n4
Indent from Left Margin
See the command ESC ETX ... CR on page 86 for
instructions on calculating the value for n1...n4.
(Use the same pitch increment of shift values as the
ESC ETX ... CR command.)
Moves the print position to the right or left, as an
absolute or relative print position.
pN=0 to 127
a1=0 (absolute print position)
a1=1 (relative print position)
a2=0 (move to the left (backward))
a2=1 (move to the right (forward))
The character pitch determines the distance
represented by the tab (distance from the center of
one dot to the center of the next dot).
Pitch
Shift Increment
10 cpi 1/120
12 cpi 1/144
15 cpi 1/360
17.1 cpi 1/411
20 cpi 1/480
The values for p1, p2, p3 and p4 must be entered as
four-digit ASCII numbers (use leading zeros if
necessary), separated by commas, and in
ascending order.
To calculate the value, multiply the position for
which you want to set a tab by the pitch increment
of shift, and then subtract one from the product.
For example, to set a tab for 2" from the left margin
using 12 cpi pitch, multiply 2 by 144, and then
subtract 1. The value would be 0287.
Maximum values are as follows:
Pitch
2480
2481
10 cpi 959 1631
12 cpi 1151 1956
15 cpi 1339 2447
17.1 cpi 1643 2795
20 cpi 1917 3261
ESC % F27 37 70 n1
n2 n3 n4
1B 25 46 n1
n2 n3 n4
Move to the Left
See the command ESC ETX ... CR on page 86 for
instructions on calculating the value for n1...n4.
(Use the same pitch increment of shift values as the
ESC ETX ... CR command.)
ESC % E27 37 69 n1
n2 n3 n4
1B 25 45 n1
n2 n3 n4
Move to the Right
See the command ESC ETX ... CR on page 86 for
instructions on calculating the value for n1...n4.
(Use the same pitch increment of shift values as the
ESC ETX ... CR command.)
ESC DC227 181B 12Graphics Line Feed (without carriage return)
Advances the form one line without returning to
the left margin. Allows you to overstrike a line of
printing and to create special effects like double
underlines.
88
ESC ? n :27 63 n 58 1B 3F n 3A Carriage Return/Feed Selection
Value of n Operation
33 Carriage return only
34 Forward line feed, no carriage return
35 Forward line feed w/carriage return
48 Reverse line feed, no carriage return
49 Reverse line feed w/carriage return
ESC % 5 n 27 37 53 n 1B 25 35 n
Perform n/144" Line Feed
0 < n < 127
ESC VT 27 11 H
n Ln
1B 0B H
Skip Down Select Number of Lines
n Ln
ESC LF27 101B 0AReverse Line Feed
ESC 627 541B 36Set Line Spacing to 1/6"
ESC 827 561B 38Set Line Spacing to 1/8"
ESC % 927 37 57 n 1B 25 39 n
Programs up to 12 sets (channels) of vertical tabs.
The maximum tab stops in one set (channel) is 27.
This command works in conjunction with the VT
command followed by a channel code (n). When
the VT command is received, the printer skips to
the next tab stop in that channel.
To set your tabs, follow the DC4 code with one SP
code for each line to be skipped in order to
advance to the line where you want your first tab
stop. For example, the command
causes the printer to skip 3 lines, enters a tab stop
at 5, skips 1 line, enters a tab stop at 12, skips 2
lines, enters a tab stop at 20, and then skips
however many lines remain on the page.
Vertical Tab
Advances the paper to the next vertical tab stop.
Valid channel codes are 49 through 60.
The printer interface is the physical connection point between the printer and
other devices, such as a computer. The 2400 series printer offers a choice of
three printer interfaces: parallel, Universal Serial Bus (USB), or serial.
Use the parallel interface and parallel cable if you are attaching the printer to a
personal computer’s parallel port.
Use the USB interface and USB cable when you are attaching the printer to a
personal computer’s USB port.
Use the serial interface and serial cable when you:
• share the printer using a printer sharing device.
• need to connect the printer to a computer that does not have a parallel
port, or to a computer that does not have an available parallel port.
Parallel Interface
Use Lexmark parallel cable 1329605 (3 m or 10 ft.) or 1427498 (6.1 m or 20 ft.).
Section
6
The parallel cable must be IEEE 1284-compliant and must support two-way
(bidirectional) communications printing
The parallel interface sends 8 bits (one byte) of data at one time and is
transistor-transistor logic (TTL) compatible.
Parallel Interface Voltage Levels
The maximum voltage level for control or data lines is +5.2 volts.
A control or data line is:
• High, if the voltage is greater than +2.4 volts.
• Low, if the voltage is less than +0.8 volts.
Section 6: Using the Printer Interface
91
Page 92
Computer to Printer Communication
The parallel interface transfers data from computer to printer. The data path is 8
bits wide. The printer and the computer synchronize data transfer with the
interface signals STROBE*, ACKNLG*, and BUSY.
When the computer is ready to send a byte of data to the printer, the computer
puts the byte of data on the data lines. Then the computer sends a STROBE*
(low) pulse to the printer. The printer responds with a BUSY (high) signal.
After the printer receives the data, the printer pulses the ACKNLG* (low) line.
This signals the computer that the printer has read the byte of data into printer
memory. If the printer buffers are not full and the printer can receive more data,
the printer removes the BUSY (low) signal.
92
Section 6: Using the Printer Interface
Page 93
Pin Connections
The following illustration shows the pin assignments for connecting the 25-pin
connector to the 36-pin connector.
Lexmark Parallel Cables
P/N 1329605 (10 ft.)
P/N 1427498 (20 ft.)
Computer
STROBE
DATA 0
DATA 1
DATA 2
DATA 3
DATA 4
DATA 5
DATA 6
DATA 7
ACKNLG*
BUSY
PE
SLCT
AUTO FEED
ERROR*
INIT*
SLCTIN*
GROUND
GROUND
GROUND
GROUND
GROUND
GROUND
GROUND
GROUND
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Shield
1
2
3
4
5
6
7
8
9
Printer
1
STROBE
2
DATA 0
3
DATA 1
4
DATA 2
5
DATA 3
6
DATA 4
7
DATA 5
8
DATA 6
9
DATA 7
10
ACKNLG*
11
BUSY
12
PE
13
SLCT
14
AUTO FE ED
15
N/C
16
0 VOLTS
17
N/C
18
N/C
19
GROUND
20
GROUND
21
GROUND
22
GROUND
23
GROUND
24
GROUND
25
GROUND
26
GROUND
27
GROUND
28
GROUND
29
GROUND
30
GROUND
31
INIT*
32
ERROR
33
GROUND
36
SLCTIN*
Lexmark compliant cables are supported up to 20 feet.
Shield
Section 6: Using the Printer Interface
93
Page 94
Parallel Pin Assignments
PinLineDescription
1STROBE*When the printer receives the STROBE* low from the
computer, the printer reads the data from the interface and
sets the BUSY line high. STROBE* must not occur when the
BUSY line is high; otherwise, unpredictable results may occur.
2-9DATAThese signals are the 8 bits of parallel data sent from the
computer. A high level indicates a logical 1. A low level
indicates a logical 0. The printer reads data from the DATA
lines when a STROBE* pulse is received.
10ACKNLG*The ACKNLG* pulse tells the computer that the data from the
previous STROBE* pulse has been read. An ACKNLG* pulse
is also generated when the printer is turned on, or at the
completion of the printer initialization by an INIT* requested
from the computer.
11BUSYWhen the printer sets BUSY high, it cannot receive data. The
BUSY line goes high in response to a STROBE* pulse. This line
remains high until the data is read. BUSY is also high when:
• The receive buffer is full.
• An out-of-paper condition occurs.
• The printer receives an INIT* signal.
• Start/Stop is pressed to go offline.
• A printer error condition has occurred.
• The printer is initializing.
12PEThe printer sets Paper End (PE) high when approximately
12.7 mm (0.5 in.) of paper remains in the printer. PE remains
high until the operator loads paper and presses Start/Stop.
13SLCTWhen the printer is ready, it sets the SLCT line high.
The SCLT lines go low when:
• Start/Stop is pressed to go offline.
• There is an error or out-of-paper condition.
• The printer receives an ESC Q. It ignores all incoming data
except DC1, which returns the printer to a select state.
14AUTO
FEED XT
15Not used.
16GNDLogic ground.
17CHASSIS
GROUND
18+5 voltsMaximum 300 mA.
19-30GNDGround level.
* Inverted logic (signal is active when low).
The printer executes one line feed when this signal,
in Epson** mode
Ground level.
, is low.
valid only
94
Section 6: Using the Printer Interface
Page 95
Timing
PinLineDescription
31INIT*INIT* from the system resets the printer to its initial power-
on-state. The BUSY line goes high, and any received data is
printed. When INIT* goes low, the printer resets to the poweron default state. If data is in the USB buffer, the USB FIFO is
not reset.
32ERROR*The printer sets the ERROR* line low if the printer detects an
error or out-of-paper condition.
A critical error condition exists when both ERROR* and PE
are low.
33GNDGround level.
34-35Not used.
36SELECT INThe printer does not respond to the DC1/DC3 code when this
signal,
* Inverted logic (signal is active when low).
valid only in Epson mode
, is low.
The following chart shows the timing in microseconds of these signals.
Section 6: Using the Printer Interface
95
Page 96
Universal Serial Bus Interface
The USB interface, with a signaling bit rate of 12 Mb/s (full speed), is in full
compliance with the Universal Serial Bus Specification Revision 1.0. It has a
USB Function Controller with two FIFO-based Endpoints:
• One bidirectional Control Endpoint 0 (8 bytes)
• One receive Endpoint 1 (1*64 bytes)
Serial Interface
You may want to use the serial interface when you need to use a cable more
than 6 m (20 ft.) in length, share the printer using a printer sharing device, if you
need to connect the printer to a computer that does not have a parallel port, or
to a computer that does not have an available parallel port.
Use the RS-232C protocol if the printer is more than 6 m (20 ft.) from the
computer.
Serial Interface Option
The Lexmark serial interface, part number 12T0154, supports the RS-232C
protocol. All serial interface parameters can be selected by the operator panel.
The serial interface installs internally into the back of the printer, and connects
to the serial cable, part number 1038693.
How to Connect the RS-232C Serial Interface
To connect the serial interface, use the following cable:
• Lexmark Part Number 1038693 (15.24 m or 50 ft.)
96
Section 6: Using the Printer Interface
Page 97
Serial Cable Pin Assignments (RS-232C)
The following illustration shows the RS-232C serial cable:
25-Pin
Male
13
1
Serial Adapter SideComputer Side
RS-232C Serial Connector Pin Assignments
PinSignalDescription
2TXD
(Transmit Data)
25
14
This line transmits data from the printer to the host. The data
characteristics are specified by the function menu settings which are
read only during a Power On Reset (POR). The only data
transmitted are XON (x’11’) and XOFF (x’13’) signals. Transmission
occurs only when CTS is high.
25-Pin
D-shell
Female
14
25
13
1
3RXD
(Receive Data)
4RTS
(Request to Send)
5CTS
(Clear to Send)
6DSR
(Data Set Ready)
20DTR
(Data Terminal Ready)
This line receives data from the host. The serial interface accepts
data only when DSR is On.
This line is set high and remains high even after the serial interface
finishes its POR.
This line is monitored only if the XON/XOFF protocol is selected
because transmission occurs only when CTS is high.
DSR is another method of providing data integrity. Data is accepted
only when DSR is high.
This line is set high after the serial interface finishes its POR
sequence. However, if you select DTR pacing handshake protocol,
this line is used to indicate to the host whether or not the printer is
ready to receive any more data.
Section 6: Using the Printer Interface
97
Page 98
Serial Interface Cable (RS-232C)
The recommended RS-232C serial cable is 50 feet long. This cable works with
the IBM PS/2 series and other compatible host systems using a 25-pin male
connector. The maximum total capacitance of the cable and the connector
should be less than 2500 pF, or it will delay the signal transition by more than
4%.
Following is a diagram of the serial cable (Lexmark part number 1038693 (15.24
m or 50 ft.)).
98
Section 6: Using the Printer Interface
Page 99
Using an IBM AT Personal Computer (RS-232C)
If you are using an IBM AT or compatible computer, use a 9-pin to 25-pin EIA
RS-232C cable.
We recommend one of the following for a 9-pin to 25-pin cable:
• IBM P/N 6450242 (254 mm or 10 in.)
• IBM P/N 6450217 (3 m or 10 ft.)
The following illustration shows the pin assignments for the 9-pin to 25-pin
RS-232C serial cable.
IBM 9-Pin to 25-Pin AdaptersLexmark Null Modem Serial Cable
6450242 (254 mm or 10 in.) 1038693 (15.24 m or 50 ft.)
6450217 (30.4 m or 10 ft.)
DCD
RXD
TXD
DTR
GND
DSR
RTS
CTS
RI
9 (F)
Shield
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
20
22
25 (M)
TXD
RXD
RTS
CTS
DSR
GND
DCD
DTR
2
3
4
5
6
7
8
20
25 (F)
Shield
Serial Communication Parameters (RS-232C)
The acceptable values for serial communications parameters follow.
1
2
3
4
5
6
7
20
25 (M)
F. GN D
TXD
RXD
RTS
CTS
DSR
L. GND
DTR
Voltage Level Range
The maximum voltage level range for control lines or data lines is from
± 25 positive V dc to ± 25 negative V dc.
Section 6: Using the Printer Interface
99
Page 100
The voltage reference point is the signal ground on pin 7. A timing or control
line is active if the voltage is more than +3 V, or inactive if the voltage is less
than -3 V.
A data signal more than +3 V means that the bit is a logical 0; less than -3 V
means that the bit is a logical 1.
For additional information, refer to the Interface between Data Terminal Equipment
and DataCommunications Equipment Employing Serial Binary Data Interchange,
published by the Electronic Industries Association, publications EIA RS-232C
and EIA\TIA-232-E.
Serial Data Frame Considerations (RS-232C)
The computer sends serial data in data frames (also known as packets). You can
create 10-bit, 11-bit, or 12-bit data frames and set the serial data transfer
parameter so that each data frame contains 7 or 8 data bits. However, the
printer is an 8-bit printer; characters, controls, and APA graphics need 8 bits of
data. If you select 7-bit data transfer, some unexpected characters might print.
Data Transmission
Data transfer rates (in bits per second):
• 300 bps
• 600 bps
• 1200 bps
• 2400 bps
• 4800 bps
• 9600 bps
• 19200 bps
Start and Stop Bits
The printer receives data with 1 start bit and either 1 or 2 stop bits. The printer
always sends 1 start and 2 stop bits.
Parity
There are four possible parity settings: Even, Odd, No, and Ignore.
When Even parity is selected, the printer expects to receive data frames with an
even number of logical 1’s per byte. The printer transmits data with even parity.
When Odd parity is selected, the printer expects to receive data frames with an
odd number of logical 1’s per byte. The printer transmits data with odd parity.
100
Section 6: Using the Printer Interface
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.