This publication provides information about the commands supported by your printer. The commands are
organized by function groups. Each command has both a brief and a detailed description.
Each command has the following structure:
®
v Name and function description. Information about protocol (IBM
Personal 2391+, EPSON LQ Series, ANSI 3.64).
v The hexadecimal and decimal codes for the command: n represents variable parameters of the
command. The functions of these parameters are explained in its corresponding command description.
Proprinter XL24/XL24 AGM, IBM
xv
xviProgrammer Manual
Chapter 1. Command Summary in Alphabetical Order
This section contains a summary of commands used on the 4247-L03 model printer. It is divided into 2
separate sections. “Common commands for the 4247-L03 model printers” lists all the commands common
to both the Single Byte Character Set (SBCS) and Double Byte Character Set (DBCS) features.
“Commands for the 4247 model printer with the DBCS feature present” on page 5 lists commands that can
only be used when the DBCS feature is present.
Common commands for the 4247-L03 model printers
The following commands are common for both of the 4247-L03 model printers.
CommandDescriptionPage
BELBuzzer (IBM/EPSON).45
BELBell (ANSI).79
BSPrint and space back one position (IBM/EPSON).45
BSBack space (ANSI).72
CANCancels line. (EPSON)43
CANCancels data. (IBM)43
CRPrints all received data and the column counter is set to the left margin (IBM/EPSON).7
CRCarriage return (ANSI).72
DC1Selects printer. (IBM)43
DC1Selects printer. (EPSON)43
DC1Selects printer (Data Control 1) (ANSI).78
DC2Sets 10 cpi printing. (IBM)19
DC2Cancels compressed printing. (EPSON)19
DC3Deselects printer. (EPSON)43
DC3Deselects printer (Data Control 3) (ANSI).79
DC4Cancels double width printing (IBM/EPSON).19
DC4 DC4 ESC !Bar Code Selection.54
DC4 DC4 ESC (GSPrints bar code symbols.61
DC4 DC4 ESC @Re-initializes the printer.62
DC4 DC4 ESC 1Sets vertical spacing n/180 inch.51
DC4 DC4 ESC 3 1Sets vertical spacing 12 lines/30 mm.51
DC4 DC4 ESC 3 3Sets vertical spacing to 3 lines/30 mm.51
DC4 DC4 ESC 3 4Sets vertical spacing 4 lines/30 mm.51
DC4 DC4 ESC 3 6Sets vertical spacing 6 lines/30 mm.52
DC4 DC4 ESC 3 8Sets vertical spacing 8 lines/30 mm.52
DC4 DC4 ESC ASets the horizontal spacing to 15, 17.1, 20, 24 CPI.52
DC4 DC4 ESC DSends the operator panel messages to the serial I/F.65
DC4 DC4 ESC vSelects graphics print speed.65
DC4 DC4 ESC gSelects LQ fonts.53
DC4 DC4 ESC JSets amplification factor.62
DC4 DC4 ESC NSelects/loads or parks the fanfold from the Front 2 path.62
DC4 DC4 ESC pSets quality printing.62
DC4 DC4 ESC RString rotation.63
DC4 DC4 ESC rDigit rotation.63
DC4 DC4 ESC SSelects character set ISO Character Sets or Code Pages.53
DC4 DC4 ESC TSelects/loads or parks the fanfold from the Front1 path.63
DC4 DC4 ESC uSelects the user macros.64
DC4 DC4 ESC vSelects graphics print speed.65
DC4 DC4 ESC YSelects emulation.64
DC4 DC4 ESC ZMakes AGA in column.64
DELDeletes the last character. (EPSON)44
1
DELDelete (ANSI).79
ENQEnquiry (ANSI).78
ESCEscape (ANSI).79
ESC −Sets or cancels underlined printing (IBM/EPSON).19
ESC [ p
ESC [ p
ESC [ p
ESC [ p
ESC p
ESC [ p
aHorizontal position relative (HPR) (ANSI).73
1
; ... pnhSets mode (SM) (ANSI).80
1
dVertical position absolute (VPA) (ANSI).75
1
qSelect graphics mode/density (GRM) (ANSI).82
1
; pnlResets mode (RM) (ANSI).81
1
; pnvSets vertical tab stops at specified positions (Multiple Vertical Tab Set - VTS) (ANSI).77
1
ESC !Sets printing style. (EPSON)20
ESC #Cancels MSB control. (EPSON)44
ESC $Sets the absolute printing position. (EPSON)8
ESC %Selects user-defined character set. (EPSON)36
ESC &Defines the 24-pin download characters. (EPSON)36
ESC ( −Sets score line. (EPSON)20
ESC *Sets dot graphics printing. (IBM XL24 AGM, EPSON)39
ESC /Selects the Vertical Format Unit (VFU) channel. (EPSON)9
ESC :Sets 12 CPI. (IBM)21
ESC :Copies characters from ROM to RAM. (EPSON)37
ESC ?Reassigns dot graphics mode. (EPSON)40
ESC @Initializes the printer. (EPSON)45
ESC [ −Selects the score line. (IBM 2391 + only)21
ESC [ ISets font and pitch of a character. (IBM 2391 + only)24
ESC [ p
ESC [ p
ESC [ p
ESC [ p
ESC [ p
ESC [ p
ESC [ p
'Horizontal position absolute (HPA) (ANSI).73
1
kVertical position backward (VPB) (ANSI).76
1
xSelects national character set (Select National Characters - SNC) (ANSI).68
1
; p2fHorizontal and vertical position absolute (HVP) (ANSI).76
1
; p2SP~Selects emulation (EMU) (ANSI).81
1
; pn{Unidirectional printing (UDP) (ANSI).72
1
; pn}Sets bar code parameters (BC) (ANSI).84
1
ESC [ @Selects the printing type style. (IBM 2391 + only)22
ESC [ @Sets double high printing and double line feed. (IBM)22
ESC [ \Sets vertical units. (IBM)9
ESC [ dSet the print quality. (IBM 2391 + only)23
ESC [ gSelects 8 or 24 needle dot graphics mode. (IBM)42
ESC [ KSets initial conditions. (IBM 2391 + only)45
ESC [ p
ESC [ p
ESC [ p
ESC [ p
ESC [ p
ESC [ p
ESC [ p
ESC [ p
ESC [ p
ESC [ TSelects a Code page (IBM).32
ESC \Sets the relative dot position. (EPSON)9
ESC \Prints characters from all characters table. (IBM)32
ESC \ or STString terminator (ANSI).80
ESC ]Sets a reverse line feed. (IBM)7
ESC ^Prints a single character from the all characters table. (IBM)33
ESC _Sets or cancels overscore printing. (IBM)25
ESC +Sets n/360-inch line spacing. (IBM)10
ESC <Prints characters for one line from left to right. (EPSON)21
2Programmer Manual
ESC =Defines downloaded characters. (IBM)38
ESC =Sets MSB to 0. (EPSON)44
ESC >Sets MSB to 1. (EPSON)44
ESC 0Sets vertical spacing to 1/8 inch (IBM/EPSON).10
ESC 1Sets vertical spacing to 7/72 inch. (IBM)10
ESC 2Sets the vertical spacing to 1/6 inch. (EPSON)10
ESC 2Enables the vertical spacing set by ESC A. (IBM)10
ESC 3Sets vertical spacing to n/180 inch. (IBM XL24 AGM, EPSON)11
ESC 3Sets vertical spacing to n/216 inch. (IBM XL24, 2391 +)11
ESC 4Sets the current position as top of form (first printable line). (IBM)11
ESC 4Sets italics printing mode. (EPSON)25
ESC 5Sets an automatic line feed after a carriage return. (IBM)7
ESC 5Cancels italics printing. (EPSON)25
ESC 6Selects the Character Set 2 (IBM).33
ESC 6Enable Printable Code Area Expansion (EPSON)33
ESC 7Selects the Character Set 1 (IBM).33
ESC 7Cancel Printable Code Area Expansion (EPSON)33
ESC ASets variable vertical spacing to n/60 inch. (IBM XL24 AGM, EPSON)11
ESC ASets variable vertical spacing to n/72 inch. (IBM XL24, 2391 +)11
ESC aSets Letter Quality justification printing. (EPSON)26
ESC BSets vertical tab stops (IBM/EPSON).12
ESC bSets vertical tab stops in one of the 8 Vertical Format Unit channels available.
12
(EPSON)
ESC B NULResets vertical tab stops (IBM/EPSON).12
ESC b NULResets vertical tab stops in one of the 8 Vertical Format Unit channels available.
13
(EPSON)
ESC cResets to initial state (RIS) (ANSI).80
ESCC0nSets form length to n inches (IBM/EPSON).13
ESC C nSets form length to n lines (IBM/EPSON).13
ESC DSets horizontal tab stops (IBM/EPSON).13
ESC dSpaces forwards relative dot position. (IBM)14
ESC D or INDIndex (ANSI).74
ESC eSpaces backward relative dot position. (IBM)14
ESC ESets emphasized printing (IBM/EPSON).26
ESC E or NELNext line (ANSI).74
ESC FCancels emphasized printing (IBM/EPSON).26
ESC GSets double strike printing (IBM/EPSON).26
ESC gSets 15 CPI. (EPSON)27
ESC HCancels double strike printing (IBM/EPSON).27
ESC H or HTSHorizontal tab setting (ANSI).74
ESC ISelects printing type for resident and DLL characters. (IBM)27
ESC JAdvances paper n/180 inch. (EPSON and IBMXL24AGM) Advances paper n/216 inch.
(IBMXL24 and 2391)
ESC jStops printing. (IBM)47
ESC J or VTSVertical tab setting (ANSI).77
ESC kSelects the LQ fonts. (EPSON)34
ESC KNormal density dot graphics printing (60 dpi) (IBM/EPSON).40
ESC kPrints test character (PTC) (ANSI).80
ESC K or PLDPartial line down (ANSI).75
ESC ISets left margin. (EPSON)14
ESC LDouble density dot graphics printing (120 dpi) (IBM/EPSON).41
ESC L or PLUPartial line up (ANSI).75
ESC MSelects 10.5 point. 12 CPI. (EPSON)27
ESC M or RIReverse index (ANSI).75
ESC NSets the skipover perforation to n lines (IBM/EPSON).15
ESC ODisables the skipover perforation (IBM/EPSON).16
8
Chapter 1. Command Summary in Alphabetical Order3
ESC PSelects 10.5 point, 10 cpi. (EPSON)28
ESC PSets or cancels proportional printing. (IBM)28
ESC pSets or cancels proportional printing. (EPSON)28
ESC P dataEnter dot graphics mode (Device Control String) (ANSI).82
ESC QSets the right margin. (EPSON)16
ESC QDeselects Printer. (IBM)44
ESC Q or PU1Executes Selftest (ANSI).80
ESC RSets horizontal and vertical tab stops to default values. (IBM)17
ESC RSelects Nation character set. (EPSON)34
ESC SSets subscript or superscript printing (IBM/EPSON).29
ESC sSets and resets Quiet printing. (EPSON)29
ESC SPSets intercharacter space. (EPSON)17
ESC TCancels subscript or superscript printing (IBM/EPSON).30
ESC tSelects characters table. (EPSON)34
ESC USets printing direction (IBM/Epson).47
ESC[unBar Codes selection. (IBM - Epson)48
ESC[vnmSets Barcode parameters. (IBM - Epson)48
ESC WSets or cancels double width printing (IBM/EPSON).30
ESC wSets or cancels double height printing. (EPSON)30
ESC XSets left and right margins. (IBM)17
ESC xSelects Letter Quality or Draft. (EPSON)30
ESC YDouble density dot graphics printing at double-speed graphics (120 virtual dpi)
41
(IBM/EPSON).
ESC ZQuadruple density dot graphics printing (240 virtual dpi) (IBM/EPSON).42
ESC [ p
; pnuSets horizontal tab stops at specified positions multiple horizontal tab set (HTS) (ANSI).74
1
FFAdvances paper to the top of the next page (IBM/EPSON).18
FFForm feed (ANSI).77
HTLogically moves the print carriage to the next horizontal tab stop (IBM/EPSON).18
HTHorizontal tab (ANSI).73
LFLine Feed (IBM/EPSON).8
LFLine feed (ANSI).74
NULIgnored (ANSI).78
SISets compressed printing. (EPSON)31
SIShift in (ANSI).71
SI or ESC SISets compressed printing (IBM/EPSON).29
SOSets double width printing (one line) (IBM/EPSON).31
SOShift out (ANSI).71
SO or ESC SOSets double width printing (one line) (IBM/EPSON).29
SPSpace (ANSI).72
VTAdvances paper to the next vertical tab stop of the selected VFU channel
18
(IBM/EPSON).
VTVertical tab (ANSI).76
4Programmer Manual
Commands for the 4247 model printer with the DBCS feature present
The following commands are used only with the 4247 model printer with the DBCS feature present.
CommandDescriptionPage
ESC │ nSets – Resets double width and double height print modes.96
ESC(Xn1 n2 a1 a2 a3 Defines a special printing effect.96
FS &Enter the DBCS print mode.89
FS .Exit the DBCS print mode.89
FS ! nSets multiple print attribute at once.94
FS - nSets - Resets underline mode.91
1a2n1
FS 2 a
FS bnSets the DBCS standard line.95
FS cnlnhSets the HMI (Horizontal Motion Index)95
FS D d1 d2Composes two half-width, rotated characters into a normal size rotated character
FS DC2Cancels half-sized and 1/4-sized print and restores normal size print.93
FS DC4Resets double width mode.90
FS JSets 90 degrees counterclockwise character rotation.90
FS KResets character rotation.91
FS S n1 n2Defines the left and right empty character space of a normal-sized character.92
FS SISets the print of half-sized characters.93
FS SOSets double width mode.90
FS rnSets superscript or subscript print mode (1/4 normal size).93
FS T n1 n2Defines the left and right empty character space of a half-sized character.92
FS UDefine half-sized character as half of a normal sized character.92
FS vnSets - Cancels line drawing character connection mode.95
FS VResets print of half-sized characters.93
FS W nSets - Resets quadruple print mode.90
FS xnSets print quality level for the DBCS font set.94
... n
72
Sets user-defined character (DownLoading).94
91
space.
Chapter 1. Command Summary in Alphabetical Order5
6Programmer Manual
Chapter 2. EPSON/IBM Mode
The following printer commands are supported by this printer according to the IBM Proprinter XL24-XL24
AGM, IBM 2391+ and EPSON LQ Series.
Print and Line Feed Execution
CR
Prints all received data and the column counter is set to the left margin (IBM/EPSON).
This code is a terminator code; when received, it causes any data in the buffer to be printed out. The print
head then moves logically to the left margin position. The column counter is set to the left margin value
and a line feed is inserted automatically after the carriage return (see the automatic carriage return
function in the printer setup). The code cancels the double width printing set by the SO or ESC SO
command.
This is a terminator code; it therefore causes the current contents of the print buffer to be printed before
advancing the paper by one line at the current vertical spacing. If no data precedes the LF code, or if the
preceding data consists of spaces, the code only causes a line feed.
When the line counter reaches the last line of the form (defined by the software or the function menu), the
LF code causes a skip to the first line of the next form. This code cancels the double width printing set by
the SO code. In IBM mode, the column counter is set to the first column if the automatic carriage return is
selected. In EPSON mode, the column is always set to the first column.
ESC 5
Sets an automatic line feed after a carriage return. (IBM)
ASCII CodeESC 5 n
Hexadecimal ValueX'1B' X'35' n
Decimal Value27 53 n
If n is equal to 1, this command sets an automatic line feed on receiving of a CR code. If n is equal to 0,
this command cancels the automatic line feed.
nAutomatic line feed
0Disabled
1Enabled
7
ESC J
Advances paper n/180 inch. (EPSON and IBMXL24AGM)
Advances paper n/216 inch. (IBMXL24 and 2391)
ASCII CodeESC J n
Hexadecimal ValueX'1B' X'4A' n
Decimal Value27 74 n
Range1 ≤ n ≤ 255
This is a terminator code; it causes the current contents of the print buffer to be printed before performing
a single line feed of n/180 or n/216 of an inch. This command is cancelled after the line feed has been
performed. The printing restarts after a line feed from the column at which the command was sent.
This is a terminator code; it causes the current contents of the print buffer to be printed before advancing
the paper by one line at the current vertical spacing. If no data precedes the LF code, or if the preceding
data consists of spaces, the code only causes a line feed.
When the line counter reaches the last line of the form (defined by software or function menu), the LF
code causes a skip to the first line of the next form. This code cancels the double width printing set by the
SO code. In IBM mode, the column counter is set to the first column if the automatic carriage return is
selected. In EPSON mode, the column is always set to the first column.
This command specifies the distance from the left margin to where you want to print subsequent
characters. The distance is in number of dots and must be calculated using the following formula:
Margin distance = n
is the remainder. 1 dot = 1/60 inch. If the selected position is outside the current right margin, the
n
1
+(n2x 256) where n2is the integer result of the number of dots divided by 256 and
1
sequence is ignored.
1n2
2
2
8Programmer Manual
ESC[\
Sets vertical units. (IBM)
ASCII CodeESC [ \ m1m2t1... t
Hexadecimal ValueX'1B' X'5B' X'5C' m1m2t1... t
Decimal Value27 91 92 m1m2t1... t
4
4
4
Range
=4
m
1
m2=0
≤ 255
0 ≤ t
1
0 ≤ t2≤ 255
=0
t
3
t4= 180 or 216
This command changes the base units for the graphics line spacing commands (ESC J, ESC 3). The
default is 1/216 or 1/180 inch.
ESC /
Selects the Vertical Format Unit (VFU) channel. (EPSON)
ASCII CodeESC / m
Hexadecimal ValueX'1B' X'2F' m
Decimal Value27 47 m
Range0 ≤ m ≤ 7
This sequence selects the VFU channel that you want to use. Eight different channels are available. The
m parameter represents the channel you want to select.
This command specifies the distance between the current print head position and the position where you
want to print subsequent characters (relative position). The distance is a number of dots and must be
calculated using the following formula:
Current position distance = n
where n
is the integer result of the number of dots divided by 256 and the n1 is the remainder. The unit of
2
+(n2x 256)
1
dots is 1/120 inch for Draft or 1/180 inch for Letter Quality printing. If the distance is negative (Most
Significant Bit of m
equal to 1), the print head is moved to the left of the current position by the number of
This command causes vertical spacing to be set to 7/72 inch.
ESC +
Sets n/360-inch line spacing. (IBM)
ASCII CodeESC + n
Hexadecimal ValueX'1B' X'2B' n
Decimal Value27 43 n
Range0 ≤ n ≤ 255
This command sets the line spacing to n/360 inch. If the line spacing is changed, it does not affect
previous settings for vertical tabs or page length.
ASCII CodeESC A n
Hexadecimal ValueX'1B' X'41' n
Decimal Value27 65 n
This command changes the default vertical spacing to n/72 inch. The vertical spacing value is stored and
activated only after the ESC 2 code is received.
Chapter 2. EPSON/IBM Mode11
ESC B
Sets vertical tab stops (IBM/EPSON).
ASCII CodeESC B n1... nx0
... nx0
1
... nx0
1
Hexadecimal ValueX'1B' X'42' n
Decimal Value27 66 n
Range1 ≤ n ≤ 255
In EPSON mode, it sets the vertical tab stops in the 0 Vertical Format Unit (VFU) channel. This code sets
up to 16 vertical tab stops at the line specified by n
, n2and so on in the 0 VFU channel. The tab stops
1
are memorized as physical positions. In IBM mode, this code sets up to 64 vertical tab stops at the line
number specified by n
, n2and so on in the 0 VFU channel. The tab stops are retained as logical
This command resets the vertical tab stops in the 0 Vertical Format Unit (VFU) channel.
ESC b
Sets vertical tab stops in one of the 8 Vertical Format Unit channels available. (EPSON)
ASCII CodeESC b mn
Hexadecimal ValueX'1B' X'62' mn
Decimal Value27 98 mn
Range
0 ≤ m ≤ 7
1 ≤ n
... nx0
1
1
... nx0
1
... nx≤ 255
1
... nx00
This sequence sets vertical tabulations in the VFU channel specified by the parameter m.
The VFU channel can be imagined as a blank page where you can set up to 16 vertical tabulations in
order to format your page as you like. 8 channels are available and in each of them you can create a
sample page that you can recall later. n
to n16specify the lines at which vertical tabulations must be set.
1
The values of n must be in ascending order. If you change the vertical spacing, the vertical tabulations set
are not cancelled and they maintain their physical position on the page.
The vertical tabulations set in the channel specified by the m parameter are executed by the VT code
when the specific channel is selected by the ESC / command, this code is executed as a line feed.
12Programmer Manual
ESC b NUL
Resets vertical tab stops in one of the 8 Vertical Format Unit channels available. (EPSON)
This command resets the vertical tab stops in one of the 8 Vertical Format Unit channels available.
ESCC0n
Sets form length to n inches (IBM/EPSON).
ASCII CodeESC C 0 n
Hexadecimal ValueX'1B' X'43' X'00' n
Decimal Value27 67 0 n
Range
1 ≤ n ≤ 24
This command sets the form length to the number of inches specified by n. The current position of the
paper is assumed as the top-of-form.
ESC C n
Sets form length to n lines (IBM/EPSON).
ASCII CodeESC C n
Hexadecimal ValueX'1B' X'43' n
Decimal Value27 67 n
Range
1 ≤ n ≤ 255
This command sets the form length to the number of lines specified by n at the current vertical spacing.
The current position of the paper is assumed as top-of-form.
ESC D
Sets horizontal tab stops (IBM/EPSON).
ASCII CodeESC D n
Hexadecimal ValueX'1B' X'44' n
Decimal Value27 68 n
Range
1 ≤ n ≤ 255
This sequence sets up to 28 (IBM mode) or 32 (EPSON mode) horizontal tab stops after canceling the
current setting. The n
to nxparameters specify the number of columns at which horizontal tab stops are
1
required and must be entered in the sequence in ascending numerical order. Any value outside this range
is ignored. In IBM mode, the tab stop position is retained as a logical position in the page so that it is
affected by changing the horizontal spacing. The columns are numbered 1 through 136. In EPSON mode,
the tab stop position set by ESC D is retained as the physical position on the page and therefore it is not
1n2
1n2
... nx0
1n2
... nx0
... nx00
Chapter 2. EPSON/IBM Mode13
affected by changing the horizontal spacing. The physical position of the tab stop depends on the
horizontal spacing in operation when ESC D is used. The ESC D 0 cancels all active tab stops.
ESC d
Spaces forwards relative dot position. (IBM)
ASCII CodeESC d n
Hexadecimal ValueX'1B' X'64' n1n
Decimal Value27 100 n1n
1n2
2
2
Range0 ≤ n1n2≤ 255
This command moves the print carriage (n
+(n2*256))/120 of an inch displacement on the right of its
1
current dot position. If the selected position is outside the current right margin, it is forced to the last
column.
ESC e
Spaces backward relative dot position. (IBM)
ASCII CodeESC e n
Hexadecimal ValueX'1B' X'65' n1n
Decimal Value27 101 n1n
Range
0 ≤ n
This command moves the print carriage (n1+(n2*256))/120 of an inch displacement on the left of its
current dot position. If the selected position is outside the current left margin, it is forced to the first
column.
1n2
1n2
2
2
≤ 255
ESC I
Sets left margin. (EPSON)
ASCII CodeESC I n
Hexadecimal ValueX'1B' X'6C' n
Decimal Value27 108 n
Range
0 ≤ n ≤ 255
This code sets the left margin at the current horizontal spacing. It must be sent at the beginning of the
line. The n parameter specifies the number of columns. For each type of horizontal spacing there is a
different range of possible values, as shown in the following table:
Character WidthHorizontal SpacingRange of columns
Double Width50 ≤ n ≤ 67
6 cpi0 ≤ n ≤ 80
7.5 cpi0 ≤ n ≤ 100
8.5 cpi0 ≤ n ≤ 114
10 cpi0 ≤ n ≤ 134
14Programmer Manual
Character WidthHorizontal SpacingRange of columns
Normal10 cpi0 ≤ n ≤ 134
12 cpi0 ≤ n ≤ 160
15 cpi0 ≤ n ≤ 201
17 cpi0 ≤ n ≤ 229
20 cpi0 ≤ n ≤ 255
24 cpi0 ≤ n ≤ 255
Any value outside the accepted range is ignored and the previous setting remains in effect. The left margin
must be smaller than the right margin. The physical position set for the left margin does not change if the
horizontal spacing is modified. This command overrides the menu setting.
ESC N
Sets the skipover perforation to n lines (IBM/EPSON).
ASCII CodeESC N n
Hexadecimal ValueX'1B' X'4E' n
Decimal Value27 78 n
Range
1 ≤ n ≤ 127 (EPSON mode)
1 ≤ n ≤ 255 (IBM mode)
The skipover perforation is the sum of the top and bottom margin values at the selected vertical spacing.
The n parameter must be less than the current form length. The skipover is retained as the physical
position on the page. It is cancelled by ESC O or changing the form length.
The skipover value, when accepted, sets the top and bottom margins according to the operator panel
setting (see the User Manual):
If the top margin set using the operator panel is greater than the skipover value, the following value of the
margins is set:
Top margin = skipover value
Bottom margin = 0
If the top margin set using the operator panel is less than or equal to the skipover value, then the following
value of the margins is set:
Top margin = operator panel value
Bottom margin = the difference between skipover value and top margin value
If the sum of the top and bottom margins values set using the operator panel is less than the skipover
value, the following values for the margins is set:
Top margin = operator panel value
Bottom margin = the difference between skipover value and top margin value
Changing the vertical spacing does not affect the skipover distance. This can be changed by another ESC
N command or can be reset by the ESC O command, which resets the skipover value to 0. The skipover
perforation is performed when the end of the page is reached with a LF, VT or FF code and not with the
ESC J or ESC C command. The skipover perforation is cancelled and must be reset.
Chapter 2. EPSON/IBM Mode15
ESC O
Disables the skipover perforation (IBM/EPSON).
ASCII CodeESC O
Hexadecimal ValueX'1B' X'4F'
Decimal Value27 79
This sequence sets the number of lines of the skipover perforation to the value 0. Any skip perforation set
by ESC N is cancelled.
ESC Q
Sets the right margin. (EPSON)
ASCII CodeESC Q n
Hexadecimal ValueX'1B' X'51' n
Decimal Value27 81 n
Range1 ≤ n ≤ 225
This code sets the line length at the current horizontal spacing. It must be sent at the beginning of the line.
The n parameter specifies the number of columns and for each type of horizontal spacing there is a range
of values, as shown in the following table:
Character WidthHorizontal SpacingRange of columns
Double Width51 ≤ n ≤ 67
6 cpi1 ≤ n ≤ 81
7.5 cpi1 ≤ n ≤ 101
8.5 cpi1 ≤ n ≤ 111
10 cpi1 ≤ n ≤ 135
Normal10 cpi1 ≤ n ≤ 135
12 cpi1 ≤ n ≤ 162
15 cpi1 ≤ n ≤ 203
17 cpi1 ≤ n ≤ 232
20 cpi1 ≤ n ≤ 255
24 cpi1 ≤ n ≤ 255
Any value outside the accepted range is ignored and the previous setting remains in effect. The right
margin must be greater than the left margin. The physical position set for the right margin does not change
if the horizontal spacing is modified.
16Programmer Manual
ESC R
Sets horizontal and vertical tab stops to default values. (IBM)
ASCII CodeESC R
Hexadecimal ValueX'1B' X'52'
Decimal Value27 82
This command sets horizontal tab stops every eight columns starting from column 9 and cancels all
vertical tab stops.
ESC SP
Sets intercharacter space. (EPSON)
ASCII CodeESC SP n
Hexadecimal ValueX'1B' X'20' n
Decimal Value27 32 n
Range0 ≤ n ≤ 225
This command sets the intercharacter space to n/120 inch in Draft printing and n/180 inch in Quality
printing.
ESC X
Sets left and right margins. (IBM)
ASCII CodeESC X n
Hexadecimal ValueX'1B' X'58' n1n
Decimal Value27 88 n1n
1n2
2
2
Range
0 ≤ n ≤ 134 (left margin)
2 ≤ n ≤ 136 (right margin)
This command sets the left and right margins at the same time. The n
and n2parameters indicate
1
respectively the number of columns for the left and right margins at the current spacing. These margins
are retained in terms of absolute displacement from the physical left edge of the page. Use a CR
immediately after ESC X n to establish the print head position relative to the new margin setting.
is equal to 0, the current left margin of the page is used. If n2is equal to 1, the current right margin of
If n
1
the page is used. The left margin value must be less than the right margin value. The right margin value
must not exceed the physical right edge of the paper; otherwise the maximum acceptable value for the
right margin will be set.
Chapter 2. EPSON/IBM Mode17
FF
Advances paper to the top of the next page (IBM/EPSON).
This code is a terminator code, when received, causes all data in the print buffer to be printed out. Then it
advances the paper to the first printable line of the next form. The line counter is set to the first line value
and the column counter is set to the left margin value. This code cancels the double width printing set by
SO code.
HT
Logically moves the print carriage to the next horizontal tab stop (IBM/EPSON).
This code logically moves the print carriage to the next horizontal tab stop as defined by ESC D. Up to 28
(IBM mode) or 32 (EPSON mode) horizontal tab stops can be set. The HT code is ignored if no tab stop is
set, the current print carriage position is moved past the last tab position, or the tab stop is on or beyond
the right margin. When the printer is powered on, the tab stops are set every eight columns (default).
In EPSON mode, the default tab stops are retained as logical positions in the page that are affected by
changing the horizontal spacing. The tab stop positions set by ESC D are retained as physical positions
on the page and are not affected by changing the horizontal spacing. When double width printing is
selected, the tab stop setting must take into account that each character occupies two columns. In IBM
mode, the tab stops, both the default and those set by ESC, are retained as logical positions in the page
that are affected by changing the horizontal spacing. The horizontal tab stops can be changed by the ESC
D command.
VT
Advances paper to the next vertical tab stop of the selected VFU channel (IBM/EPSON).
This is a terminator code and when received causes the contents of the print buffer to be printed before
advancing the paper to the next vertical tab stop set by the ESC B or the ESC b commands.
This code is run normally if vertical tab stops follow the current print position. It runs like an FF code
(EPSON mode) or like a LF code (IBM mode), if the vertical tab stops follow the bottom of form position (
corresponding to the form length if the bottom of the form has not been set), or if the current position is
beyond the last vertical tab stop. It runs like an LF code if no vertical tab stops have been set by the ESC
B or ESC b commands.
In EPSON mode, the vertical tabulations are referred to the VHF channel selected by the ESC / m.Ifno
VFU channels have been selected, the printer assumes the default channel 0.
This command cancels the double width printing set by SO or ESC SO command.
This is a terminator code. It causes all data present in the print buffer to be printed. This command is
accepted at any position within the line. The character that follows this command is printed at 10 cpi.
This is a terminator code. It causes all data present in the print buffer to be printed. This command is
accepted at any position within the line. The character that follows this command is printed as follows:
This code cancels the double width printing set by SO or ESC SO code. It has no effect if the ESC W or
ESC ! command is set to double width.
ESC −
Sets or cancels underlined printing (IBM/EPSON).
ASCII CodeESC − n
Hexadecimal ValueX'1B' X'2D' n
Decimal Value27 45 n
Enables or disables underlined printing. See the following table:
nUnderlined Printing
1enabled
0disabled
Chapter 2. EPSON/IBM Mode19
ESC !
Sets printing style. (EPSON)
ASCII CodeESC ! n
Hexadecimal ValueX'1B' X'21' n
Decimal Value27 33 n
This command is used to select any valid combination of printing attributes. Each printing attribute is
selected by the n parameter, as specified in the following page:
This is a terminator code. It causes all data present in the print buffer to be printed. Subsequent data is
printed at 12 cpi. This command is accepted at any position within the line. The setting of another
horizontal spacing resets this command.
ESC <
Prints characters for one line from left to right. (EPSON)
This command is used to modify the type style of the character and the number of line spacing. Use this
command for:
1. Italic printing
2. Single-high character
3. Double-high character
4. Single-wide character
5. Double-wide character
6. Single Line Feed
7. Double Line Feed
These selections may be combined, for example, italic print with double height or doublewide character
and double line feed.
See the following tables for m
m
0No Change0No Change0No Change
1Start Italic Printing1Single-High Character1Single-Wide Character
2Stop Italic Printing2Double-High Character2Double-Wide Character
4Start Outline16Single Line Feed16Single Line Feed
8Stop Outline32Double Line Feed32Double Line Feed
16Start Shadow
32Stop Shadow
Selectionm
1
, m3and m4selections:
1
Selectionm
3
4
Selection
ESC[@
Sets double high printing and double line feed. (IBM)
This command sets height, width, and vertical spacing.
The l and h parameters specify the number of mode bytes m
The m
and m4parameters specify the printing characteristics.
3
22Programmer Manual
4
4
contained in the sequence.
x
4
The m3parameter controls both line spacing and character height. It has two parts: a high-order half-byte
of m3controls the line spacing and the low-order half-byte controls the character height.
m
3
0No ChangeNo Change
1Standard character heightLine feeds unchanged
2Double character heightLine feeds unchanged
16Character height unchangedNormal line feeds
17Standard character heightNormal line feeds
18Double character heightNormal line feeds
32Character height unchangedDouble line feeds
33Standard character heightDouble line feeds
34Double character heightDouble line feeds
Character HeightLine Spacing
The m4parameter specifies the character width. Only the low-order half-byte is significant in this mode
byte. The high-order half-byte is ignored.
ASCII CodeESC [ d 10n
Hexadecimal ValueX'1B' X'5B' X'64' 01 00 n
Decimal Value27 91 100 10n
This command sets the print quality to draft or LQ print.
nTypes
0No Change
From 64 to 127Draft
From 128 to 254 Letter Quality
255Initialization on NVRAM values
Chapter 2. EPSON/IBM Mode23
ESC[I
Sets font and pitch of a character. (IBM 2391 + only)
ASCII CodeESC [ I 20mn
Hexadecimal ValueX'1B' X'5B' X'49' 02 00 m n
Decimal Value27 91 73 20mn
This command allows you to modify the character's font and style of pitch type.
The values 2 and 0 are constants. If font and pitch locks are active, this command is ignored. To select the
values for the variables m and n, which identify the pitch and the font type style to use, refer to the table
below.
1. Identify the type style (pitch and font) to use in the left column (pitch).
2. For the hexadecimal values of m and n, look across the row to the second column (Hex mn)
3. For the decimal values for m and n, look across the row to the third column (Decimal mn).
4. Substitute these values for m and n in the printer command syntax.
Sets the style attribute of the font to normal (cancels the italic style attribute previously selected with the
ESC 4 command).
Chapter 2. EPSON/IBM Mode25
ESC a
Sets Letter Quality justification printing. (EPSON)
ASCII CodeESC a n
Hexadecimal ValueX'1B' X'61' n
Decimal Value27 97 n
Range0 ≤ n ≤ 3
Selects from four types of justification, as follows:
nJustification
0Left
1Centered
2Right
3Allows an uniform printing between the margins when the buffer is full.
ESC E
Sets emphasized printing (IBM/EPSON).
ASCII CodeESC E
Hexadecimal ValueX'1B' X'45'
Decimal Value27 69
This command starts emphasized printing. The print head strikes each dot twice to produce a darker,
bolder character. The second strike is offset horizontally.
ESC F
Cancels emphasized printing (IBM/EPSON).
ASCII CodeESC F
Hexadecimal ValueX'1B' X'46'
Decimal Value27 70
This command ends emphasized printing. This escape sequence cancels emphasized printing that was
started by ESC E.
ESC G
Sets double strike printing (IBM/EPSON).
ASCII CodeESC G
Hexadecimal ValueX'1B' X'47'
Decimal Value27 71
This command starts double-strike printing. ESC G may be canceled by ESC H.
26Programmer Manual
ESC g
Sets 15 CPI. (EPSON)
ASCII CodeESC g
Hexadecimal ValueX'1B' X'67'
Decimal Value27 103
Subsequent data is printed at 15 cpi. This command is accepted at any position within the line. If you
change the pitch during proportional mode (selected with the ESC p command), the change takes effect
when the printer exits proportional mode.
ESC H
Cancels double strike printing (IBM/EPSON).
ASCII CodeESC H
Hexadecimal ValueX'1B' X'48'
Decimal Value27 72
This command cancels double-strike printing set with the ESC G command.
ESC I
Selects printing type for resident and DLL characters. (IBM)
ASCII CodeESC I n
Hexadecimal ValueX'1B' X'49' n
Decimal Value27 73 n
This command selects the resident or the download font in Draft or LQ printing mode. It is ignored if you
select a font that has not been downloaded or has been overwritten. See the following table:
ASCII CodeESC M
Hexadecimal ValueX'1B' X'4D'
Decimal Value27 77
This is a terminator code. It causes all data present in the print buffer to be printed. Subsequent data is
printed at 12 cpi, if you previously set the compressed spacing by sending the SI or ESC SI command. If
you select proportional printing, this command is stored.
Chapter 2. EPSON/IBM Mode27
ESC P
Selects 10.5 point, 10 cpi. (EPSON)
ASCII CodeESC P n
Hexadecimal ValueX'1B' X'50' n
Decimal Value27 80 n
This command selects 10.5 point, 10 cpi character printing. If you change the pitch during proportional
mode (selected with the ESC p command) the change takes effect when the printer exits proportional
mode.
ESC P
Sets or cancels proportional printing. (IBM)
ASCII CodeESC P n
Hexadecimal ValueX'1B' X'50' n
Decimal Value27 80 n
Range1 ≤ n ≤ 255
This code is a terminator code. It causes all data in the print buffer to be printed. Then if the n parameter
is equal to 1, the subsequent data is printed in proportional mode. If the n parameter is equal to 0,
proportional mode is reset. If the any horizontal spacing command is sent to the printer when the
proportional printing is set, the command is stored and activated as soon as the proportional printing is
reset.
ESC p
Sets or cancels proportional printing. (EPSON)
ASCII CodeESC p n
Hexadecimal ValueX'1B' X'70' n
Decimal Value27 112 n
Range1 ≤ n ≤ 255
This command selects the proportional or fixed spacing according to the following values:
nProportional Printing
0Returns to current fixed character pitch
1Selects proportional character spacing
The changes made to the fixed-pitch setting with ESC P, ESC M, or ESC g commands during proportional
mode take effect when the printer exits proportional mode. The printer automatically switches to LQ mode
when the printer exits proportional mode.
28Programmer Manual
ESC S
Sets subscript or superscript printing (IBM/EPSON).
ASCII CodeESC S n
Hexadecimal ValueX'1B' X'53' n
Decimal Value27 83 n
Selects subscript or superscript printing. See the following table:
Proportional printing of subscript or superscript characters is performed at 2/3 of the proportional character
width. Use the ESC T command to cancel subscript or superscript printing.
SI or ESC SI
Sets compressed printing (IBM/EPSON).
ASCII CodeSI or ESC SI
Hexadecimal ValueX'0F' or X'1B' X'0F'
Decimal Value15 or 27 15
This command is accepted at any position within the line. The setting of this command depends on the
horizontal spacing previously set:
ASCII CodeSO or ESC S0
Hexadecimal ValueX'0E' or X'1B' X'0E'
Decimal Value14 or 27 14
This code causes subsequent data in the same line to be printed as double width characters. It is
canceled by the CR, LF, VT, FF and DC4 codes or when the buffer is full.
ESC s
Sets and resets Quiet printing. (EPSON)
ASCII CodeESC s n
Hexadecimal ValueX'1B' X'73' n
Decimal Value27 115 n
ASCII CodeESC w n
Hexadecimal ValueX'1B' X'77' n
Decimal Value27 119 n
Range0 ≤ n ≤ 255
Enables or disables double-height printing of all characters. The first line of a page is not doubled if the
ESC w command is sent on the first line; all following lines are printed at double-height. Double-height
printing overrides superscript, subscript, and condensed. Superscript, subscript, and condensed print
resumes when double-height printing is canceled. See the following table:
If you select proportional spacing with the ESC p command during Draft printing, the printer prints an LQ
font instead. When you cancel proportional spacing with the ESC p command, the printer returns to Draft
printing.
This command is accepted at any position within the line. DC2 code cancels compressed printing. The
setting of this command depends on the horizontal spacing previously set
This code causes subsequent data in the same line to be printed as double width characters. It is
cancelled by the CR, LF, VT, FF and DC4 codes or when the buffer is full.
Chapter 2. EPSON/IBM Mode31
Character Set
ESC[T
Selects a Code page (IBM).
ASCII CodeESC [ T 4000HcLc
Hexadecimal ValueX'1B' X'5B' X'54' 04 00 00 00 Hc Lc
Decimal Value27 91 84 4000HcLc
This sequence allows you to change the current code page. If an unavailable code page is specified, this
command is ignored. The digits 04 00 00 00 (hexadecimal) and 4000(decimal) are constant. To
calculate Hc Lc for a code page that is not shown: If your code page has an alphabetic character, such as
437G, add 10,000 to the code page number, then divide by 256.
v The whole number result is the Hc value
v The remainder is the Lc value.
+ n2x 256 characters from the table of all printable characters.
1
32Programmer Manual
2
2
≤ 255
1
2
The total number of characters that will be printed from the table of all printable characters is equal to n1+
(n2x 256). For example, to print 300 characters from the table of all printable characters: n1= 44, n2=1.
The control codes are not recognized as long as this sequence is active. The space character is printed as
an unassigned character.
ESC ^
Prints a single character from the all characters table. (IBM)
ASCII CodeESC ^ n
Hexadecimal ValueX'1B' X'5E' n
Decimal Value27 94 n
Range0 ≤ n ≤ 255
This command prints the next character from the all characters table. This sequence prints only one
character from the all character table.
ASCII CodeESC k n
Hexadecimal ValueX'1B' X'6B' n
Decimal Value27 107 n
Selects one of the available fonts in Letter Quality. If Draft mode is selected when this command is sent,
the new LQ font is selected when the printer returns to LQ printing.
A boldface font is available if the command ESC p1 (proportional) is sent.
ASCII CodeESC R n
Hexadecimal ValueX'1B' X'52' n
Decimal Value27 82 n
Range0 ≤ n ≤ 13
This code causes the national character set to be selected according to the parameter n. See the following
table:
nNational Character SetsnNational Character Sets
0USA8Japan
1France9Norway
2Germany10Denmark-II
3United Kingdom11Spain-II
4Denmark-I12Latin America
5Sweden13French Canadian
6Italy14Latin America-II
7Spain-I
ESC t
Selects characters table. (EPSON)
ASCII CodeESC t n
Hexadecimal ValueX'1B' X'74' n
Decimal Value27 116 n
34Programmer Manual
Range0 ≤ n ≤ 3
Selects the upper half (from 128 to 255) from the character table.
nCharacter Tables
0Standard Italic Character Set
1ASCII Character Set
2Remaps DLL Character Set from position 0-127 to 128-255
Chapter 2. EPSON/IBM Mode35
Download Character
ESC %
Selects user-defined character set. (EPSON)
ASCII CodeESC & n
Hexadecimal ValueX'1B' X'25' n
Decimal Value27 37 n
This command switches between normal (resident) and user-defined (downloaded) characters:
nSelection
1Selects the use of downloaded character set in RAM
0Selects the use of resident character set in ROM
ESC &
Defines the 24-pin download characters. (EPSON)
ASCII CodeESC & NUL n m a
0a1a2d1
Hexadecimal ValueX'1B' X'26' 00nma0a1a2d1... d
Decimal Value27 38 00nma0a1a2d1... d
... d
x
x
x
Range
0 ≤ n ≤ 127
0 ≤ m ≤ 127
0<=d
a
0a1a2
< = 255
x
: see below
This escape sequence is used to download fonts to the printer. Once fonts have been downloaded, they
can be selected by ESC % n.
Parameter n is the character position of the first character and parameter m is the character position of the
last character to be downloaded. For example, to download character “RST” the user would specify n=52H
and m=54H. Characters must be downloaded to consecutive positions after the first character. The
parameters a
, a1, and a2must be sent for each character being downloaded and are known as the
0
attribute bytes. Parameter a0specifies the number of dot columns to be added before the character.
Parameter a
add after the character. The parameters d
specifies the width of the character. Parameter a2specifies the number of dot columns to
1
... dxrepresent the dot column data being downloaded for each
1
character. 2 or 3 data bytes represent 1 column of dots depending upon the print mode type as shown
below. Draft, Letter Quality, superscript, and subscript fonts can be downloaded. It is necessary to select
the desired print mode prior to sending the download data. Each dot column has a width of 1/120" in Draft
and 1/360 in Letter Quality. Following are limits of parameters a
, a1, and a2for LQ Draft and
0
Super/Subscript print mode at various character pitches.
If a data bit has a value of 1, the corresponding wire is fired. If a data bit has a value of 0, the wire is not
fired. In general, the user of this feature must be careful that the number of bytes of downloaded
information is equal to 3 x width of the character being defined (a
) or the results will be unpredictable.
1
Only one print mode type may be downloaded at a time. That is, if draft characters have been
downloaded, then selecting Letter Quality and downloading characters will cause the draft download
characters to be cleared. This applies similarly to script characters.
This code copies the character generator in ROM into RAM area dedicated to the user-defined characters.
The n parameter represents the LQ type style. It copies the data for the characters between 0 and 255
(from the italic character table) of the Courier or Gothic font from ROM to RAM memory according to the
following values:
This sequence allows you to design and then down-line load special characters not present in the
character set in use. Whenever you would like to start the DLL setting procedure, proceed as follows:
v Copy the character generator in ROM into RAM
v Select the DLL generator
There are 256 entries of 9 bytes that compose the look up table of a character generator. One entry
describes one character as follows:
Byte 1, 2The absolute address of the character definition.
Byte 3 :
Bit 7
1: indicates that the character is a graphic character (connects at 6 lpi)
0: indicates that the character is an alphanumeric character
Bit 6
0: indicates a DLL character
1: indicates a resident character
Bit 5 to 0These 6 bits indicate the effective number of dot columns of the character
shape stored in memory.
Byte 4:Graphic character description:
v 0: shading character
v 1: line drawing character
v 10: underscored character
v 11: not supported
All graphics characters are 30 dots high. An underscored character is
defined as a blank graphic (all zeros) and it is automatically generated by
the printer. A shading character repeats dots 1—6 of each column as dots
25 through 30 respectively. A line drawing character repeats dots 23 and
24 as the pairs 25 and 26, 27 and 28, 29 and 30.
Bit 5 to 0The number of dot columns of the character shape minus one. For
38Programmer Manual
example, the character width of Draft generator is 10 dots and bit 5 to 0
must be set to 9.
Bit 5 to 9Compression mask description. It is used to optimize the memory
occupation and it is based on the concept that a dot column on its left is
not stored. You can calculate the compression mask of a character only
after designing the entire character. Every bit is associated with a dot
column with bit 7 of byte 5 associated with the leftmost column. The bit is
set to {1} if the column is equal to the preceding one; otherwise it is set to
{0}. If the character is longer than 39 dot columns, the remaining dot
columns must be stored without compression. Bit 40 (bit 0 of byte 9) must
be 0. If no compression is present in the character, byte 5 to 9 is
composed of all zeros.
If you wish to copy an entry over another entry so that two characters with the same characteristics and
different code are present in the same look-up table, the DLL sequence ESC = nmidpthas the following
meaning:
n and m:Indicates the byte number of the sequence n is the low part and m is the high part.
id:Indicates the printer model. The id related to your printer is 23H.
p and t:Indicates the memory address of the character that you wish to replace. p is the low part
and t is the high part.
data:Is the entry 9 bytes of the character that you want to position at address specified by p
and t.
Bit-Image
ESC *
Sets dot graphics printing. (IBM XL24 AGM, EPSON)
ASCII CodeESC * mn
1n2p1p2
Hexadecimal ValueX'1B' X'2A' mn1n2p1p2... p
Decimal Value27 42 mn1n2p1p2... p
Range
0 ≤ n1, n2≤ 255
≤ 255
0 ≤ p
x
Selects 8-dot graphic or 24-dot graphic modes according to the table below. The m parameter
determinates the horizontal density as well as the number of wires to be fired.
For 8-dot images, the total number of data bytes (p) to be sent is determined by the following formula: n
n2x 256.
mDPI# DOTSDENSITY NAMEOther ESC
0608Normal densityESC K
11208Dual densityESC L
2120 (virtual)8Double speed, Dual densityESC Y
3240 (virtual)8Quadruple-densityESC Z
4808CTR Graphic I
6908CTR Graphic II
... p
x
x
x
+
1
For 24-dot images, the total number of data bytes (px) to be sent is determined by the following formula:
3.x.(n1+n2 x 256).
Chapter 2. EPSON/IBM Mode39
mDPI# DOTSDENSITY NAME
326024Normal density
3312024Double density
389024CRT Graphic III
3918024Triple-density
40360 (virtual)24Hex-density
Reassigns one of the dot graphics mode (described in the command ESC *) to one of the following
commands: ESC K, ESC L, ESC Y and ESC Z. The n parameter specifies a character (K, L, Y, or Z)
which is reassigned to specific mode m = 0,1,2,3.
mnm n
0(K): ESC K graphic command2(Y): ESC Y graphic command
1(L): ESC L graphic command3(Z): ESC Z graphic command
ESC K
Normal density dot graphics printing (60 dpi) (IBM/EPSON).
ASCII CodeESC K n
1n2p1p2
Hexadecimal ValueX'1B' X'4B' n1n2p1p2... p
Decimal Value27 75 n1n2p1p2... p
Range
≤ 255
0 ≤ n
1
≤ 31
0 ≤ n
2
0 ≤ p ≤ 255
Terminator code. This command prints dot graphics at 60 horizontal dots per inch (dpi) by 180 vertical dpi.
The parameter values are calculated as follows:
n
1
n
2
p
1
Remainder of the number of columns divided by 256.
Integer result of the previous division.
Sum of the values corresponding to the dots that should be printed in the first column of the
graphics pattern.
p
2
Sum of the values corresponding to the dots that should be printed in the second column of the
graphics pattern.
p
x
Sum of the values corresponding to the dots that should be printed in the last column of the
graphics pattern.
... p
x
x
x
40Programmer Manual
ESC L
Double density dot graphics printing (120 dpi) (IBM/EPSON).
ASCII CodeESC L n1n2p1p2... p
Hexadecimal ValueX'1B' X'4C' n1n2p1p2... p
Decimal Value27 76 n1n2p1p2... p
x
x
x
Range
≤ 255
0 ≤ n
1
0 ≤ n2≤ 31
0 ≤ p ≤ 255
Terminator code. This command prints dot graphics at 120 horizontal dpi by 180 vertical dpi.
The parameter values should be calculated as follows:
n
n
p
Remainder of the number of columns divided by 256.
1
Integer result of the previous division.
2
Sum of the values corresponding to the dots that should be printed in the first column of the
1
graphics pattern.
p
Sum of the values corresponding to the dots that should be printed in the second column of the
2
graphics pattern.
p
Sum of the values corresponding to the dots that should be printed in the last column of the
x
graphics pattern.
ESC Y
Double density dot graphics printing at double-speed graphics (120 virtual dpi) (IBM/EPSON).
ASCII CodeESC Y n
1n2p1p2
Hexadecimal ValueX'1B' X'59' n1n2p1p2... p
Decimal Value27 89 n1n2p1p2... p
Range
0 ≤ n1≤ 255
≤ 31
0 ≤ n
2
0 ≤ p ≤ 255
Terminator code. This command prints dot graphics at 120 horizontal dpi by 180 vertical dpi.
The parameter values should be calculated as follows:
n
n
p
Remainder of the number of columns divided by 256.
1
Integer result of the previous division.
2
Sum of the values corresponding to the dots that should be printed in the first column of the
1
graphics pattern.
p
Sum of the values corresponding to the dots that should be printed in the second column of the
2
graphics pattern.
p
Sum of the values corresponding to the dots that should be printed in the last column of the
x
graphics pattern.
... p
x
x
x
Chapter 2. EPSON/IBM Mode41
ESC Z
Quadruple density dot graphics printing (240 virtual dpi) (IBM/EPSON).
ASCII CodeESC Z n1n2p1p2... p
Hexadecimal ValueX'1B' X'5A' n1n2p1p2... p
Decimal Value27 90 n1n2p1p2... p
x
x
x
Range
≤ 255
0 ≤ n
1
0 ≤ n2≤ 31
0 ≤ p ≤ 255
Terminator code. This command prints dot graphics at 240 horizontal dot per inch by 180 vertical dpi.
The parameter values should be calculated as follows:
n
1
n
2
p
1
Remainder of the number of columns divided by 256.
Integer result of the previous division.
Sum of the values corresponding to the dots that should be printed in the first column of the
graphics pattern.
p
2
Sum of the values corresponding to the dots that should be printed in the second column of the
graphics pattern.
ESC[g
Selects 8 or 24 needle dot graphics mode. (IBM)
ASCII CodeESC [ g lhmn1... n
Hexadecimal ValueX'1B' X'5B' X'67' lhmn1... n
Decimal Value27 91 103 lhmn1... n
k
k
k
This command selects dot graphics in 8 or 24 needle configuration. h*256+l represents the number of data
+ l. The m parameter represents the dot graphics modes as shown in the following table:
mDENSITYNEEDLEFUNCTION
0608Same as ESC K (8 needles)
11208Same as ESC L (8 needles)
21208Same as ESC Y (8 needles)
32408Same as ESC Z (8 needles)
86024Same as ESC * (32)
912024Same as ESC * (33)
1118024Same as ESC * (39)
1236024Same as ESC * (40)
The n1, n2up to nkparameters are dot graphics data. If you select the 8 needle dot graphics mode, one
byte of data is needed for each column so that the formula h*256+l = number of columns + l is valid. If
you select the 24 needle dot graphics mode, three bytes of data is needed for each column so that the
formula h*256+l = number of columns *3−l is valid.
This code deselects the printer. The printer remains deselected until it receives a DC1 command or power
is turned off then on again. The printer ignores the ESC @ command (initialize printer) when it is
deselected.
This command causes the printer to delete the last printable character sent to the printer. Printer control
codes are not affected. The printer ignores this command if it follows a command that moves the
horizontal print position (ESC $, ESC \, or HT).
This command cancels any controls on the Most Significant Bit (MSB) (bit number 7) set by ESC = or
ESC > commands. The printer then accepts all MSB data as is.
This command sets the MSB (bit number 7) of all incoming data to 1. All data is affected, including
graphics data.
ESC Q
Deselects Printer. (IBM)
ASCII CodeESC Q n
Hexadecimal ValueX'1B' X'51' n
Decimal Value27 81 n
This sequence tells the printer not to accept data from the host. The host must reset the printer or select
the printer by using DC1 (Select Printer) to accept data. To deselect the printer, use ESC Q35.
This code causes printing to be continued from one column to the left of the current carriage position. The
printer ignores this command if it would move the print position to the left of the left margin.
v To go back to the current printer setup settings
v To cancel any selected print attributes
v To reset the column counter
v To set the horizontal tabulations every 8 columns
v To clear all vertical tabulations
Only the selection of the Draft or Quality printing DLL, and the selected character generator are
maintained.
ESC[K
Sets initial conditions. (IBM 2391 + only)
ASCII CodeESC [ K n1n2init id
Hexadecimal ValueX'1B' X'5B' X'4B' n
Decimal Value27 91 75 n
This command causes the printer to reset to its initial status:
1n2
init id
1n2
init id
, n
n
1
2
initThe init parameter specifies which condition the printer should be initialized: normally init =
The n1and n2parameters specify the number of bytes in the escape sequence normally,
= 2 and n2= always 0.
n
1
0,1,4,5,254,255.
Chapter 2. EPSON/IBM Mode45
initDescription
0Initializes the printer to user-default settings. The download font remains
unchanged. If parameters are specified, they overwrite the default settings.
If the emulation mode is changed, the download font is initialized. This
command only copies data from the selected macro, adds parameter
changes, if any, and stores it in working RAM. The data stored in the
macro's nonvolatile RAM is not affected.
1Initializes the printer to user-default settings. The download font is
initialized. If parameters are specified, they overwrite the default settings.
This command only copies data from the selected macro, adds parameter
changes, if any, and stores it in working RAM. The data stored in the
macro's nonvolatile RAM is not affected.
4Initializes the printer to factory settings. The download font remains
unchanged. If parameters are specified, they overwrite the default settings.
If the emulation mode is changed, the download font is initialized. This
command only copies the default settings from ROM, adds parameter
changes, if any, and stores it in working RAM. The data stored in the
macro's nonvolatile RAM is not affected.
5Initializes the printer to factory settings. The download font is initialized. If
parameters are specified, they overwrite the default settings. This
command only copies the default settings from ROM, adds parameter
changes, if any, and stores it in working RAM. The data stored in the
macro's nonvolatile RAM is not affected.
254Initializes the printer to user-default settings. The download font is
initialized. If parameters are specified, they overwrite the default settings.
This command changes the data stored in the selected macro. It copies
data from the selected macro, adds parameter changes, if any, and stores
it in working RAM and in the selected macro. It also changes the default
macro to the value of parm 3.
255Initializes the printer to default settings. The download font is initialized. If
parameters are specified, they overwrite the default settings. This
command changes the data stored in the macro's nonvolatile RAM. It
copies default settings from ROM, adds parameter changes, if any, and
stores it in working RAM and all macros. It also sets the default macro to
disable.
idThe id parameter specifies the printer for which the following parameter bytes are
intended. If the ID does not address your printer, the mode bytes that follow are ignored.
The ID values are Hex = X'B6', Dec = 182.
parm
1
Specifies the following functions:
BitNot setSet
7Discard byteProcess this byteIgnore this byte
6Reserved
5AlarmAlarm enabledAlarm disabled
4Automatic CRNo CR on vertical movement CR on vertical movement
3Automatic LFNo LF after CRLF after CR
2Page length11 inches12 inches
1Slashed zeroZero without slashZero with slash
0Character setCS1CS2
46Programmer Manual
parm
2
Specifies the following functions:
BitNot setSet
7Discard byteProcess this byteIgnore this byte
6Pass over from
CP437-CP850
5Reserved
4Reserved
3Reserved
2Reserved
1Line length13.6 inch8 inch
0Reserved
CP437CP850
Only the selection of the Draft or Quality printing DLL, and the selected character generator are
maintained.
ESC j
Stops printing. (IBM)
ASCII CodeESC j n
Hexadecimal ValueX'1B' X'6A' n
Decimal Value27 106 n
This command stops the printer. The printer goes offline and a BUSY signal is sent to the computer. To
place the printer online, press the ON LINE key.
ESC U
Sets printing direction (IBM/Epson).
ASCII CodeESC U n
Hexadecimal ValueX'1B' X'55' n
Decimal Value27 85 n
Selects bidirectional or unidirectional printing according to the parameters below:
nDirection
0Bidirectional printing
1Unidirectional (left to right) printing
Unidirectional printing provides better alignment of vertical lines while bidirectional printing is faster.
Chapter 2. EPSON/IBM Mode47
ESC[un
Bar Codes selection. (IBM - Epson)
ASCII CodeESC [ u n
Hexadecimal ValueX'1B' X'5B' X'75' n
Decimal Value27 91 117 n
This command is recognized only if the Bar Code menu option is set to “Alternate” mode.
n
0Exit Bar Code mode
1Enter Bar Code mode. Subsequent data are barcode data strings as set by ESC [ v n
Set barcode parameters according to the table below. Parameter values that are not supported result in
the command being ignored.
nParameter Descriptionm valuesm default
0Barcode stylesee below table4
1Barcode height1-120 (1/12" increments)12
2Human readable line0=disable 1=enable1
3Narrow bar width2-2253
4Wide bar width2-2257
5Narrow space width2-2253
6Wide space width2-2257
7Intercharacter space width2-2253
8Rotation and HRC font0.1=no rotation and current font for HRC
2=90 3=180 4=270 and special HRC font
9Horizontal print density1=120 2=144 3=180 dpi1
10Check digit0=disable 1=enable0
11HRC font for rotate barcode3=OCRA 4=OCRB3
12Barcode height0-240 (1/24" increments)24
Table 1. Supported Bar Code Styles
mStyle
0Interleaved 2 of 5
1Bidirectional 2 of 5
2Matrix 2 of 5
3Industrial 2 of 5
0
48Programmer Manual
Table 1. Supported Bar Code Styles (continued)
4Code 3 of 9 (default)
5EAN-8
6EAN-13
7Code 11
9Codabar (default start/stop = a/t)
10Codabar (default start/stop = b/n)
11Codabar (default start/stop = c/*)
12Codabar (default start/stop = d/e)
13UPC-A
14UPS-E
15Code 93
16Code 128 (subset A, B, and C)
17Code 128 (subset A, B, and C)
18Code 128 (subset A, B, and C)
19MSI
20UPC 2 Supplemental
21UPC 5 Supplemental
22EAN 2 Supplemental
23EAN 5 Supplemental
50Postnet
Chapter 2. EPSON/IBM Mode49
50Programmer Manual
Chapter 3. Native Emulation
The printer in the Native Mode supports the following printer commands.
Format Control
DC4 DC4 ESC 1
Sets vertical spacing n/180 inch.
ASCII CodeDC4 DC4 ESC 1 n
Hexadecimal ValueX'14' X'14' X'1B' X'31' n
Decimal Value20 20 27 49 n
Range0 ≤ n ≤ 255
This command sets vertical spacing to n/180 inch for subsequent line feeds.
This command sets vertical spacing to 8 lines per 30 mm.
DC4 DC4 ESC A
Sets the horizontal spacing to 15, 17.1, 20, 24 CPI.
ASCII CodeDC4 DC4 ESC A n
Hexadecimal ValueX'14' X'14' X'1B' X'41' n
Decimal Value20 20 27 65 n
This is terminator code and causes the current contents of the print buffer to be printed. The subsequent
characters are printed at the horizontal spacing specified by the n parameter.
nSpacing
415 cpi
517 cpi
620 cpi
724 cpi
52Programmer Manual
Native Character Set
DC4 DC4 ESC g
Selects LQ fonts.
ASCII CodeDC4 DC4 ESC g n
Hexadecimal ValueX'14' X'14' X'1B' X'67' n
Decimal Value20 20 27 103 n
Range0 ≤ n ≤ 255
If down-line loading is selected, the command is stored and activated as soon as the down-line loading is
canceled.
Boldface is available if the ESC p1 (proportional) is sent.
18-digits European Article NumberingEAN-8
213-digits European Article NumberingEAN-13
3Universal Product Code Type AUPC-A
4Universal Product Code Type EUPC-E
5UPC/EAN 2 Digit SupplementUPC-EAN 2
6UPC/EAN 5 Digit SupplementUPC-EAN 5
7, 8, 98-digits European Article NumberingEAN-8
10General Purpose Bar CodeCode-GP
11Code 2 of 5 3-BAR (Data Logic)C25-3BAR
12Binary Coded DecimalCODE BCD
13MSI-PlesseyMSI
14AIM-USD-8 / Code-11Code 11
15AIM-USD-7 / Code-93Code 93
16Code 2 of 5 BidirectionalC25-BID
17Code 2 of 5 InterleavedC25-INT
18Code 2 of 5 IndustrialC25-IND
19Code 2 of 5 MatrixC25-MTX
20Code 3 of 9Code-39
218-digits European Article NumberingEAN-8
22Codabar (all types)CODABAR
23Code 128CODE-128
24USPS-PostNetPOSTNET
54Programmer Manual
f = Readable character printing
f = 1 printing enabled
f = 0 printing disabled
F = Font selection for the printable characters
FSelection
0Selected font by r value
1Default font for text
2Special font for OCR-A o OCR-B bar codes according to the t value
3Special font for OCR-A bar codes
4Special font for OCR-B bar codes
r = Bar code rotation
rSelection
0No rotation
1Rotation at 0°
2Rotation at 90°
3Rotation at 180°
4Rotation at 270°
o = A check digit is inserted as the last character of the received string according to the bar code
q = The horizontal graphic density of the bar code
qSelection
01/120"
11/180"
b = Narrow bar width in n/180", 3 < b <18
s = Narrow space width in n/180", 3 < s <18
B = Wide bar width in n/180", 6 < B <72
S = Wide space width in n/180", 6 < S <72
i = Spacing between characters in n/180", 3 < i <72
EM = Check sequence terminator
Chapter 3. Native Emulation55
Bar Code Description
EAN-8DC4 DC4 ESC ! n1pEM
The EAN-8 bar code data field must only contain numeric data and must be eight bytes long
including the check digit. The EAN-8 character repertoire provides 0 to 9 ASCII numeric figures. n
indicates the bar code height in units of 1/6 inch and must be in the range 1 to 12. p must be NUL
(hex. X'00') if no Human Readable Characters are to be printed, and 1 (hex. X'01') if they are to be
printed. The range of values for the n and p parameters can be increased of 32 dec.
EAN-13DC4 DC4 ESC ! n2pEM
The EAN-13 bar code data field must only contain numeric data and must be 13 bytes long
including the check digit. The EAN-13 character repertoire provides 0 to 9 ASCII numeric figures. n
indicates the bar code height in units of 1/6 inch and must be in the range 1 to 12. If you want to
print the Human Readable Characters, p must have the value 1 (hex. X'01'); otherwise this value
must be NUL (hex. X'00'). The range of values for the n and p parameters can be increased of 32
dec.
UPC-ADC4 DC4 ESC ! n3pEM
The UPC-A bar code data field allows 10 numeric characters plus one system number digit and one
check digit at the leftmost and rightmost positions, respectively. The UPC-A character repertoire
provides 0 to 9 ASCII numeric figures. n indicates the bar code height in units of 1/6 inch and must
be in the range 1 to 12. p must be NUL (hex. X'00') if no Human Readable Characters are to be
printed, and 1 (hex. X'01') if they are to be printed. The range of values for the n and p parameters
can be increased of 32 dec.
UPC-EDC4 DC4 ESC ! n4pEM
If 11-digit strings are received and the o check digit field is missing or takes values 0 or 2, question
marks are printed in place of the HRC string, when possible. If the o field takes a value of 1, the
th
digit is inserted by the printer as a result of the internally available algorithm applied to the
12
received string.
If 10-digit strings are received and the o check-digit is missing or takes NULL value, question marks
are printed in place of HRC string, if possible. If the o field takes a value of 1, a default 0
System-Digit is automatically inserted by the printer and the 12
internally available algorithm applied to the final string.
If the final UPC-A string cannot be compressed to an 8-digits string, or the received System-Digit is
different than 0 or 1, question marks are printed in place of the HRC string, if possible.
The LEFT and RIGHT delimiters, System-Digit, and the Check-Digit are printed as descending bars
to make a field to host a 6-digits HRC string. The System-Digit HRC to the left of the LEFT delimiter
(at about the middle of the symbol) when the f field is missing or set to 1. In this case, the
Check-Digit shows in HRC to the right of the RIGHT delimiter (at about the middle of the symbol),
when o field takes values 2 or 3. Otherwise it never shows on the HRC string.
th
digit is also inserted as result of he
56Programmer Manual
UPC-EAN 2DC4 DC4 ESC ! n5pEM
The ADD ON-2 bar code data fields contain numeric data only. Otherwise question marks are
printed in place of the HRC string, if possible.
If 3-digit strings are received within a DC4 DC4 ESC (... EM control sequence and the o check-digit
option field is missing or takes NULL value, the symbol encodes the first 2 digits and the 3
received digit is used as the check digit, even though this may affect its readability. If the o field
takes a value of 1, the 3
rd
Question marks are printed in place of HRC string when mismatched, if possible.
If 2-digit strings are received and o check digit field is missing or takes NULL value, question marks
are printed in place of the HRC string, when possible. If the o field takes a value of 1, the check
digit are computed applying the internally available algorithm to the received string in order to
properly encode the symbol.
If the f field is missing or takes a value of 1, the 2-digit HRC string is printed above the Bar/Spaces
symbol and its height is part of the overall symbol's height. The check-digit never shows on the
HRC string. If the f field takes a value of 0, the symbol's encoding prints at full height.
UPC-EAN 5DC4 DC4 ESC ! n6pEM
The ADD ON-5 bar code data field contains numeric data only. Otherwise question marks are
printed in place of the HRC string, if possible.
If 6-digit strings are received within a DC4 DC4 ESC (... EM control sequence and o check-digit
option field is missing or takes NULL value, the symbol encodes the first 5 digits and the 6th
received digit is used as a check digit, even though this may affect its readability. If the o check
digit option takes a value of 1, the 6
digit. Question marks are printed in place of the HRC string when mismatching, if possible.
If 5-digit strings are received and the o check digit field is missing or takes a NULL value, question
marks are printed in place of the HRC string, if possible. If the o field takes a value of 1, the check
digit is computed applying the internally available algorithm to the received string in order to
properly encode the symbol
rd
digit is matched as opposed to the internally generated check-digit.
th
digit is matched as opposed to the internally generated check
If the f field is missing or takes a value of 1, the 5-digit HRC string is printed above the Bar/Spaces
symbol and its height is part of the overall symbol's height; the check-digit never shows on the HRC
string. If the f field takes a value of 0, the symbol’s encoding prints at full height.
CODE GPDC4 DC4 ESC ! n10pEM
The CODE-GP bar code allows bar codes to be constructed from the two basic elements (BAR and
SPACE) by sending 0,1 digits: digit 0 produces a BAR and digit 1 produces a SPACE.
These two elements may be combined in any sequence, giving the possibility of producing bars and
spaces of any width that is a multiple of the basic element width. The default bar/spaces width is
1/60" (q = 0,1) but these values may be set by the user according to its specific needs. Data fields
do not have a defined format length and contain 0,1 data only. Otherwise question marks are
printed in place of HRC string, if possible.
No Human Readable Interpretation is possible No TEXT STRING below or above the bar/space
symbol can be printed. The f and o fields are ignored.
C25-3BARDC4 DC4 ESC ! n11pEM
The C25-3BAR bar code data fields do not have a defined format length and contain numeric data
only. Otherwise, question marks are printed in place of the HRC string, if possible. If the o check
digit option field takes a value of 1, an internally generated check digit complying with general 2/5
family algorithm is added to the encoded string. However, it will not show on the required HRC
string.
Chapter 3. Native Emulation57
Code BCDDC4 DC4 ESC ! n12pEM
The CODE-BCD bar code data fields do not have a defined format length and contain numeric data
only. Otherwise question marks will be printed in place of the HRC string, if possible. No internal
check digit algorithm is available for this standard. The o field is meaningless.
MSI PlesseyDC4 DC4 ESC ! n13pEM
The MSI bar code data fields do not have a defined format length and must contain numeric data
only. Otherwise question marks are printed in place of the HRC string, if possible. To releave the
host from calculating the MSI check digits, internal algorithms are provided that are accessible by the
host application program, giving the proper supported value to the o check-digit option field,
according to the following options:
0Print the bar code symbol with no
printer-generated check digits
1Print the bar code symbol with IBM
Modulus-10 check digit - generated by
the printer and put at the end of the
numeric string. This is the 2
st
The 1
check digit is IBM Modulus-10
also.
3Print the bar code symbol with both
check digits generated by the printer and
put it at the end of the data. The 2
check digit is IBM Modulus-10. The 1
check digit is NCR Modulus-11. If the
modulus is 10, it is an error and question
marks are printed in place of the HRC
string, if possible.
5Print the bar code symbol with both
check digits generated by the printer and
put it at the end of the data. The 2
check digit is IBM Modulus-10. The 1
check digit is the complement to 11 of
NCR Modulus-11 algorithm applied to the
received string, If the modulus is 0 or 1,
the check digit is 0.
7Print the bar code symbol with both
check digits generated by the printer and
put at the end of the data. The 2
digit is IBM Modulus-10. The 1
digit is the complement to 11 of NCR
Modulus-11 algorithm applied to the
received string. If the modulus is 0 or 1,
it is an error and question marks are
printed in place of the HRC string, if
possible.
The printer-generated second check digit does not show on the required HRC string.
nd
check digit.
nd
nd
nd
st
check
st
st
check
2Print the bar code symbol with both
check digits generated by the printer and
put at the end of the data. The 2
digit is IBM Modulus-10. The 1
st
check
nd
digit is also IBM Modulus-10.
4Print the bar code symbol with both
check digits generated by the printer and
put it at the end of the data. The 2
check digit is IBM Modulus-10. The 1
check digit is IBM Modulus-11. If the
modulus is 10, it is an error and question
marks are printed in place of the HRC
string, if possible.
6Print the bar code symbol with both
check digits generated by the printer and
put it at the end of the data. The 2
check digit is IBM Modulus-10. The 1
check digit is the complement to 11 of
IBM Modulus-11 algorithm applied to the
received string. If the modulus is 0 or 1,
the check digit is 0.
8Print the bar code symbol with both
check digits generated by the printer and
put at the end of the data. The 2
digit is IBM Modulus-10. The 1
st
check
nd
digit is the complement to 11 of IBM
Modulus-11 algorithm applied to the
received string. If the modulus is 0 or 1,
it is an error and question marks are
printed in place of the HRC string, if
possible.
check
nd
st
nd
st
check
58Programmer Manual
Code 11DC4 DC4 ESC ! n14pEM
The CODE-11 bar code fields do not have a defined format length and contain data belonging to
the character set listed below:
0123456789-
Otherwise question marks are printed in place of the HRC string, if possible.
This barcode type defines a variable WIDE/NARROW ratio. The bar code is printed at 1/180"
horizontal and vertical graphical printing resolution to ensure high readability rate. Each digit
encoding is separated from the next by a 1/90"—1/60" wide default Intercharacter Gap.
CODE-11 has unique a START/STOP character. The printer generates the couple related to each
symbol. It is visually interpreted by an OPEN TRIANGLE and will always appear on the HRC string
because its size is usually varied to signify the number of check digits being used in the particular
symbol:
v SMALL open triangle means ONE check-digit
v LARGE open triangle means TWO check-digit
The f field is meaningless and always defaults to the HRC string print.
Code 93DC4 DC4 ESC ! n15pEM
The CODE-93 bar code fields do not have a defined format length and contain data belonging to
the standard ASCII character set, including control codes.
Since the GS and EM control codes are used, the DC4 DC4 ESC (... EM “Print bar-code” control
sequence is part of the supported character set. The host application must SET THE
HIGHER-ORDER BIT of the above control codes to allow the printer to distinguish between
encodable data and string terminators.
The complete ASCII standard character set is encoded using 47 combinations of 9 bar/space
narrow elements arranged into 3 variable width bars with their adjacent variable width spaces. Each
of the bars in the supported combinations can be 1, 2, or 3 modules wide. The START/STOP
character has a 4-module wide bar. CODE-93 directly implements the basic subset as shown
below:
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-.SPACES$/+%
($) (%) (/) (+) (as special control characters)
# (as unique START/STOP character)
The other STANDARD-ASCII codes not presented above are represented by means of a
combination of one control character in the above set followed by a symbol in the alphabetical set.
The HRC string is printed BELOW the symbol when f field is set to 1 without check digits.
Non-printable ASCII characters are represented in the “control code” format (for example, CR is ^M,
where “control” is represented as DARK-SQUARE symbol).
2of5DC4 DC4 ESC ! n16pEM
BidirectionalThe BID-25 bar code data fields do not have a defined format length and contain numeric data only.
Otherwise, question marks are printed in place of the HRC string, if possible. If the o check digit
option field takes a value of 1, an internally generated check digit is added to the encoded string
that will not show on the required HRC string.
Chapter 3. Native Emulation59
2of5DC4 DC4 ESC ! n17pEM
InterleavedThe 2/5-INTERLEAVED bar code does not have a defined format length. However, the total sum of
the characters must be even. n indicates the bar code height and must be in the range 1 to 12. p
must be NUL (hex. X'00') if no Human Readable Characters are to be printed, and 1 (hex. X'01') if
they are to be printed.
2of5DC4 DC4 ESC ! n18pEM
IndustrialThe 2/5 INDUSTRIAL bar code. Data format length is variable and the supported character set only
provides ASCII numeric figures 0 to 9. n indicates the bar code height in units of 1/6 inch and must
be in the range 1 to 12. p must be NUL (hex. X'00') if no Human Readable Characters are to be
printed, and 1 (hex. X'01') if they are to be printed.
2of5DC4 DC4 ESC ! n19pEM
The 2/5 MATRIX bar code. Data format length is variable and the supported character set only
provides ASCII numeric figures 0 to 9. n indicates the bar code height in units of 1/6 inch and must
be in the range 1 to 12. p must be NUL (hex. X'00') if no Human Readable Characters are to be
printed, and 1 (hex. X'01') if they are to be printed.
Code 39DC4 DC4 ESC ! n20pEM
The CODE 39 bar code. Data format length is variable and must always start and end with an
asterisk. It can contain the alphanumeric character listed below:
The parameter indicates the bar code height in units of 1/6 inch and must be in the range 1 to 12.
The p parameter must be NUL (hex. X'00') if no Human Readable Characters are to be printed, and
1 (hex. X'01') if they are to be printed.
CODABARDC4 DC4 ESC ! n22pEM
The Codabar bar code data fields do not have a defined format length and contain data belonging
to the character set listed hereafter:
0123456789-$:/.+
ABCDENT*abcdent(only as START/STOP characters)
The printer allows any combination of START/STOP characters. If the first and last characters of the
received string do not belong to the START/STOP characters subset, question marks are printed in
place of the HRC string, if possible
CODE 128DC4 DC4 ESC ! n23pEM
The CODE-128 bar code data fields do not have a defined format length and contain data
belonging to the standard ASCII character set, including control codes. Since the GS and EM
control codes used within the DC4 DC4 ESC (...EM “Print Bar Code” control sequence are part of
the supported character set, the host application must SET THE HIGHER-ORDER BIT of the above
control codes to allow the printer to distinguish between encodable data and string terminators.
60Programmer Manual
POSTNETDC4 DC4 ESC ! n24pEM
The POSTNET bar code data fields contain only numeric data and do not have a defined format
length. POSTNET bar codes have no printed HRC string. The LOW/TALL bars that encode the
symbol comply with the U.S.P.S standard regardless of the p field value.
DC4 DC4 ESC (GS
Prints bar code symbols.
ASCII CodeDC4 DC4 ESC (GS n
Hexadecimal ValueX'14' X'14' X'1B' X'28' X'1D' n
Decimal Value20 20 27 40 29 n
data GS n2data ... EM
1
data ... 19
1
data ... 25
1
Range
1 ≤ n ≤ 12
0 ≤ p ≤ 1
This sequence prints the bar code symbol according to the previous selection. If you want to print more
than one bar code symbol of the same type and height, GS n defines the distance from the beginning of
the line or between two bar code symbols in multiples of 1/60 or 1/90 of an inch, depending upon the
selected barcode density (120 or 180 dpi). At the end of the line EM must close this command.
This command sets the required amplification factor to be applied to the current font.
hIt is the horizontal amplification factor; the value range is 1 to 4. It is applied to the basic symbols.
vIt is the vertical amplification factor; the value range is 1 to 4.
0 values for either the h and v parameters keep the related current amplification factor unchanged.
The internally available symbol's amplification algorithms support the following character attributes that
may be selected by means of the available control sequences within the currently active emulation: double
width, double-height, emphasized, double strike, subscript, superscript, italics, proportional, and
compressed.
Doublewide and double-high attributes must be lower than 2.
DC4 DC4 ESC N
Selects/loads or parks the fanfold from the Front 2 path.
ASCII CodeDC4 DC4 ESC N n
Hexadecimal ValueX'14' X'14' X'1B' X'4E' n
Decimal Value20 20 27 78 n
Range0 ≤ n ≤ 1
nSelection
0Selects and loads the fanfold from the Front2 path. If the paper is present, the printer automatically parks
the fanfold that is not requested before loading the new one (after having pressed the PARK key in response
to the TEAR IF NECESS/PARK PAPER message).
1Parks the fanfold loaded from the Front2 path to allow the tear off function (after having pressed the PARK
key in response to the TEAR IF NECESS/PARK PAPER message).
DC4 DC4 ESC p
Sets quality printing.
ASCII CodeDC4 DC4 ESC p n
62Programmer Manual
Hexadecimal ValueX'14' X'14' X'1B' X'70' n
Decimal Value20 20 27 112 n
This command is used to set the required character rotation to be applied to the selected font.
nSelection
0No rotation.
1Rotation at 0°
2Rotation at 90°
3Rotation at 180°
4Rotation at 270°
DC4 DC4 ESC T
Selects/loads or parks the fanfold from the Front1 path.
ASCII CodeDC4 DC4 ESC T n
Hexadecimal ValueX'14' X'14' X'1B' X'54' n
Chapter 3. Native Emulation63
Decimal Value20 20 27 84 n
Range0 ≤ n ≤ 1
nSelection
0Selects and loads the fanfold from the Front1 path. If the paper is present (cut sheet/fanfold), the printer
automatically parks this fanfold that is not requested before loading the new one (after having pressed the
PARK key in response to the TEAR IF NECESS/PARK PAPER message).
1Parks the fanfold loaded from the Front1 path to allow the tear off function (after having pressed the PARK
key in response to the TEAR IF NECESS/PARK PAPER message).
DC4 DC4 ESC Y
Selects emulation.
ASCII CodeDC4 DC4 ESC Y n
Hexadecimal ValueX'14' X'14' X'1B' X'59' n
Decimal Value20 20 27 89 n
Selects the printer emulation type according to the n parameter value:
ASCII CodeDC4 DC4 ESC Z n
Hexadecimal ValueX'14' X'14' X'1B' X'5A' n
Decimal Value20 20 27 90 n
The n parameter is the column number at 10 cpi where the AGA (Automatic Gap Adjustment) is made.
DC4 DC4 ESC u
Selects the user macros.
ASCII CodeDC4 DC4 ESC u n
Hexadecimal ValueX'14' X'14' X'1B' X'75' n
Decimal Value20 20 27 117 n
Range0 ≤ n ≤ 4
nSelection
1Selects User Macro 1
2Selects User Macro 2
4Selects User Macro 3
64Programmer Manual
5Selects User Macro 4
DC4 DC4 ESC v
Selects graphics print speed.
ASCII CodeDC4 DC4 ESC v n
Hexadecimal ValueX'14' X'14' X'1B' X'76' n
Decimal Value20 20 27 118 n
nSelection
0Selects graphics print at low speed
1Selects graphics print at high speed
DC4 DC4 ESC D
Sends the operator panel messages to the serial I/F.
ASCII CodeDC4 DC4 ESC D n
Hexadecimal ValueX'14' X'14' X'1B' X'44' n
Decimal Value20 20 27 68 n
This command enables or disables sending operator panel messages to the serial I/F. The string to send
is the following: STX “message (16 ASCII byte-characters)”EXT.
nSelection
0enabled
1disabled
DC4 DC4 ESC v
Selects graphics print speed.
ASCII CodeDC4 DC4 ESC v n
Hexadecimal ValueX'14' X'14' X'1B' X'76' n
Decimal Value20 20 27 118 n
nSelection
0Selects graphics printing at high vertical density (180 dpi) - reduced print speed.
1Selects graphics printing at low vertical density (90 dpi) - high print speed.
Chapter 3. Native Emulation65
66Programmer Manual
Chapter 4. ANSI Emulation Commands
The following printer commands are supported by this printer according to the ANSI X3.64 emulation.
Most dimensional parameters in ANSI protocol are expressed in “decipoints”. For example:
1 decipoint = 1/720 inch
72 decipoints = 1/10 inch
120 decipoints = 1/6 inch
720 decipoints = 1 inch
2880 decipoints = 4 inches
All parameter values must be expressed as ASCII numeric rather than binary values.
Parameters, within commands with multiple parameters, must be separated by a semicolon “;”.
See “Basic Program Sample” on page 86 and result printed by the printer.
67
Character Set Control
ESC [ p
x
1
Selects national character set (Select National Characters - SNC).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p
x
1
X'78'
1
Decimal Value27 91 p1120
This command selects the national character set table according to the p
parameter value. See the
1
following tables:
Table 2. 7-bit Substitution
p
1
0USA13Swedish/Finnish A
1Germany14Swedish/Finnish B
2French A15Swedish/Finnish C
3French B16Swedish/Finnish D
4French Canadian17Switzerland
5Netherlands18USA (ISO)
6Italian19Yugoslavia
7United Kingdom20United Kingdom A
8Spanish21Turkey
9Danish/Norwegian A22Greece
10Danish/Norwegian B90 to 99Downloaded Substitution Sets (all fonts)
11Danish/Norwegian C25Cyrillic
12Danish/Norwegian D
NATIONp
See the tables in “ANSI National Variations” on page 102.
1
NATION
68Programmer Manual
Table 3. 8-bit Substitution
p
1
CHARACTER SETSp
1
CHARACTER SETS
437Code Page 4378579Kamenicky
850Code Page 8508580CWI
851Code Page 8518581Roman-8
852Code Page 8528582IN2
853Code Page 8538583Code Page 864E
855Code Page 8558584 to 8590Reserved
858Code Page 8588591ISO 8859-1 Western Europe
(Euro symbol included)
860Code Page 8608592ISO 8859-2 Eastern Europe
863Code Page 8638593ISO 8859-3 Southern Europe
864Code Page 8648594ISO 8859-4 Northern Europe
865Code Page 8658595ISO 8859-5 Cyrillic
866Code Page 8668596ISO 8859-6 Arabic
867Code Page 8678597ISO 8859-7 Greek
1250Code Page 12508598ISO 8859-8 Hebrew
5915ISO 8859-158599ISO 8859-9 Southern Europe 2
(Euro symbol included)
8570 to 8575Reserved8600 to 8700Reserved for other ISO Tables
8576Mazowia
8577Turkish
8578Greek
See the tables in “Character Sets” on page 97.
Chapter 4. ANSI Emulation Commands69
Character Pitch and Print Modes
ESC [ p
Select graphics rendition (SGR).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p
Decimal Value27 91 p159 ... pn109
This command selects fonts, pitch, print modes, and character styles according to the parameter settings:
pDEFINITION
0Normal Print Mode
1Bold Print Mode
2Subscript Mode
3Superscript Mode
4Underline Mode
5Expanded Mode
6Proportional
7Italic Mode
8, 9Reserved
10Draft Font
11Draft Font
12LQ Gothic
13Draft Font
14LQ Courier
15Draft Italic
16LQ Gothic Italic
17Draft Italic
18LQ Courier Italic
19Draft
20Reserved
21Double Underline Mode
22Cancel Bold Mode
23Reserved
24Cancel Underline Mode (Single & Double)
25Cancel Expanded Mode
26Cancel Proportional Mode
30Select black (all ribbons)
60High speed draft at 10 cpi
61LQ Courier at 10 cpi
62LQ Prestige at 10 cpi
63LQ Script at 10 cpi
64LQ OCR-A at 10 cpi
65LQ OCR-B at 10 cpi
66LQ Courier at 10 cpi
67LQ Courier at 10 cpi
68LQ Courier at 10 cpi
70LQ Courier at 10 cpi
71LQ Courier at 10 cpi
72LQ Courier at 10 cpi
73LQ Courier at 10 cpi
; ... pnm
1
; ... pnm
1
X'3B' ... pnX'6D'
1
Subscript and Superscript modes are enabled through the System Menu (ANSI OPTIONS-S/SCRIPT YES).
Refer to the User Manual.
70Programmer Manual
ESC [ p1; p2SP B
Graphic size modification (GSM).
ASCII CodeESC [ p1; p2SP B
Hexadecimal ValueX'1B' X'5B' p
Decimal Value27 91 p
X'3B' p2X'20' X'42'
1
59 p232 66
1
This command sets the height and/or width of expanded and oversized characters.
The p
respectively. The default values of p
and p2parameters are the percentages by which the height and width will be multiplied,
1
and p2are 100%.
1
ESC [ p1t
Special print mode (Oversize/Expanded/Bar code Mode - SPM).
1
1
t
116
1
X'74'
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p
Decimal Value27 91 p
This sequence selects or deselects oversize expanded or bar code mode according to the p
value. See the following table:
p
0Cancel special mode
1Select oversize mode
2Select expanded mode
3Select bar code mode
1
FUNCTION
parameter
1
It can select just one special print mode at a time.
This code causes the print head to be moved to the next tab stop.
1
Chapter 4. ANSI Emulation Commands73
ESC H or HTS
Horizontal tab setting.
ASCII CodeESC H or HTS
Hexadecimal ValueX'1B' X'48' (7-bit) or X'88' (8-bit)
Decimal Value27 72 (7-bit) or 136 (8-bit)
This command causes a horizontal tab stop to be set to the decipoint value of the current print position.
ESC [ p1; pnu
Sets horizontal tab stops at specified positions multiple horizontal tab set (HTS).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p
Decimal Value27 91 p
This command sets up to 22 horizontal tab stops at each decipoint position specified by p parameters.
When specifying more than one position, enter the parameters in ascending order.
This code positions the paper one line space as indicated by the current line spacing value.
ESC D or IND
Index.
ASCII CodeESC D or IND
Hexadecimal ValueX'1B' X'44' (7-bit) or X'84' (8-bit)
Decimal Value27 68 (7-bit) or 132 (8-bit)
This command causes the paper to be positioned down one line space as indicated by the current line
spacing value.
ESC E or NEL
Next line.
ASCII CodeESC E or NEL
Hexadecimal ValueX'1B' X'45' (7-bit) or X'85' (8-bit)
Decimal Value27 69 (7-bit) or 133 (8-bit)
This command causes the paper to be positioned down one line space as indicated by the current line
spacing value. The column counter is reset to the left margin value.
74Programmer Manual
ESC K or PLD
Partial line down.
ASCII CodeESC K or PLD
Hexadecimal ValueX'1B' X'4B' (7-bit) or X'8B' (8-bit)
Decimal Value27 75 (7-bit) or 139 (8-bit)
This command causes the paper to be positioned down one half line space at the current line spacing
value. This can create an appearance of subscripting. This sequence is also used after an ESC L (partial
line up sequence) to recover the original active vertical position.
ESC L or PLU
Partial line up.
ASCII CodeESC L or PLU
Hexadecimal ValueX'1B' X'4C' (7-bit) or X'8C' (8-bit)
Decimal Value27 76 (7-bit) or 140 (8-bit)
This command causes the paper to be positioned up one half line space at the current line spacing value.
This can create an appearance of superscripting. This sequence is also used after an ESC K (partial line
down sequence) to recover the original active vertical position.
ESCMorRI
Reverse index.
ASCII CodeESC M or RI
Hexadecimal ValueX'1B' X'4D' (7-bit) or X'8D' (8-bit)
Decimal Value27 77 (7-bit) or 141 (8-bit)
This command causes the paper to be positioned up one line space at the current line spacing value.
ESC [ p1d
Vertical position absolute (VPA).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p
d
1
X'64'
1
Decimal Value27 91 p1100
This command causes the current vertical position to be set to the decipoint value specified by the p
parameter relative to the top most line of the current form length. This sequence can be used to print
within the top and the bottom margins.
ESC [ p1e
Vertical position relative (VPR).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p1X'65'
e
1
1
Decimal Value27 91 p
1
101
This command causes the current vertical position to be advanced to the position specified by the p
parameter (in decipoints) relative to the current print line position.
Chapter 4. ANSI Emulation Commands75
1
ESC [ p1; p2f
Horizontal and vertical position absolute (HVP).
ASCII CodeESC [ p1; p2f
Hexadecimal ValueX'1B' X'5B' p
Decimal Value27 91 p
This command causes the current print position to be moved to the vertical (p
1
59 p2102
1
X'3B' p2X'66'
) and horizontal (p2)
1
decipoint locations specified relative to the top left corner of the page.
This sequence can be used to print within the right, left, top and bottom margins.
ESC [ p1k
Vertical position backward (VPB).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p
Decimal Value27 91 p
1
1
k
107
X'6B'
1
This command causes the current vertical position to be moved backwards as specified by the p
parameter (decipoints) relative to the current print line position.
ESC [ p1; png
Tab clear (TBC).
ASCII CodeESC [ p1; png
Hexadecimal ValueX'1B' X'5B' p
Decimal Value27 91 p
1
59 pn103
1
X'3B' pnX'67'
1
This command clears horizontal and vertical tab stops. If no parameter is present, the horizontal tab stop
at the current position is cleared (default).
pDESCRIPTION
0 (default)Clear horizontal tab at current position
1Clear vertical tab at current position
3Clear all horizontal tab stops
4Clear all vertical tab stops
This code causes printing to be moved to the left margin at the next vertical tab stop.
76Programmer Manual
ESC J or VTS
Vertical tab setting.
ASCII CodeESC J or VTS
Hexadecimal ValueX'1B' X'4A' (7-bit) or X'8A' (8-bit)
Decimal Value27 74 (7-bit) or 138 (8-bit)
This command causes a vertical tab stop to be set to the decipoint value of the current vertical position.
ESC [ p1; pnv
Sets vertical tab stops at specified positions (Multiple Vertical Tab Set - VTS).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p
Decimal Value27 91 p
; pnv
1
1
59 pn118
1
X'3B' pnX'76'
This command sets up to 12 vertical tab stops at each decipoint position specified by p parameters. The
tab stops are measured from the top of the page. When specifying more than one position, enter the
parameters in ascending order.
This code is used as an escape sequence introducer.
Chapter 4. ANSI Emulation Commands79
ESC\orST
String terminator.
ASCII CodeESC \ or ST
Hexadecimal ValueX'1B' X'5C' (7-bit) or X'9C' (8-bit)
Decimal Value27 92 (7-bit) or 156 (8-bit)
This command closes the other escape sequences including the operating system and dot graphics
commands.
ESC Q or PU1
Executes Selftest.
ASCII CodeESC Q or PU1
Hexadecimal ValueX'1B' X'51' (7-bit) or X'91' (8-bit)
Decimal Value27 81 (7-bit) or 145 (8-bit)
In serial interface, upon receipt of this command the printer transmits 1B 50 30 1B 5C.
ESC c
Resets to initial state (RIS).
ASCII CodeESC c
Hexadecimal ValueX'1B' X'63'
Decimal Value27 99
This command writes the printer parameters from the stored format assigned to the current path into the
current format.
ESC k
Prints test character (PTC).
ASCII CodeESC k
Hexadecimal ValueX'1B' X'6B'
Decimal Value27 107
This sequence causes one line of the print head test character to be printed.
ESC [ p1; ... pnh
Sets mode (SM).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p1X'3B' ... pnX'68'
Decimal Value27 91 p
; ... pnh
1
59 ... pn104
1
This command sets a specific print mode according to the parameter value. If the first parameter (p
preceded by a “>” symbol then all parameters are interpreted as proprietary defined parameters. If the “>”
character is not specified, all parameters are interpreted as ANSI defined parameters.
)is
1
80Programmer Manual
The proprietary defined parameter values are:
pMNEMONIC MODEFUNCTION
1PRM0Proportional Print Mode
3CSISingle Character CSI Mode
4BLDBold Mode
5CS2Character Set 2 Mode
The ANSI defined parameter values are:
pMNEMONIC MODEFUNCTION
0Ignored
20LNMAuto CR on LF
ESC p1; pnl
Resets mode (RM).
ASCII CodeESC p
Hexadecimal ValueX'1B' X'5B' p
Decimal Value27 91 p
; pnl
1
59 pn108
1
X'3B' pnX'6C'
1
This sequence resets the print mode(s) indicated by the p1/pn parameter(s).
ESC [ p1; p2SP~
Selects emulation (EMU).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p1X'3B' p2X'20' X'7E'
Decimal Value27 91 p
This sequence selects the emulation according to p values. The p
value while p2is a reset control value.
0Hold values (default). The current settings remain valid after changing the printer emulation.
1Full reset. The status of such parameters reverts to defaults dependent on the selected
FUNCTION
emulation.
; p2SP~
1
59 p232 126
1
parameter is an emulation identifier
1
To select ANSI mode from the Proprinter XL 24 mode and maintain the parameters, the sequence would
be: <ESC>[0; 0<SP>~ Leading zeros and defaulting parameters are not guaranteed to be parsed and
therefore should not be used by the application. Parameter p
& p2will be expressed as ASCII, not binary,
1
values. In the example above, “0” is “30H”, not “00H”.
Chapter 4. ANSI Emulation Commands81
Graphics Control Functions
ESC [ p
Select graphics mode/density (GRM).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p
Decimal Value27 91 p1113
This command selects the density of the graphics mode.
If ASF has not been selected (n=15/16/17 or via operator panel), then n=1—4 is ignored. The appropriate
path option must be selected from the System Menu in order for the sheet feeder to work.
q
1
AGM=NAGM=Y
q
1
X'71'
1
ESC P data
Enter dot graphics mode (Device Control String).
ASCII CodeESC P data
Hexadecimal ValueX'1B' X'50' data
Decimal Value27 80
This command enables the dot graphics mode. The density is selected according to the GRM command.
The line spacing value automatically changes if 72-dpi resolution (6-bit mode) is active.
The line spacing value for 180-dpi resolution (24-bit mode) must be selected prior to entering graphics
mode.
In 6-bit mode, only 6 bits of a data byte are required to determine which wires are fired. Therefore, only
one byte is required for each graphics dot column.
In 24-bit mode, 24 bits of four data bytes are required to determine which wires are fired. Only 6 bits of
each byte are used. Therefore, four bytes are required for each graphics dot column.
82Programmer Manual
Table 4. 6-bit mapping
6 BITS IN 1 BYTE
PRINT HEAD WIREDATA BIT
12&30
34&51
67&82
89&103
1112&134
1314&155
Since bits6&7areignored, wires 16-24 are not used. The state (0 or 1) of bits 6 and 7 must be conditioned so as
to make the entire byte fall within the range 20H through 7EH.
Table 5. 24-bit mapping
24 BITS IN 1 BYTE
BYTEPRINT HEAD WIREDATA BIT
10
21
1
32
43
54
65
70
81
2
92
103
114
125
130
141
3
152
163
174
185
190
201
4
212
223
234
245
Chapter 4. ANSI Emulation Commands83
Barcode Functions
ESC [ p
; pn}
1
Sets bar code parameters (BC).
ASCII CodeESC [ p
Hexadecimal ValueX'1B' X'5B' p
; pn}
1
1
X'3B' pnX'7D'
Decimal Value27 91 p159 pn125
This command allows selection of the bar code characteristics such as style height, symbol rotation and so
on. The command ESC [3 t enables the bar code mode while ESC [0 t disables the mode.
: Bar code style
p
1
p
1
FUNCTION
0Interleaved 2 of 5
1Bidirectional 2 of 5
2Matrix 2 of 5
3Industrial 2 of 5
4Code 3 of 9 (default)
5EAN-8
6EAN-13
7Code 11
9Codabar (default start/stop = a/t)
10Codabar (default start/stop = b/n)
11Codabar (default start/stop = c/*)
12Codabar (default start/stop = d/e)
13UPC-A
14UPC-E
15Code 93
16Code 128 (subset A, B and C)
17Code 128 (subset A, B and C)
18Code 128 (subset A, B and C)
19MSI
20UPC 2 Supplemental
21UPC 5 Supplemental
22EAN 2 Supplemental
23EAN 5 Supplemental
50Postnet
: Barcode Height
p
2
p
2
FUNCTION
1Minimum bar code height (1/12 inch)
120Maximum bar code height (10 inches)
12Default bar code height (1 inch)
: Human Readable Input (HRI)
p
3
p
3
FUNCTION
0Disables printing of the HRI
1Enables printing of the HRI (default)
: Narrow Bar
p
4
Default width value: 2 (120, 144 and 180 dpi)
84Programmer Manual
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.