
Programmer Reference Guide

Copyright © Siemens AG 1999.
All rights reserved. Delivery subject to availability; right of technical modifications reserved.
All hardware and software names used are trademarks of their respective manufacturers.
Copyright and Trademarks

This manual describes the IBM® Proprinter® emulation as well as the Epson® LQ-2550 and ESC/P2 emulation.
The 9014, 9015,9015 E and 9016 printers are extremely fast 24 needle printers that emphasize convenient handling of paper and high performance.
The modern printer concept enables them to be used with Siemens data systems as workstation printers and for large print volumes.
The effective printing rate depends on various parameterizable functions such as, for example, form feed, sheet insertion and ejection, print modes etc.
Most printer functions can also be selected at the printer control panel. Function selection is menu-controlled.


The 9014 printer is equipped with continuous forms tractor and manual single sheet insertion.
For automatic sheet feeding, the printer can be equipped with up to three ASF (Automatic Sheet Feeder) cassettes.
Different types of paper handling are available with the 9014 printer:
– single sheet (manual)
– continuous forms (tractor)
– single sheet (automatic)
Preface · – envelope (automatic)


Convenient handling of paper is available with the 9015 printer:
Using tractor cassettes, two continuous forms stacks can be inserted in a comfor- table way.
A parking position for continuous forms handling is available.
There is no loss of sheets when you tear off continous forms (Zero-Tear-Off-Funk- tion).
The printer offers a cut-off feature.
Preface


The 9015 E needle printer offers the same attributes as the 9015 printer except from the cut-off feature. Additionally, the 9015 E printer can optionally be equipped with a manual single sheet insertion.
Preface


The fast high performance 9016 needle printer offers the handling of continouos forms (tractor) and, optionally, of single sheets (manual insertion).
Preface

The contents of this manual is intended for users who want to program printer output.
Familiarity with printer programming is required.
This manual describes the control characters of the following Epson and IBM Proprinter emulations of the 9014 / 9015 / 9015 E and 9016 printer:
Dieses Handbuch beschreibt die Steuerzeichen der folgenden Epson- und IBM-Proprinter- Emulationen der Drucker 9014 / 9015 / 9015 E / 9016:
G Epson LQ-2550 / 1060 and ESC/P2
G IBM Proprinter emulations (IBM printers 4207, 4208 (XL24) )
The ECMA emulation is described in further Programmer’s Reference Guides (see [1], [4]).
References in the text consist of numbers enclosed in square brackets.
The full titles of the referenced publications and manuals are given in the References chapter.
Target group Preface

In this manual, the following conventions have been used:
Italics Names of files, programs, commands, variables, options and screen texts such as input fields, text fields, menus etc. in plain text
Monospace System output such as error messages, other messages, notes, excerpts from files
Monospace bold User input in examples
“Quotation marks” References to other chapters or manuals
Keys or key combinations in plain text
Additional information, notes and tips
® User activities

9014 printer interface modules
The 9014 printer with IBM Proprinter and Epson LQ-2550 emulation is equipped with the 90142-12 interface module. It contains a parallel (Centronics®-compatible) and a serial V.24 (RS-232 C) interface. The 9014 printer with the 90142-12 interface module is referred to below as the 9014-12 printer. There are two other interface modules with IBM / Epson emulation:
– 90142-13 with additional IGP functionality
– 90142-14 with additional East European character sets
For network connections, the following interface module is available:
– 90142-LE2 (Ethernet® LAN connection for Epson LQ-2550 and IBM Proprinter emula- tion)
The printer is also available with the ECMA emulation with one of the following interface modules:
– 90142-11 with SS97 (RS-422 A) and V.24 (RS-232 C)
– 90142-15 with SS97 (RS-422 A), V.24 (RS-232 C) and BAM controller
– 90142-LE1 (Ethernet® LAN connection for ECMA emulation)
The functions of the ECMA emulation are described in a separate Programmer’s Reference Guide [4].
9015 / 9015 E printer interface modules
The 9015 printer with IBM Proprinter and Epson LQ-2550 emulation is equipped with the 90152-12 interface module. It contains a parallel (Centronics®-compatible) and a serial V.24 (RS-232 C) interface. The 9015 printer with the 90152-12 interface module is referred to below as the 9015-12 printer. There is another interface module with IBM/Epson emulation:
– 90152-13 with additional IGP functionality

Technical data and printer options
For network connections, the following interface module is available:
– 90152-LE2 (Ethernet® LAN connection for Epson LQ-2550 and IBM Proprinter emula- tion)
The printer is also available with the ECMA emulation with one of the following interface modules:
– 90152-11 with SS97 (RS-422 A) and V.24 (RS-232 C)
– 90152-15 with SS97 (RS-422 A), V.24 (RS-232 C) and BAM controller
– 90152-LE1 (Ethernet® LAN connection for ECMA emulation)
The functions of the ECMA emulation are described in a separate Programmer’s Reference Guide [1].
9016 printer interface modules
With the 9016 printer, the serial RS-232 C / RS 422 and the Centronics® interface for the IBM Proprinter and Epson LQ-2550 emulation are integrated. Since this equipment of the 9016 printer is equivalent to the 9014-12 and 90152-12 printer types, the printer is referred to below as the 9016-12.

Technical data Technical data and printer options
The following table lists the major technical data of the printer that is relevant to programmers.

Character complement Technical data and printer options
The standard character complement of the printers contains up to fifteen fonts with several character sets. Some character sets can be used with different national versions.
Further information on fonts and character sets is given in the description of corresponding commands and in the tables (for the character sets see Character set tables).
The following options are currently available:
– Automatic sheet feeder (ASF)
– Console with integrated paper rack
G 9015 E printer
– Console with integrated paper rack
– Manual single sheet insertion

The 901x-12 printers can be connected via the serial and parallel interface.
The 901x-12 printers can be connected with the following systems via the V.24 interface (RS-232 C):
– Quattro / BNC / 886x systems
The 901x-12 printer can be connected with the following systems via the Centronics interface:

With the IBM Proprinter emulation, the 9014, 9015, 9015 E and 9016 printers behave like the 4207 and 4208 (XL24) printers from IBM.
The commands are divided into the following command groups:
G Forms transport mechanism
G Print carriage movements

Initial condition IBM Proprinter emulation
After power-on, the printer is in the following condition:
– Printer buffer cleared
– All vertical tab stops reset
– Proportional spacing mode reset
– Horizontal tab stops set in every eighth column
– Print direction bidirectional
– Boldface mode off
– Double strike mode off
– Subscript/superscript mode off
– Expanded mode off
– Normal character height
– Underscore mode off
– Overscore mode off
– Character enlargement mode off
The following functions depend on the menu setting:
– Perforation skip mode
– Font (type style)
– Print quality (DRAFT, LQ, NLQ)
– National version/IBM code page

Forms transport mechanism IBM Proprinter emulation
The printer is always equipped with two continous forms tractors. The last sheet of a conti- nuous forms stack can be printed to the end of the form.
ESC [ < s 1B 5B 3C 73 27 91 60 115
This command causes a vertical form feed to the beginning of the next page.
Select paper source and ejection, number of copies, cut-off mode
ESC [ > p1 ; p2 ; p3 ; p4 s 1B 5B 3E p1 3B p2 3B p3 3B p4 73
27 91 62 p1 59 p2 59 p3 59 p4 115
The control character > should only be used if an indent or a form feed (FF) is to be performed.
p4= 0 to 1 is only available for the 9015 printer with cut-off feature.
Eject sheet · (SPS or SPSIF)

Forms transport mechanism IBM Proprinter emulation
p1= 0
Manual single form feed
p1=1 bis 3
ASF, bin 1 to 3
p1= 6
p1= 7
p1= 8
ASF, bin 1 or 2
p1= 9
ASF, bin 2 or 3
p1= 10
ASF, bin 1 or 2 or 3
p2= 0
AGC (automatic gap control)
p2= 1 bis 6
PCC = programmable copy control (Print gap for 1- to 6-ply copies)
p3= 0
Cut-off sheets in upper tray
p3= 1
Paper exit front side (confirmed by start/stop key)
p3= 2
Paper exit front side, (not confirmed by start/stop key, but controlled by application)
p3= 3
Batch output (rear side)
G 9014 Printer · Ignored · Tractor

Forms transport mechanism IBM Proprinter emulation
p1= 0 to 3
p1= 6
p1= 7
p1= 8 to 10
p1= 15
Selection of both tractors (upper and lower)
p2= 0
AGC (automatic gap control)
p2= 1 to 6
PCC (programmable copy control) (Print gap for 1- to 6-ply copies)
p3= 0
Cut-off sheets in upper tray
p3= 1
p3= 2
p3= 3
Sheets in stack (default)
p4= 0
Cut-off feature off (default)
p4= 1

Forms transport mechanism IBM Proprinter emulation
G 9015 E Printer
p1= 0
Manual single form feed
p1=1 to 3
p1= 6
p1= 7
p1= 8 to 10
p1= 15
Selection of both tractors (upper and lower)
p2= 0
AGC (automatic gap control)
p2= 1 bis 6
PCC = programmable copy control (Print gap for 1- to 6-ply copies)
p3= 0
p3= 1
Paper exit front side (confirmed by start/stop key)
p3= 2
Paper exit front side, (not confirmed by start/stop key, but controlled by application)
p3= 3
Batch output (rear side)

Forms transport mechanism IBM Proprinter emulation
p1= 0
Manual single form feed
p1=1 to 3
p1= 6
p1= 7
p1= 8 to 10
p1= 15
p2= 0
AGC (automatic gap control)
p2= 1 bis 6
PCC = programmable copy control (Print gap for 1- to 6-ply copies)
p3= 0
p3= 1
Paper exit front side (confirmed by start/stop key)
p3= 2
Paper exit front side, (not confirmed by start/stop key, but controlled by application)
p3= 3

Forms layout IBM Proprinter emulation
The dimensions of the form can be selected freely. The following commands are available:
G Set form length in lines
G Set form length in inches
G Set perforation skip mode
G Reset perforation skip mode
G Set first print line
G Set left margin
G Set left and right margins
ESC C p1 1B 43 p1 27 67 p1
This command specifies the physical page length in multiples of the current line spacing and sets the current vertical position as the first print line (top of form).
The set page length is not affected by later changes of the line spacing.
p1 Form length in multiples of the current line spacing
Range: X’01 ≤ p1 ≤ X’7F The minimum valid form length is 3 inches and the maximum is 22 inches.

Forms layout IBM Proprinter emulation
ESC C NUL p1 1B 43 00 p1 27 67 00 p1
This command specifies the physical page length in inches and sets the current vertical position as the first print line (top of form).
p1 Form length in inches
Range: X’01 ≤ p1 ≤ X’16 The minimum valid form length is 3 inches and the maximum is 22 inches.
ESC N p1 1B 4E p1 27 78 p1
The perforation area is specified as a number of lines at the current line spacing. It is skipped at the end of every page.
The perforation area is not affected by later changes of the line spacing.
The perforation area should be selected so that at least 4/6 inch remain as print area.
If you change the first line (top of form), the perforation area moves accordingly.
p1 Perforation area in lines at the current line spacing

Forms layout IBM Proprinter emulation
ESC O 1B 4F 27 79
Set first print line
ESC 4 1B 34 27 52
The current print line is defined as the first print line (top form). The first print line should be selected so that at least 4/6 inch remain as print area.
The set form length is not affected by this command.
ESC ; 1B 3B 27 59
The current print column defines the first printable character in the line and thus the left margin.
The set left margin is not affected by later changes of the character pitch.
The left margin should be selected so that at least 4/10 inch remain as print area between the left and right margins.
This function should not be used in new applications.

Forms layout IBM Proprinter emulation
ESC X p1 p2 1B 58 p1 p2 27 88 p1 p2
The parameters define the first and last print columns of a line at the current character pitch and thus define the left and right margins.
The first print column of a line is column 1. The set margins are not affected by later changes of the character pitch. The margin setting should be selected so that at least 4/10 inch remain as print area between the left and right margins.
This command must be located at the beginning of the line.
If you specify 0 (zero) for a parameter, the current margin setting is not affected.
p1 Left margin in columns at the current character pitch
p2 Right margin in columns at the current character pitch

Forms transport IBM Proprinter emulation
The following commands affect the paper movement:
G Set 8 lpi
G Set 7/72 inch line spacing mode
G Preset n/72 inch line spacing mode
G Set preset line spacing
G Set n/216 or n/180 inch line spacing mode
G Set line spacing unit
G Line feed (LF)
G Reverse line feed
G Form feed (FF)
G Relative vertical tabulation forward
G Set vertical tab stops
ESC 0 1B 30 27 48
The line spacing is set to 8 lines per inch.
ESC 1 1B 31 27 49
A line spacing of 7/72 inch is set.
G Vertical tabulation · G Additional commands

Forms transport IBM Proprinter emulation
ESC A p1 1B 41 p1 27 65 p1
A line spacing of n/72 is preset. The defined line spacing is set by the ESC 2 command.
p1 Line spacing in 1/72 inch increments
ESC 2 1B 32 27 50
The line spacing preset with the ESC A p1 command is set.
ESC 3 p1 1B 33 p1 27 51 p1
A line spacing of n/216 or n/180 inch is set depending on the line spacing unit (see Set line spacing unit).
The default is n/216 inch.
p1 Line spacing in n/216 or n/180 inch increments

Forms transport IBM Proprinter emulation
ESC [ \ EOT NUL NUL NUL p1 NUL
1B 5B 5C 04 00 00 00 p1 00
27 91 92 04 00 00 00 p1 00
This command sets the line spacing unit to either 1/216 inch or 1/180 inch.
The preset line spacing unit only affects the two commands ESC 3 p1 and ESC J p1.
p1 Line spacing unit
Valid parameter values:
Line spacing 1/180 inch Line spacing 1/216 inch
Control character Hexadecimal Decimal
A line feed is performed using the current line spacing. The contents of the line buffer are printed.
This control character terminates the expanded mode for one line.
A carriage return is also performed depending on the menu setting.
Dec Hex Meaning

Forms transport IBM Proprinter emulation
ESC ] 1B 5D 27 93
ESC M 1B 4D 27 77
The reverse line feed is performed using the current line spacing. The contents of the line buffer are printed.
FF 0C 12
The paper is advanced to the next top of form position. The contents of the line buffer are printed and a carriage return is performed.
This control character terminates the expanded mode for one line.
ESC J p1 1B 4A p1 27 74 p1
The vertical print position is moved down by n/216 or n/180 inch depending on the line spacing unit (see Set line spacing unit).
The default is n/216 inch.
p1 Relative vertical movement in n/216 inch or n/180 inch increments

Forms transport IBM Proprinter emulation
ESC B p1 ... pk NUL 1B 42 p1 ... pk 00 27 66 p1 ... pk 00
A maximum of 64 vertical tab stops can be set. Previously set vertical tab stops are reset.
The vertical tab stops must be defined in ascending order in lines. The absolute vertical tab location depends on the current line spacing.
The line count begins with one at the first print line (see Set first print line).
The set vertical tab stops are not affected by later changes of the line spacing.
All vertical tab stops are reset if no parameters are specified (ESC B NUL).
p1 ... pk Vertical tab stops in lines (1 ≤ k ≤ 64)
Control character Hexadecimal Decimal
This control character causes vertical tabulation to the next vertical tab stop. Vertical tabulation is possible anywhere within a line.
Repeated specification of this control character causes vertical tab stops to be skipped. If you transfer VT VT VT, for example, the printer positions the print head to the third vertical tab stop. If no tab stops are set, this control character causes a line feed.
This control character terminates the expanded mode for one line.
A carriage return is also performed depending on the menu setting.

Forms transport IBM Proprinter emulation
ESC [ p1{ 1B 5B p1 7B 27 91 p1 123
This command loads and sets the line spacing. Valid values: 1, 2, 3, 4, 6, 8, 12, 16, 24, 48, 60, 72, 90, 144, 180, 360 lpi.
ESC [ p1g 1B 5B p1 67 27 91 p1 103
Valid values:
p1 = 0
Reset tab stop at the current position
p1 = 3
Reset all horizontal tab stops
p1 = 4
Reset all vertical tab stops
Load line spacing · Reset tab stop

Print carriage movements IBM Proprinter emulation
The following commands control the print carriage movements:
G Print head to left margin
G Set 10 cpi
G Set 12 cpi
G Set 17.1 cpi
G Set/reset proportional spacing mode
G Relative horizontal tabulation
G Set horizontal tab stops
G Set print direction (bidirectional or unidirectional)
Control character Hexadecimal Decimal
The print carriage moves to the beginning of the line. The character following CR is printed as the first character in the line.
A line feed may be performed in addition to the carriage return depending on the menu setting. When writing new application programs, be sure to terminate each line with LF and CR.

Print carriage movements IBM Proprinter emulation
ESC < 1B 3C 27 60
The print carriage moves to the beginning of the line.
Control character Hexadecimal Decimal
The print head moves one space width using the set or programmed character pitch.
If an expanded mode is active, the space width is increased accordingly.
Control character Hexadecimal Decimal
Reverse movement by the width of one space.
Control character Hexadecimal Decimal
Set a character pitch of 10 cpi.

Print carriage movements IBM Proprinter emulation
ESC : 1B 3A 27 58
Set a character pitch of 12 cpi.
SI 0F 15
Set a character pitch of 17.1 cpi.
ESC P p1 1B 50 p1 27 80 p1
In proportional spacing mode the character width differs. An i, for example, is narrower than an m.
Proportional spacing is possible with all fonts except the OCR fonts.
p1 sets/resets proportional spacing
Valid parameter values:
0 1 48 49
0 1 30 31
Reset proportional spacing mode Set proportional spacing mode Reset proportional spacing mode Set proportional spacing mode
Dec Hex Meaning

Print carriage movements IBM Proprinter emulation
ESC d p1 p2 1B 64 p1 p2 27 100 p1 p2
The horizontal print position is moved right by the defined amount. The specified shift begins at the current print position and has to be specified in 1/120 inch increments.
Spaces are shown underscored, overscored or crossed out if the function is active.
The defined right margin cannot be exceeded.
p1 p2 define the shift
Shift= (p1 + (p2 * 256)) * 1/120 inch

Print carriage movements IBM Proprinter emulation
ESC D p1 ... pk NUL 1B 44 p1 ... pk 00 27 68 p1 ... pk 00
This command sets horizontal tab stops. A maximum of 32 horizontal tab stops can be set. Previously set horizontal tab stops are reset.
The horizontal tab stops must be specified in ascending order in multiples of the current character pitch. The absolute horizontal tab stop locations depend on the current character pitch.
The set horizontal tab stops are not affected by later changes of the character pitch.
The default horizontal tab stop locations are in every eighth print column.
All horizontal tab stops are reset if no parameter is specified (ESC D NUL).
p1 ... pk Horizontal tab stops in multiples of the character pitch (1 ≤ k ≤ 32)

Print carriage movements IBM Proprinter emulation
Control character Hexadecimal Decimal
This control character may be located anywhere within a line and causes tabulation to the next horizontal tab stop. Repeated specification of this control character causes horizontal tab stops to be skipped. If you transfer HT, for example, the printer positions the print head to the fourth horizontal tab stop.
Conditions for horizontal tabulation:
G At least one horizontal tab stop must be set.
G The printer ignores the control character if no horizontal tab stops are set or if tabulation exceeds the end of the line.
G If the print head is on a set horizontal tab stop, the next horizontal tab stop is accessed.
ESC U p1 1B 55 p1 27 85 p1
Unidirectional printing should be used if high positioning precision is required (e.g. in the graphics mode). The default is bidirectional printing.
p1 defines the print direction
Valid parameter values:
0 1 48 49
0 1 30 31
Bidirectional print direction Unidirectional print direction Bidirectional print direction Unidirectional print direction
The command is ignored if the menu setting does not permit unidirectional printing (see [2]).
Dec Hex Meaning

Print carriage movements IBM Proprinter emulation
ESC [ p1 ‘ 1B 5B p1 60 27 91 p1 96
p1 defines the print position and consists of a maximum of three digits. p1 = 0 and p1 = 1 define the first print position and thus have the same meaning.
ESC [ p1 a 1B 5B p1 61 27 91 p1 97
p1 defines the print position and consists of a maximum of three digits. p1 = 0 and p1 = 1 define the first print position and thus have the same meaning.
ESC [ p1 d 1B 5B p1 64 27 91 p1 100
p1 defines the print line and consists of a maximum of three digits. p1 = 0 and p1 = 1 define the first print line and thus have the same meaning.
ESC [ p1 e 1B 5B p1 65 27 91 p1 101
p1 defines the number of print lines and consists of a maximum of three digits. p1 = 0 and p1 = 1 define the first print line and thus have the same meaning.

Font design IBM Proprinter emulation
The following commands are available for font design:
G Select IBM character set 1
G Select IBM character set 2
G Set boldface mode
G Reset boldface mode
G Set double strike mode
G Reset double strike mode
G Set subscript/superscript mode
G Reset subscript/superscript mode
G Set expanded mode for one line
G Set/reset expanded mode
G Reset expanded mode
G Set character size and line spacing
G Set print quality and character pitch
G Set/reset underscore mode
G Set/reset overscore mode
ESC 7 1B 37 27 55
In the initial condition the printer uses the character set specified in the menu.
G Additional commands

Font design IBM Proprinter emulation
ESC 6 1B 36 27 54
In the initial condition the printer uses the character set specified in the menu.
ESC E 1B 45 27 69
Reset boldface mode
ESC F 1B 46 27 70
Set double strike mode
ESC G 1B 47 27 71
Reset double strike mode
ESC H 1B 48 27 72

Font design IBM Proprinter emulation
ESC S p1 1B 53 p1 27 83 p1
This command causes reduced-size characters to be superscripted (exponents) or subscripted (indices).
Superscripted characters (exponents) are printed approx. 1/2 line up. Subscripted characters (indices) are only reduced in size and printed on the base line.
p1 defines subscript or superscript mode
Parameter values:
0 1 48 49
00 01 30 31
Set superscript mode Set subscript mode Set superscript mode Set subscript mode
The menu setting must be INDEX/EXPONENT (see [2]).
ESC T 1B 54 27 84
Dec Hex Meaning

Font design IBM Proprinter emulation
SO 0E 14
The characters in one line are printed with double width.
The function is terminated by LF, CR, VT, FF, DC4 and ESC W 0.
ESC W p1 1B 57 p1 27 87 p1
Characters are printed with double width when the expanded mode is active.
p1 sets/resets the expanded mode
Parameter values:
0 1 48 49
00 01 30 31
Reset expanded mode Set expanded mode Reset expanded mode Set expanded mode
DC4 14 20
This function only resets expanded mode set with the SO command.
Dec Hex Meaning

Font design IBM Proprinter emulation
ESC [ @ EOT NUL NUL NUL p1 p2
1B 5B 40 04 00 00 00 p1 p2
27 91 64 04 00 00 00 p1 p2
This command defines the line spacing, the character height, and the character width.
p1 The left half-byte defines the line spacing and the right half-byte the character height. The left and right half-bytes must be added.
Valid parameter values for the left half-byte:
00 16 32 48 64
00 10 20 30 40
No change of line spacing Single character height line spacing Double character height line spacing Triple character height line spacing Quadruple character height line spacing
Valid parameter values for the right half-byte:
00 01 02 03 04
00 01 02 03 04
No change of character height Single character height Double character height Triple character height Quadruple character height
p2 defines the character width
Valid parameter values:
00 01 02 03 04
00 01 02 03 04
No change of character width Single character width Double character width Triple character width Quadruple character width
Dec Hex Meaning · Dec Hex Meaning · Dec Hex Meaning

Font design IBM Proprinter emulation
ESC I p1 1B 49 p1 27 73 p1
This command defines the print quality and the character pitch.
p1 defines the print quality and the character pitch
Valid parameter values:
0 1 2 3 8 10 16 18
DRAFT quality; DRAFT quality LQ/NLQ quality; LQ/NLQ quality; DRAFT quality; LQ/NLQ quality; DRAFT quality; LQ/NLQ quality;
10 cpi proportional spacing 10 cpi proportional spacing 12 cpi 12 cpi 17.1 cpi 17.1 cpi
ESC - p1 1B 2D p1 27 45 p1
The characters are underscored.
p1 sets/resets the underscore mode
Valid parameter values:
0 1 48 49
00 01 30 31
Reset underscore mode Set underscore mode Reset underscore mode Set underscore mode
Dec Hex Meaning · Dec Hex Meaning

Font design IBM Proprinter emulation
ESC _ p1 1B 5F p1 27 95 p1
The characters are overscored.
p1 sets/resets the overscore mode
Valid parameter values:
0 1 48 49
00 01 30 31
Reset overscore mode Set overscore mode Reset overscore mode Set overscore mode
Dec Hex Meaning

Font design IBM Proprinter emulation
ESC [ p1 m 1B 5 B p1 6D 27 91 p1 109
Valid values:
p1 = 0 Normal presentation (all settings reset)
p1 = 1
p1 = 3
p1 = 4
p1 = 9
p1 = 20
p1 = 21
p1 = 22
p1 = 23
p1 = 24
p1 = 29
p1 = 30 to 36
p1 = 53
p1 = 55

Font design IBM Proprinter emulation
ESC [ p1 b 1B 5B p1 62 27 91 p1 98
p1 can be a maximum of three digits.
Graphical change of sizes
ESC [ p1; p2 SP B 1B 5B p1 3B p2 20 42 27 91 p1 59 p2 32 66
Valid values:
p1 = 100 / p2 = 100
Normal height / normal width
p1 = 200 / p2 = 200
Double height / Double width
p1 = 300 / p2 = 300
Triple height / Triple width
p1 = 400 / p2 = 400
Quadruple height / Quadruple width
p1 and p2 max. = 800 (in steps of 100)
Graphical change of size for DATA LARGE:
p1 = 100 / p2 = 100
Normal height / normal width
p1 and p2 max. = 9900 (in steps of 100)
Character repetition

Font design IBM Proprinter emulation
Set national version and code page
ESC [ p1; p2 w 1B 5B p1 3B p2 77 27 91 p1 59 p2 119
p1 = 1 to 15
For national versions or code pages
p1 für IBM SET 2:
p1 = 4 : U.K.
p1 for IBM CODE PAGE:

Font design IBM Proprinter emulation
p2 = d3 d2 d1 (three digits)
0 6 1 IBM set 1
0 6 2 IBM set 2
0 6 3 IBM code page
0 7 1 Epson EXT GCT
ESC [ p1 w 1B 5B p1 77 27 91 p1 119
See the command “Set/reset overscore mode” for the setting of p1.
ESC [ ; p2 w 1B 5B 3B p2 77 27 91 59 p2 119
See the command “Set/reset overscore mode” for the setting of p2.
Set character pitch and select font
ESC [ p1 ; p2 x 1B 5B p1 3B p2 78 27 91 p1 59 p2 120
p1 = 1
p1 = 2
p1 = 3
p1 = 4
p1 = 5

Font design IBM Proprinter emulation
p1 = 6
p1 = 7
p1 = 8
p1 = 9
p1 = 10
p1 = 11
p1 = 12
p2 = 1
p2 = 2
p2 = 3
p2 = 4
p2 = 5
p2 = 6
14.4 cpi
p2 = 7
p2 = 8
17.1 cpi
p2 = 9

Font design IBM Proprinter emulation
ESC [ p1 x 1B 5B p1 78 27 91 p1 120
See the command “Set character pitch and select font” for the setting of p1.
Set print quality (NLQ, LQ)
ESC [ p1 SP X 1B 5B p1 20 58 27 91 p1 32 88
p1 = 0
p1 = 1
This is only valid if the NLQ type style is available.
Select font

Bitmap graphics IBM Proprinter emulation
The following commands are available:
G Select graphics mode
G Select single dot-density graphics mode
G Select double dot-density graphics mode
G Select double dot-density and double-speed graphics mode
G Select quadruple dot-density graphics mode
G Select graphics mode (expanded)
ESC * p1 p2 p3 data 1B 2A p1 p2 p3 data 27 42 p1 p2 p3 data
The graphics data is transferred in columns. A column contains either 8 or 24 individual vertical dots.
Each graphics line begins with this command, which defines the graphics mode (vertical and horizontal resolution). A defined number of pixel data items follows. The number of columns is defined by parameters p2 and p3.


Bitmap graphics IBM Proprinter emulation


Bitmap graphics IBM Proprinter emulation
p1 defines the graphics mode
Valid parameter values:
Dec Hex Mode Number of needles
dpi Compatible commands hori- zontal
Single density Double density Double density and high speed1)
3 4 5 6 11
8
240 80 72 90 144
72
CRT 1 Plotter CRT 2 Double density Plotter 1)
32 33 38 39 40
20 21 26 27 28
Single density Double density CRT 3 Triple density Sixfold density 1)
24
60 120 90 180 360
180
p2 p3 define the number of columns
Number of columns = p2 + (p3 * 256)
Data Data bytes containing the dot information

Bitmap graphics IBM Proprinter emulation
ESC K p1 p2 data 1B 4B p1 p2 data 27 75 p1 p2 data
The graphics data is transferred in columns. A column contains 8 individual vertical dots (see Select graphics mode).
This command causes a graphics line to be printed.
The horizontal resolution is 60 dpi and the vertical resolution is 72 dpi.
p1 p2 define the number of columns
Number of columns = p1 + (p2 * 256)
Data Data bytes containing the dot information
ESC L p1 p2 data 1B 4C p1 p2 data 27 76 p1 p2 data
The graphics data is transferred in columns. A column contains 8 individual vertical dots (see Select graphics mode).
This command causes a graphics line to be printed.
The horizontal resolution is 120 dpi and the vertical resolution is 72 dpi.
p1 p2 define the number of columns
Number of columns = p1 + (p2 * 256)
Data Data bytes containing the dot information

Bitmap graphics IBM Proprinter emulation
ESC Y p1 p2 data 1B 59 p1 p2 data 27 89 p1 p2 data
The graphics data is transferred in columns. A column contains 8 individual vertical dots (see Select graphics mode).
This command causes a graphics line to be printed with double speed.
The horizontal resolution is 120 dpi and the vertical resolution is 72 dpi.
p1 p2 define the number of columns
Number of columns = p1 + (p2 * 256)
Data Data bytes containing the dot information
In this mode, printing in adjacent columns is not possible.

Bitmap graphics IBM Proprinter emulation
ESC Z p1 p2 data 1B 5A p1 p2 data 27 90 p1 p2 data
The graphics data is transferred in columns. A column contains 8 individual vertical dots (see Select graphics mode).
This command causes a graphics line to be printed.
The horizontal resolution is 240 dpi and the vertical resolution is 72 dpi.
p1 p2 define the number of columns
Number of columns = p1 + (p2 * 256)
Data Data bytes containing the dot information
In this mode, printing in adjacent columns is not possible.

Bitmap graphics IBM Proprinter emulation
ESC [ g p1 p2 p3 data 1B 5B 67 p1 p2 p3 data 27 91 103 p1 p2 p3 data
The graphics data is transferred in columns. A column contains either 8 or 24 individual vertical dots.
Each graphics line begins with this command. p1 and p2 define the amount of graphics data. The definition of the graphics mode with p3 (vertical and horizontal resolution) follows.


Bitmap graphics IBM Proprinter emulation


Bitmap graphics IBM Proprinter emulation
p1 p2 define the number of graphics data bytes + 1
Number of graphics data bytes = p1 + (p2 * 256) * number of bytes/column
p3 defines the graphics mode
Valid parameter values:
Dec Hex Mode Number of needles
dpi Compatible commands hori- zontal
Single density Double density Double density and high speed 1)
3 08 09 11 12
8 24
240 60 120 180 360
72 180
Single density Double density Triple density Sixfold density 1)
Data Data bytes containing the dot information

Miscellaneous commands IBM Proprinter emulation
G Set default tab stops
G Transparent print data for one character
G Transparent print data for several characters
G Automatic line feed
G Set printer online
G Set printer offline
G Clear line buffer
ESC R 1B 52 27 82
This command causes a horizontal tab stop to be set in every eighth column.
All set vertical tab stops are reset.
ESC ^ p1 1B 5E p1 27 94 p1
The character in the specified code location is printed. Characters defined as non-printing characters can also be printed (e.g. characters between X’00 and X’20).
Every transparent print data byte is interpreted as an individual character code. If no character is defined for a character code, a space is printed.
G Delete character · G NUL function · G Additional commands

Miscellaneous commands IBM Proprinter emulation
ESC \ p1 p2 1B 5C p1 p2 27 92 p1 p2
This command enables printing the characters in all code locations. Characters defined as non-printing characters can also be printed (e.g. characters between X’00 and X’20).
Every transparent print data byte is interpreted as an individual character code. If no character is defined for a character code, a space is printed.
p1 p2 define the number of transparent print data bytes
Number = (p1 + (p2 * 256))
ESC 5 p1 1B 35 p1 27 53 p1
This command sets/resets the automatic line feed function.
p1 Automatic line feed
Valid parameter values:
0 1 48 49
00 01 30 31
Reset Set Reset Set
(CR = CR) (CR = CR + LF) (CR = CR) (CR = CR + LF)
Dec Hex Meaning

Miscellaneous commands IBM Proprinter emulation
Control character Hexadecimal Decimal
Sets an offline printer online.
The command is ineffective if the printer was set offline with the ONLINE button.
ESC Q # 1B 51 23 27 81 35
ESC Q $ 1B 51 24 27 81 36
Sets the printer offline. All following data is ignored except for the Set printer online command.
Control character Hexadecimal Decimal
Clears the whole contents of the line buffer.
Control character Hexadecimal Decimal
Deletes the character received last.

Miscellaneous commands IBM Proprinter emulation
Control character Hexadecimal Decimal
This control character has no effect.
$$ 24 24 36 36
This command replaces the control sequence ESC [, hexadecimal 1B 5B, decimal 27 91.
This command replaces the control sequence ESC, hexadecimal 1B, decimal 27.
ESC [ p1 ; p2 SP r 1B 5B p1 3B p2 20 72 27 91 p1 59 p2 32 114
p1 can have the values 1 to 4.
p2 selects the emulation.
p2 = 2
p2 = 3
p2 = 4

Alternative graphics mode AGM IBM Proprinter emulation
The alternative graphics mode can be selected in the menu (see [2]).
In the alternative graphics mode, the functions of the commands described below change:
G Set n/60 inch line spacing mode
G Set n/216 or n/180 inch line spacing mode
G Relative vertical tabulation forward
G Select graphics mode
ESC A p1 1B 41 p1 27 65 p1
A line spacing of n/60 is set. The defined line spacing is activated directly in the AGM mode.
p1 sets the n/60 inch line spacing mode
ESC 3 p1 1B 33 p1 27 51 p1
A line spacing of n/216 or n/180 inch is set depending on the line spacing unit (see table “Set line spacing unit”).
The AGM mode default is n/180 inch.
p1 Line spacing in n/216 or n/180 inch increments

Alternative graphics mode AGM IBM Proprinter emulation
ESC J p1 1B 4A p1 27 74 p1
The vertical print position is moved down n/216 or n/180 inch depending on the line spacing unit (see Set line spacing unit).
The AGM mode default is n/180 inch.
p1 Relative vertical shift in n/216 or n/180 inch increments

Alternative graphics mode AGM IBM Proprinter emulation
ESC * p1 p2 p3 data 1B 2A p1 p2 p3 data 27 42 p1 p2 p3 data
The graphics data is transferred in columns. A column contains either 8 or 24 individual vertical dots.
Each graphics line begins with the command that defines the graphics mode (vertical and horizontal resolution). A defined number of pixel items follows. The number of columns is defined by parameters p2 and p3.


Alternative graphics mode AGM IBM Proprinter emulation


Alternative graphics mode AGM IBM Proprinter emulation
p1 defines the graphics mode
Valid parameter values:
Dec Hex Meaning Number of needles
dpi Compatible commands hori- zontal
Single density Double density Double density and high speed 1)
3 4 6 32 33 38 39 40
03 04 06 20 21 26 27 28
8 8 8 24
240 80 90 60 120 90 180 360
60 60 60 180
CRT 1 CRT 2 Single density Double density CRT 3 Triple density Sixfold density 1)
p2 p3 define the number of columns
Number of columns = p2 + (p3 * 256)
Data Data bytes containing the dot information

With the Epson LQ-2550 emulation, the 9014, 9015, 9015 E and 9016 printers behave like the Epson LQ-2550.
The commands are divided into the following command groups:
G Forms transport mechanism
G Print carriage movements
G ESC / P2 commands

Initial condition Epson LQ-2550 emulation
After power-on, the printer is in the following initial condition:
– Printer buffer cleared
– Tab stops in all vertical tabulation channels reset
– Vertical tabulation channel 0 selected
– Proportional spacing mode reset
– Character spacing zero
– Horizontal tab stops set in every eighth column
– Print direction bidirectional
– User-defined character set inactive and cleared
– Normal character style
– Italics mode off
– Boldface mode off
– Double strike mode off
– Subscript/superscript mode off
– Condensed mode off
– Expanded mode off
– Normal character height
– Underscore mode off
– Line marking mode off
– Character enlargement mode off
– Reassign graphics mode off
– Delete MSB default
– Text left-justified

Initial condition Epson LQ-2550 emulation
The following functions depend on the menu setting:
– Perforation skip mode
– Font (type style)
– Print quality (DRAFT, LQ, NLQ)
ESC @ 1B 40 27 64
This command sets the printer to the initial condition.
The user-defined character set is not reset by this command.

Forms transport mechanism Epson LQ-2550 emulation
The printer is always equipped with two continuous forms tractors. The last sheet of a conti- nuous forms stack can be printed on up to the end of the form.
The capability of the printer to feed paper from different sources is optimally supplemented by the option that automatically adjusts the distance between the print head and the print platen.
ESC EM p1 1B 19 p1 27 25 p1
This control character is only available for the 9014 and 9016 printers, because the other printers don’t have the equipment for single form feed.
G 9014 printer:
p1= 1
ASF, bin 1 or 2
p1= 2
ASF, bin 2 or 3
p1= 3
ASF, bin 1 or 2 or 3

Forms transport mechanism Epson LQ-2550 emulation
ESC [ < s 1B 5B 3C 73 27 91 60 115
This command causes a vertical form feed to the beginning of the next page.
Select paper source and ejection, number of copies, cut-off mode
ESC [ > p1 ; p2 ; p3 ; p4 s 1B 5B 3E p1 3B p2 3B p3 3B p4 73 27 91 62 p1 59 p2 59 p3 59 p4 115
The control character > should only be used if an indent or a form feed (FF) is to be performed.
p4= 0 to 1 is only available for the 9015 printer with cut-off feature.
p1= 0
Manual single form feed
p1=1 to 3
ASF, bin 1 to 3
p1= 6
p1= 7
p1= 8
ASF, bin 1 or 2
p1= 9
ASF, bin 2 or 3

Forms transport mechanism Epson LQ-2550 emulation
p1= 10
ASF, bin 1 or 2 or 3
p2= 0
AGC = automatic gap control
p2= 1 to 6
PCC = programmable copy control (Print gap for 1- to 6-ply copies)
p3= 0
Cut-off sheets in upper tray
p3= 1
Paper exit front side (confirmed by start/stop key)
p3= 2
Paper exit front side, (not confirmed by start/stop key, but controlled by application)
p3= 3
Batch output (rear side)

Forms transport mechanism Epson LQ-2550 emulation
p1= 0 to 3
p1= 6
p1= 7
p1= 8 to 10
p1= 15
Selection of both tractors (upper and lower)
p2= 0
AGC (automatic gap control)
p2= 1 to 6
PCC (programmable copy control)
p3= 0
Cut-off sheets in upper tray
p3= 1
p3= 2
p3= 3
Sheets in stack (default)
p4= 0
Cut-off feature off (default)
p4= 1

Forms transport mechanism Epson LQ-2550 emulation
G 9015 E printer
p1= 0
Manual single form feed
p1=1 to 3
p1= 6
p1= 7
p1= 8 to 10
p1= 15
Selection of both tractors (upper and lower)
p2= 0
AGC = automatic gap control
p2= 1 to 6
PCC = programmable copy control (Print gap for 1- to 6-ply copies)
p3= 0
p3= 1
Paper exit front side (confirmed by start/stop key)
p3= 2
Paper exit front side, (not confirmed by start/stop key, but controlled by application)
p3= 3
Batch output (rear side)

Forms transport mechanism Epson LQ-2550 emulation
p1= 0
Manual single form feed
p1= 1 bis 3
p1= 6
p1= 7
p1= 8 bis 10
p1= 15
p2= 0
AGC = automatic gap control
p2= 1 to 6
PCC = programmable copy control (Print gap for 1- to 6-ply copies)
p3= 0
p3= 1
Paper exit front side (confirmed by start/stop key)
p3= 2
Paper exit front side, (not confirmed by start/stop key, but controlled by application)
p3= 3

Forms layout Epson LQ-2550 emulation
The dimensions of a form can be selected freely. The following commands are available:
G Set form length in lines
G Set form length in inches
G Set perforation skip mode
G Reset perforation skip mode
G Set left margin
G Set right margin
ESC C p1 1B 43 p1 27 67 p1
This command specifies the physical form length in multiples of the current line spacing and sets the current vertical position as the first print line (top of form).
The set form length is not affected by later changes of the line spacing.
p1 Form length in multiples of the current line spacing
Range: X’01 ≤ p1 ≤ X’7F The minimum form length is 3 inches and the maximum form length is 22 inches.

Forms layout Epson LQ-2550 emulation
ESC C NUL p1 1B 43 00 p1 27 67 00 p1
This command specifies the physical form length in inches and sets the current vertical position as the first print line (top of form).
p1 Form length in inches
Range: X’01 ≤ p1 ≤ X’16 The minimum form length is 3 inches and the maximum form length is 22 inches.
ESC N p1 1B 4E p1 27 78 p1
The perforation area is specified in number of lines at the current line spacing. The perforation area is not changed by later changes of the line spacing. It is skipped at the end of every page.
The perforation area must be selected so that at least 4/6 inch remain as print area.
The perforation skip mode is reset by changing the form length or by the Reset perforation skip mode command.
p1 Perforation area in lines at the current line spacing

Forms layout Epson LQ-2550 emulation
ESC O 1B 4F 27 79
The perforation skip mode is reset.
ESC l p1 1B 6C p1 27 108 p1
The left margin is set to the right edge of the specified column.
The first column of a line is column 1. The set left margin is not affected by later changes of the character pitch. The left margin must be selected so that at least 4/10 inch remain as print area between the left and right margins.
This command must be located at the beginning of the line.
p1 Left margin in columns at the current character pitch
ESC Q p1 1B 51 p1 27 81 p1
The right margin is set to the right edge of the specified column.
The first column of a line is column 1. The set right margin is not affected by later changes of the character pitch. The right margin must be selected so that at least 4/10 inch remain as print area between the left and right margins.
This command must be located at the beginning of the line.
p1 Right margin in columns at the current character pitch

Forms transport Epson LQ-2550 emulation
The following commands affect paper movements:
G Set 8 lpi
G Set 6 lpi
G Set n/60 inch line spacing mode
G Set n/180 inch line spacing mode
G Set n/360 inch line spacing mode
G Line feed (LF)
G Form feed (FF)
G Relative vertical tabulation forward
G Relative vertical tabulation reverse
G Select vertical tabulation channel
G Set vertical tab stops
G Set vertical tab stops in channel
ESC 0 1B 30 27 48
The line spacing is set to 8 lines per inch.
ESC 2 1B 32 27 50
The line spacing is set to 6 lines per inch.
G Vertical tabulation

Forms transport Epson LQ-2550 emulation
ESC A p1 1B 41 p1 27 65 p1
The line spacing is set to n/60 inch.
p1 Line spacing in 1/60 inch increments
ESC 3 p1 1B 33 p1 27 51 p1
The line spacing is set to n/180 inch.
p1 Line spacing in 1/180 inch increments

Forms transport Epson LQ-2550 emulation
ESC + p1 1B 2B p1 27 43 p1
The line spacing is set to n/360 inch.
p1 Line spacing in 1/360 inch increments
Control character Hexadecimal Decimal
The line feed is performed using the current line spacing. The contents of the line buffer are printed.
The expanded mode for one line is terminated by this control character.
A carriage return is also performed depending on the menu setting.
Control character Hexadecimal Decimal
The paper is advanced to the next top of form position. The contents of the line buffer are printed.
The expanded mode for one line is terminated by this control character.
A carriage return is also performed depending on the menu setting.

Forms transport Epson LQ-2550 emulation
ESC J p1 1B 4A p1 27 74 p1
The vertical print position is moved down in n/180 inch increments.
p1 Relative vertical movement in n/180 inch increments
ESC j p1 1B 6A p1 27 106 p1
The vertical print position is moved up in n/180 inch increments.
p1 Relative vertical movement in n/180 inch increments
ESC / p1 1B 2F p1 27 47 p1
This command selects the vertical tabulation channel that contains the vertical tab stops used by the Vertical tabulation command.
p1 Number of the vertical tabulation channel

Forms transport Epson LQ-2550 emulation
ESC B p1 ... pk NUL 1B 42 p1 ... pk 00 27 66 p1 ... pk 00
This command sets vertical tab stops in channel 0 (see Select vertical tabulation channel and Set vertical tab stops in channel). Up to 16 vertical tab stops can be defined per channel. Vertical tab stops set previously are reset.
The vertical tab stops must be specified in ascending order in lines. The absolute vertical tab stop locations depend on the current line spacing.
The line count begins with 1 at the first print line.
The set vertical tab stops are not affected by later changes of the line spacing.
All vertical tab stops are reset if no parameter is specified (ESC B NUL).
p1 ... pk Vertical tab stops in lines (1 ≤ k ≤ 16)

Forms transport Epson LQ-2550 emulation
ESC b p1 p2 ... pk NUL 1B 62 p1 p2 ... pk 00 27 98 p1 p2 ... pk 00
This command sets vertical tab stops in the specified channel (see table “Set vertical tab stops” on page 86).
Eight different vertical tabulation channels are available. Up to 16 vertical tab stops can be defined per channel. Vertical tab stops set previously in the specified channel are reset.
The vertical tab stops in the channel must be specified in ascending order in lines. The absolute vertical tab stop locations depend on the current line spacing.
The line count begins with 1 at the first print line.
The set vertical tab stops are not affected by later changes of the line spacing.
All vertical tab stops set in the specified channel are reset if parameters p2 to pk are missing (ESC b p1 NUL).
p1 Vertical tabulation channel
p2 ... pk Vertical tab stops in lines (2 ≤ k ≤ 17)

Forms transport Epson LQ-2550 emulation
Control character Hexadecimal Decimal
This control character causes vertical tabulation to the next vertical tab stop in the current vertical tabulation channel. Vertical tabulation is possible anywhere within a line.
Repeating this control character causes tab stops to be skipped. VT VT VT, for example, positions the print head to the third vertical tab stop. If no tab stops are set, this control character performs a line feed.
A carriage return is also performed depending on the menu setting. The expanded mode for one line is terminated by this control character.

Print carriage movements Epson LQ-2550 emulation
The following commands affect the print carriage movements:
G Set 10 cpi
G Set 12 cpi
G Set 15 cpi
G Set/reset proportional spacing mode
G Set character spacing mode
G Absolute horizontal tabulation
G Relative horizontal tabulation
G Set horizontal tab stops
G Set print direction (bidirectional or unidirectional)
G Set unidirectional print mode for one line
G Select text alignment
Control character Hexadecimal Decimal
The print carriage moves to the beginning of the line (left margin). The character following CR is printed as the first character of the line.
A line feed may be performed in addition to the carriage return depending on the menu setting. When writing new application programs, take care to terminate each line with LF and CR.

Print carriage movements Epson LQ-2550 emulation
Control character Hexadecimal Decimal
A space is printed using the set or programmed character pitch.
In the expanded and spaced modes the space width is increased accordingly.
Control character Hexadecimal Decimal
The print head is backsaced one space width.
ESC P 1B 50 27 80
The character pitch is set to 10 cpi.
ESC M 1B 4D 27 77
The character pitch is set to 12 cpi.

Print carriage movements Epson LQ-2550 emulation
ESC g 1B 67 27 103
The character pitch is set to 15 cpi.
ESC p p1 1B 70 p1 27 112 p1
In the proportional spacing mode, the character width differs. An i, for example, is narrower than an m.
Proportional spacing is possible with all fonts except the OCR fonts.
When the proportional mode is reset, the previously set character pitch becomes effective again.
p1 sets/resets the proportional spacing mode
Valid parameter values:
0 1 48 49
00 01 30 31
Reset proportional spacing mode Set proportional spacing mode Reset proportional spacing mode Set proportional spacing mode
Dec Hex Meaning

Print carriage movements Epson LQ-2550 emulation
ESC SP p1 1B 20 p1 27 32 p1
This command sets the space between characters (spaced mode).
The space depends on the selected print quality.
p1 Space in 1/120 inch increments in DRAFT mode
Space in 1/180 inch increments in LQ/NLQ mode
ESC $ p1 p2 1B 24 p1 p2 27 36 p1 p2
The print head is moved to the specified print position. The specified position is based on the set left margin and is defined in 1/60 inch increments.
p1 p2 define the absolute horizontal position
Horizontal position = (p1 + (p2 * 256)) * 1/60 inch

Print carriage movements Epson LQ-2550 emulation
ESC \ p1 p2 1B 5C p1 p2 27 92 p1 p2
The print head moves right or left the defined amount. The shift is based on the current print position and is defined in 1/120 (DRAFT) or 1/180 inch increments.
p1 p2 define the shift
p2 < X’80 causes a right shift.
Shift = (p1 + (p2 * 256)) * 1/120 inch (DRAFT mode)
Shift = (p1 + (p2 * 256)) * 1/180 inch (LQ/NLQ mode)
p2 ≥ X’80 causes a left shift.
Shift = 65536 - (p1 + (p2 * 256)) * 1/120 inch (DRAFT mode)
Shift = 65536 - (p1 + (p2 * 256)) * 1/180 inch (LQ/NLQ mode)
X’00 ≤ p2 ≤ X’03
X’00 ≤ p2 ≤ X’03

Print carriage movements Epson LQ-2550 emulation
ESC D p1 ... pk NUL 1B 44 p1 ... pk 00 27 68 p1 ... pk 00
This command sets horizontal tab stops. Up to 32 horizontal tab stops can be defined. Previously set horizontal tab stops are reset.
The horizontal tab stops must be defined in ascending order in multiples of the current character pitch. The absolute horizontal tab stop locations depend on the current character pitch.
The set horizontal tab stops are not affected by later changes of the character pitch.
The default is every eighth column.
All horizontal tab stops are reset if no parameter is specified (ESC D NUL).
p1 ... pk Horizontal tab stops in multiples of the character pitch (1 ≤ k ≤ 32)
Control character Hexadecimal Decimal
The control character may be located anywhere within a line and causes the next horizontal tab stop to be accessed. Repeating this control character causes horizontal tab stops to be skipped. HT, for example, causes the fourth horizontal tab stop to be accessed.
Conditions for horizontal tabulation:
G At least one horizontal tab stop must be set.
G The printer ignores the control character if no horizontal tab stops are set or if the end of the line would be exceeded.
G If the print head is on a set horizontal tab stop, the next horizontal tab stop is accessed.

Print carriage movements Epson LQ-2550 emulation
ESC U p1 1B 55 p1 27 85 p1
Unidirectional printing should be used if high positioning precision is required (e.g. in the graphics mode). The default is bidirectional printing.
p1 defines the print direction
Valid parameter values:
0 1 48 49
00 01 30 31
Bidirectional print direction Unidirectional print direction Bidirectional print direction Unidirectional print direction
The command is ignored if the menu setting does not permit unidirectional printing (see [2]).
ESC < 1B 3C 27 60
The unidirectional print mode should be used if high positioning precision is required (e.g. in the graphics mode). The default is bidirectional printing.
The command is ignored if the menu setting does not permit unidirectional printing (see [2]).
Dec Hex Meaning

Print carriage movements Epson LQ-2550 emulation
ESC a p1 1B 61 p1 27 97 p1
The text alignment defines the horizontal position of a print line relative to the set margins (see Set left margin).
p1 defines the text alignment mode
Valid parameter values:
0 1 2 3
00 01 02 03
Left-justified text alignment Centered text alignment Right-justified text alignment Justification (left and right)
Horizontal tabulation and backspaces are ignored except for left-justified alignment.
Dec Hex Meaning

Font design Epson LQ-2550 emulation
The following commands are available for font design:
G Select national version
G Select character set
G Set/reset user-defined character set
G Copy current character set into user-defined character set
G Define user-defined characters
G Select print quality
G Select character style
G Set italics mode
G Reset italics mode
G Set boldface mode
G Reset boldface mode
G Set double strike mode
G Reset double strike mode
G Set subscript/superscript mode
G Reset subscript/superscript mode
G Set condensed mode
G Reset condensed mode
G Set expanded mode for one line
G Set/reset expanded mode
G Reset expanded mode
G Set/reset double height mode
G Select print mode combination
G Set/reset underscore mode
G Set/reset line marking mode
G Select font · G Additional commands

Font design Epson LQ-2550 emulation
ESC k p1 1B 6B p1 27 107 p1
The default character complement of the printer contains eleven fonts. Further fonts can be plugged in with a PROM on the PM (personality module).
p1 defines the font
Valid parameter values:
0 1 2 3 4 5 6 7 8
00 01 02 03 04 05 06 07 08
Roman Sans Serif Courier Prestige Script OCR-B OCR-A Orator-C Orator
The OCR-A and OCR-B fonts are machine-readable fonts. Machine readability is ensured only if the character pitch is 10 cpi.
Dec Hex Meaning

Font design Epson LQ-2550 emulation
ESC R p1 1B 52 p1 27 82 p1
This command allows switching between national versions anywhere within the text.
In the initial condition, the printer uses the national version selected in the menu.
p1 defines the national version
Valid parameter values:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 64
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 40
USA France Germany Great Britain Denmark 1 Sweden Italy Spain 1 Japan Norway Denmark 2 Spain 2 Latin America Turkey Legal
Dec Hex Meaning

Font design Epson LQ-2550 emulation
ESC t p1 1B 74 p1 27 116 p1
This command allows switching between character sets anywhere within the text.
In the initial condition, the printer uses the character set selected in the menu.
p1 defines the character set
Valid parameter values:
Epson ITALIC Epson EXT GCT User-defined character set
ESC % p1 1B 25 p1 27 37 p1
This command allows switching between the current character set and the user-defined character set anywhere within the text.
p1 defines the character set
Valid parameter values:
0 1 00 01 Current character set User-defined character set
Dec Hex Meaning · 00 01 02 · Dec Hex Meaning

Font design Epson LQ-2550 emulation
ESC : NUL p1 NUL 1B 3A 00 p1 00 27 58 00 p1 00
This command copies the current character set into the user-defined character set.
p1 defines the font of the current character set
Valid parameter values:
0 1 2 3 4 5 6 7 8
00 01 02 03 04 05 06 07 08
Roman San Serif Courier Prestige Script OCR-B OCR-A Orator-C Orator
There must be sufficient memory space for the user-defined character set (see menu settings [2]). This can be done by setting the buffer size in the menu (see [2]) to a value < 32 Kbytes.
Dec Hex Meaning

Font design Epson LQ-2550 emulation
ESC & NUL p1 p2 p3 p4 p5 data
1B 26 00 p1 p2 p3 p4 p5 data
27 38 00 p1 p2 p3 p4 p5 data
One or several characters can be defined. If the current character set was loaded in the user-defined character set beforehand, the characters defined by this command are replaced.
p1 specifies the code location of the first character to be defined
p2 specifies the code location of the last character to be defined
p3 specifies the number of leading blank columns of the character to be defined
p4 specifies the number of dot columns of the character to be defined
p5 specifies the number of trailing blank columns of the character to be defined
Data Data bytes containing the dot information
Range: X’00 to X’FF (any bit of a byte may be 1 (dot) or 0 (no dot))

Font design Epson LQ-2550 emulation
Meaning of parameters p3, p4 and p5:
Print mode Spacing p3+p4+ p5 max.
p4 max.
1/120 inch
LQ
1/360 inch
Proportional 42 37 1/360 inch
The character information is transferred in 3 bytes per column. The number of data bytes to be transferred is thus 3 x p4 bytes. If you define more than one character, parameters p3, p4 and p5 must be defined before the dot information of the characters.
There must be sufficient memory space for the user-defined character set (see menu settings [2]).
The function is only valid with 8-bit data transfer (for the menu setting see [2]).

Font design Epson LQ-2550 emulation
Leading Dot columns Trailing blank columns of the character blank columns P3 P4 P5
1 1 2 3 4 5 6 7 8 9 1 2
20 21 22 23 24 25 26 27
o . o . o . o . o . . o . . . o o . o . o o . . . o . o . o . o . o
20 21 22 23 24 25 26 27 20 21 22 23 24 25 26 27
Byte values FF 00 01 00 01 00 01 00 01 First byte for dot columns FF 00 02 00 07 00 Second byte (Hex.) 07 00 04 00 04 00 04 00 04 Third byte
To load this character (in DRAFT and 10 cpi) in code location X’21 (decimal 33), the following control characters have to be sent to the printer:
– ESC x 0 Set draft mode.
– ESC P Set 10 cpi.
Define character (from code location 33 (X’21) to code location 33 (X’21), i.e. one character in this code location. 1 leading blank column, 9 dot columns and 2 trailing blank columns. Data containing the dot information. (Hex.) In this representation, three bytes of a dot column are combined for clarity.
X’01 X’09 X’02
X’FFFF07 X’000000 X’010204 X’000000 X’010704 X’000000 X’010004 X’000000 X’010004

Font design Epson LQ-2550 emulation
ESC x p1 1B 78 p1 27 120 p1
DRAFT or LQ/NLQ is selected.
In the initial condition, the print quality is defined by the menu setting (see [2]).
p1 defines the print quality
Valid parameter values:
0 1 48 49
00 01 30 31
DRAFT mode NLQ or LQ mode DRAFT mode NLQ or LQ mode
ESC q p1 1B 71 p1 27 113 p1
The character style can be selected with this command.
p1 defines the character style
Valid parameter values:
0 1 2 3
00 01 02 03
Normal character style Outline Shadow Outline + shadow
Dec Hex Meaning · Dec Hex Meaning

Font design Epson LQ-2550 emulation
ESC 4 1B 34 27 52
Reset italics mode
ESC 5 1B 35 27 53
Set boldface mode
ESC E 1B 45 27 69
Reset boldface mode
ESC F 1B 46 27 70
Set double strike mode
ESC G 1B 47 27 71
Reset double strike mode
ESC H 1B 48 27 72

Font design Epson LQ-2550 emulation
ESC S p1 1B 53 p1 27 83 p1
This command causes reduced-size characters to be superscripted, i.e. printed as exponents, or subscripted, i.e. printed as indices.
Superscripted characters (exponents) are printed approx. 1/2 line up. Subscripted characters (indices) are only reduced in size and printed on the base line.
p1 defines the subscript or superscript mode
Parameter values:
0 1 48 49
00 01 30 31
Set superscript mode Set subscript mode Set superscript mode Set subscript mode
The menu setting must be INDEX/EXPONENT (see [2]).
ESC T 1B 54 27 84
Resets the subscript/superscript function.
Dec Hex Meaning

Font design Epson LQ-2550 emulation
SI 0F 15
ESC SI 1B 0F 27 15
The two commands are identical in function. The characters are printed in compressed form.
The resulting character pitch depends on the current character pitch.
Current character pitch in cpi
Compressed character pitch in cpi
10 12 15 Proportional
17 20 Unchanged Proportional compressed
Control character Hexadecimal Decimal
Set expanded mode for one line
SO 0E 14
ESC SO 1B 0E 27 14
The two commands are identical in function. The characters are printed with double width in one line.
The function is terminated by the LF, CR, VT, FF, DC4 and ESC W 0 commands.

Font design Epson LQ-2550 emulation
ESC W p1 1B 57 p1 27 87 p1
In the expanded mode, the characters are printed with double width.
p1 sets/resets the expanded mode
Valid parameter values:
0 1 48 49
00 01 30 31
Reset expanded mode Set expanded mode Reset expanded mode Set expanded mode
Control character Hexadecimal Decimal
Set/reset double height mode
ESC w p1 1B 77 p1 27 119 p1
The characters are printed with double height.
p1 sets/resets the double height mode
Valid parameter values:
0 1 48 49
00 01 30 31
Reset double height mode Set double height mode Reset double height mode Set double height mode
Dec Hex Meaning · Dec Hex Meaning

Font design Epson LQ-2550 emulation
ESC ! p1 1B 21 p1 27 33 p1
The following characters are printed using the print mode combinations defined by parameter p1.
The command can be used with all fonts and font sizes.
p1 Print mode combinations; interpreted bitwise
Bit position Bit set (bit = 1) Bit reset (bit = 0)
0 1 2 3 4 5 6 7
12 cpi Set proportional mode Set condensed mode Set boldface mode Set double strike mode Set expanded mode Set italics mode Set underscore mode
10 cpi Reset proportional mode Reset condensed mode Reset boldface mode Reset double strike mode Reset expanded mode Reset italics mode Reset underscore mode
ESC - p1 1B 2D p1 27 45 p1
The characters are underscored.
p1 sets/resets the underscore mode
Valid parameter values:
00 01 Reset underscore mode Set underscore mode
Dec Hex Meaning

Font design Epson LQ-2550 emulation
ESC ( - p1 p2 p3 p4 p5 1B 28 2D p1 p2 p3 p4 p5 27 40 45 p1 p2 p3 p4 p5
The following characters are printed with an additional line mark.
p1 = X’03 fixed value
p2 = X’00 fixed value
p3 = X’01 fixed value
p4 defines the position of the line mark
Valid parameter values:
Underscore Cross out Overscore
p5 defines the type of line mark
Valid parameter values:
0 1 2 5 6
00 01 02 05 06
Deactivates the line mark selected with p1 Single solid line Double solid line Single dashed line Double dashed line
Dec Hex Meaning · 01 02 03 · Dec Hex Meaning

Font design Epson LQ-2550 emulation
Graphical change of sizes
ESC [ p1; p2 SP B 1B 5B p1 3B p2 20 42 27 91 p1 59 p2 32 66
Valid values:
p1 = 100 / p2 = 100
Normal height / normal width
p1 = 200 / p2 = 200
Double height / Double width
p1 = 300 / p2 = 300
Triple height / Triple width
p1 = 400 / p2 = 400
Quadruple height / Quadruple width
p1 and p2 max. = 800 (in steps of 100)
Graphical change of size for DATA LARGE:
p1 = 100 / p2 = 100
Normal height / normal width
p1 and p2 max. = 9900 (in steps of 100)

Font design Epson LQ-2550 emulation
Set national version and code page
ESC [ p1; p2 w 1B 5B p1 3B p2 77 27 91 p1 59 p2 119
p1 = 1 to 15
For national version EPSON EXT.GCT:
p1 = 4 : U.K.
p2 = 3 digit code of the code table
p2 = d3 d2 d1 (three digits)
0 6 1 IBM set 1
0 6 2 IBM set 2
0 6 3 IBM code page
0 7 1 Epson EXT GCT

Font design Epson LQ-2550 emulation
ESC [ p1 w 1B 5B p1 77 27 91 p1 119
See the command “Set national version and code page” for the setting of p1.
ESC [ ; p2 w 1B 5B 3B p2 77 27 91 59 p2 119
See the command “Set national version and code page” for the setting of p2.
Set national version · Set code page

Font design Epson LQ-2550 emulation
Set character pitch and select font
ESC [ p1 ; p2 x 1B 5B p1 3B p2 78 27 91 p1 59 p2 120
p1 = 1
p1 = 2
p1 = 3
p1 = 4
p1 = 5
p1 = 6
p1 = 7
p1 = 8
p1 = 9
p1 = 10
p1 = 11
p2 = 1
p2 = 2
p2 = 3

Font design Epson LQ-2550 emulation
p2 = 4
p2 = 5
p2 = 6
14.4 cpi
p2 = 7
p2 = 8
17.1 cpi
p2 = 9
ESC [ p1 x 1B 5B p1 78 27 91 p1 120
See the command “Set character pitch and select font” for the setting of p1.
Set print quality (NLQ, LQ)
ESC [ p1 SP X 1B 5B p1 20 58 27 91 p1 32 88
p1 = 0
p1 = 1
This is only valid if the NLQ type style is available.

Bitmap graphics Epson LQ-2550 emulation
The following commands are available:
G Select graphics mode
G Reassign graphics mode
ESC * p1 p2 p3 data 1B 2A p1 p2 p3 data 27 42 p1 p2 p3 data
The graphics data is transferred in columns. A column contains either 8 or 24 individual vertical dots.
Each graphics line begins with this command, which defines the graphics mode (vertical and horizontal resolution). A defined number of pixel data items follows. The number of columns is defined by parameters p2 and p3.


Bitmap graphics Epson LQ-2550 emulation


Bitmap graphics Epson LQ-2550 emulation
p1 defines the graphics mode
Valid parameter values:
Dec Hex Meaning Number of needles
dpi Compatible commands hori- zontal
Single density Double density Double density and high speed 1)
3 4 6 32 33 38 39 40
03 04 06 20 21 26 27 28
8 8 8 24
240 80 90 60 120 90 180 360
60 60 60 180
CRT 1 CRT 2 Single density Double density CRT 3 Triple density Sixfold density1)
p2 p3 define the number of columns
Number of columns = p2 + (p3 * 256)
Data Data bytes containing the dot information

Bitmap graphics Epson LQ-2550 emulation
ESC ? p1 p2 1B 3F p1 p2 27 63 p1 p2
This command assigns new graphics modes to the commands:
ESC K p1 p2 data ESC L p1 p2 data ESC Y p1 p2 data ESC Z p1 p2 data
p1 defines the graphics command
Valid parameter values:
Dec Hex Graphics command
75 76 89 90
ESC K ESC L ESC Y ESC Z
p2 defines the graphics mode
Valid parameter values:
Dec Hex Mode Number of needles
Single density Double density Double density and high speed 1)
3 4 6 32 33 38 39 40
03 04 06 20 21 26 27 28
8 8 8 24
240 80 90 60 120 90 180 360
60 60 60 180
CRT 1 CRT 2 Single density Double density CRT 3 Triple density Sixfold density 1)

G Control characters between X’80 and X’9F
G Printing characters between X’80 and X’9F
G Reset most significant bit (MSB) to zero
G Set most significant bit (MSB) to one
G Delete most significant bit (MSB) default
G Set printer online
G Set printer offline
G Clear line buffer
ESC 7 1B 37 27 55
Codes X’80 to X’9F are replaced by control codes X’00 to X’1F.
ESC 6 1B 36 27 54
The characters in this code table area are printing characters.
This command is ignored if the Epson ITALIC character set was selected (see Select character set).

Miscellaneous commands Epson LQ-2550 emulation
ESC = 1B 3D 27 61
Resets the most significant bit of all incoming data to zero.
This command restricts parameters to the range from 0 to 127.
ESC > 1B 3E 27 62
Sets the most significant bit of all incoming data to one.
This command restricts parameters to the range from 128 to 255.
ESC # 1B 23 27 35
This command deletes the default MSB specification.

Miscellaneous commands Epson LQ-2550 emulation
Control character Hexadecimal Decimal
Returns the printer to the online mode after the Set printer offline command.
The command is ineffective if the printer was set offline with the online button.
Control character Hexadecimal Decimal
Sets the printer offline. All following data is ignored except for the Set printer online command.
The printer cannot be set online with the online button.
Control character Hexadecimal Decimal
Deletes the contents of the line buffer to the next control character.
Control character Hexadecimal Decimal
Deletes the character received last.

Miscellaneous commands Epson LQ-2550 emulation
Control character Hexadecimal Decimal
This control character has no effect.
Control character Hexadecimal Decimal
This control character has no effect.
$$ 24 24 36 36
This command replaces the control character sequence ESC [, hexadecimal 1B 5B, decimal 27 91.
This command replaces the control character sequence ESC, hexadecimal 1B, decimal 27.
Command replacement $$ · Command replacement $$/

Miscellaneous commands Epson LQ-2550 emulation
ESC [ p1 ; p2 SP r 1B 5B p1 3B p2 20 72 27 91 p1 59 p2 32 114
p1 can have the values 1 to 4.
p2 selects the emulation
p2 = 2
p2 = 3
p2 = 4

ESC / P2 Commands Epson LQ-2550 emulation
G Set page format
G Set page length in defined units
G Set absolute vertical print position
G Set relative vertical print position
G Select font by pitch and point
G Set horizontal motion index (HMI)
G Assign character table
G Select character table
G Print data as characters
G Select graphics mode
G Print raster graphics
ESC ( c p1 p2 p3 p4 p5 1B 28 63 p1 p2 p3 p4 p5 27 40 99 p1 p2 p3 p4 p5
This command sets top and bottom margins in defined units.
p1 = 04 00
tm = p2 + p3 * 256
bm = p4 + p5 * 256
G Set unit

ESC / P2 Commands Epson LQ-2550 emulation
ESC ( C p1 p2 p3 1B 28 43 p1 p2 p3 27 40 67 p1 p2 p3
p1 = 02 00
pl = p2 + p3 * 256
ESC ( V p1 p2 p3 1B 28 56 p1 p2 p3 27 40 86 p1 p2 p3
p1 = 02 00
p = p2 + p3 * 256
p: defines print position from top margin in defined units

ESC / P2 Commands Epson LQ-2550 emulation
ESC ( v p1 p2 p3 1B 28 76 p1 p2 p3 27 40 118 p1 p2 p3
p1 = 02 00
p = p2 + p3 * 256
p: moves the print position from top margin in defined units
ESC X p1 p2 p3 1B 58 p1 p2 p3 27 88 p1 p2 p3
p1= 0
No change in pitch
p1 = 1
p1 = 18, 24, 30, 36, 42, 48, 60 oder 72
Selects fixed pitch equal to 360/p1 cpi
p = p2 +p3 * 256
p: Point size in 0,5 points = p2 + p3 * 256
1 point = 1/72 Zoll
No change in point size
p = 16, 21, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64
Selects proportional spacing · p = 0

ESC / P2 Commands Epson LQ-2550 emulation
ESC ( U p1 p2 1B 28 55 p1 p2 27 40 85 p1 p2
This command defines the unit used for positioning in n/3600 inches. This definition is valid for the following commands:
Set page format ESC ( c p1 p2 p3 p4 p5 Set page length in defined units ESC ( C p1 p2 p3 Set absolute vertical print position ESC ( V p1 p2 p3 Set relative vertical print position ESC ( v p1 p2 p3
p1 = 01 00
p2 = 10, 20, 30, 40, 50, 60 /3600”
ESC c p1 p2 1B 63 p1 p2 27 99 p1 p2
Selects pitch in steps of n/360”.
HMI = p1 + p2 * 256
HMI max. 3 Zoll.

ESC / P2 Commands Epson LQ-2550 emulation
ESC ( t p1 p2 p3 p4 p5 1B 28 74 p1 p2 p3 p4 p5 27 40 116 p1 p2 p3 p4
p2 = 0
p3 Character table, selected via p4 and p5
p4 p5 character table
0 0 : Kursiv 1 0: PC 437 (USA) 3 0: PC 850 (Multilingual) 7 0: PC 860 (Portugal) 8 0 PC 863 (French-Canada) 9 0 PC 865 (Norway) 44 0 PC 858
p4 and p5 are Decimal-characters
Four character tables can be assigned:
0 ≤ p3 ≤ 3 or 48 ≤ p3 ≤ 51
The command select character table will activate the assigned character table.
ESC t p1 1B 74 p1 27 116 p1
p1 = 0, 1, 2, 3, “0”, “1”, “2” oder “3”
This command selects one of the four character tables which are assigned by the command assign character table.
p1 = 3

ESC / P2 Commands Epson LQ-2550 emulation
ESC ( ^ p1 p2 data 1B 28 5E p1 p2 27 40 94 p1, p2
This command prints data as characters.
p1 + p2 * 256 p = sum of data (number of bytes, which are to be printed as characters, not control codes)
Data:
p bytes of data to be printed as characters
ESC ( G p1 p2 1B 28 47 p1 p2 27 40 71 p1, p2
p1= 01 00
p2 = 1 or 49
Graphics mode may be reset by ESC @.
p = · selects graphics mode

ESC / P2 Commands Epson LQ-2550 emulation
ESC . p1 p2 p3 p4 p5 p6 1B 2E p1 p2 p3 p4p5 p6 27 46 p1 p2 p3 p4p5 p6
graphics mode (not compressed)
p2 = 5, 10, 20
vertical resolution in 3600/p2 dpi
p3 = 5, 10, 20
horizontal resolution in 3600/p2 dpi
p4 = vertical dot count
p = p5 + p6 * 256
p: horizontal dot count
The following combination is not possible:
p2 = 10, p3 = 20
p1 = 0 · p1 = 1 · graphics mode, compressed

You can print the following barcodes with the 901x printer:
G 2 out of 5 Industrial
G 2 out of 5 Interleaved
G EAN-8 and EAN-13
– EAN-8 and EAN-13 Add-on (EAN Add-On 2 and EAN Add-On 5)
G MSI Mod 10/10
G UPC-A and UPC-E
– Code UPC-A and UPC-E Add-on (EAN Add-On 2 and EAN Add-On 5)
G Code 128 (EAN 128)
Programming examples for the different barcode types are given on page 150 and up.
G Code 39 · G Codabar (Monarch) · G Code 93

The print tolerance is smaller for horizontal barcodes than it is for vertical barcodes. Horizontal barcodes are automatically printed in unidirectional mode to ensure maximum accuracy. Vertically printed barcodes may be adversely affected by paper feed tolerances especially in the lower third of the last page of continuous form or on single sheets. This is why barcodes with small elements widths should be avoided.
The barcode symbol must fully fit on the logical page and must not exceed the page bound- aries.
The number of characters including control, start and stop characters for a barcode symbol is limited to 50. Most barcode specifications and barcode reading systems accept far fewer characters per symbol.
It is recommended to check barcode applications and reading systems for compatibility.
The original printouts of all barcode symbols in the programming examples have been checked with commercially available barcode readers.
The character complement of the Code 39 comprises:
– 26 letters: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
The extended Code 39 allows the entire ASCII character set to be represented by combining one of the special characters with a letter.
The number of characters is variable. The start/stop characters are programmed with the special character *. In the plain text line, the character * is printed for start/stop.
The symbol layout is self-checking. A check digit is not required. If a check digit is to be used, it must be programmed in the application (and must be modulo 43). The Code 39 has the safest and most reliable structure among the industrial barcodes.
The ratio of wide to narrow elements should be between 2.0 and 3.0. A ratio of 2.5 is recom- mended for applications.
The barcode height should be 25% of the barcode length or 20 mm, whichever is greater. A barcode should consist of no more than 20 characters.
Code 39 Barcodes

2 out of 5 Industrial Barcodes
The blank zone before and after the barcode symbol should be at least 10 times the width of a narrow element.
Reference table for check digit calculation:
0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 A 10 B 11 C 12 D 13 E 14 F 15 G 16 H 17 I 18 J 19 K 20 L 21 M 22
N 23 O 24 P 25 Q 26 R 27 S 28 T 29 U 30 V 31 W 32 X 33 Y 34 Z 35 - 36 . 37 Sp 38 $ 39 / 40 + 41 % 42
Example of check digit calculation modulo 43:
The character complement of the 2 out of 5 Industrial code comprises:
The number of characters is variable.
The start/stop characters are programmed with the characters : and ;. Alternatively, the characters < and = can be used as start/stop characters.
In the plain text line, the characters . and ; or < and = are printed for start/stop.
The symbol layout is self-checking. A check digit is not required but should be used (modulo 10 with a weighting of 3). The check digit must be programmed in the application.
The ratio of wide to narrow elements should be between 2.0 and 3.0. A ratio of 2.5 is recom- mended for applications.
The code permits large tolerances between ±15% and 20%.
The blank zone before and after the barcode symbol should be at least 10 times the width of a narrow element.

2 out of 5 Interleaved Barcodes
The character complement of the 2 out of 5 Interleaved code comprises:
The number of characters is variable but must be even. If the number of characters is odd, a 0 is prefixed to make it even.
The start/stop characters are programmed with the characters : and ;. Alternatively, the characters < and = can be used as start/stop characters.
In the plain text line, the characters : and ; or < and = are printed for start/stop.
The symbol layout is self-checking. A check digit is not required. If a check digit is to be used, it must be programmed in the application (and must be modulo 10 with a weighting of 3).
The ratio of wide to narrow elements should be between 2.0 and 3.0. A ratio of 2.5 is recom- mended for applications.
The blank zone before and after the barcode symbol should be at least 10 times the width of a narrow element.

EAN-8 and EAN-13 Barcodes
The character complement of the Codabar (Monarch) code comprises:
The number of characters is variable. The start/stop characters are programmed with the characters a/t, b/n, c/*, d/e. In the plain text line these characters are printed for start/stop.
The symbol layout is self-checking. A check digit is not required and is rarely used. The check digit must be programmed in the application.
The check digit method is modulo 16. In practice, modulo 10 with a weighting of 3 or modulo 11 are also used.
The ratio of wide to narrow elements should be between 2.0 and 3.0. A ratio of 2.5 is recom- mended for applications.
The barcode height should be 25% of the barcode length or 20 mm, whichever is greater.
The blank zone before and after the barcode symbol should be at least 10 times the width of a narrow element.
The EAN-8 and EAN-13 codes have a character set of 10 digits. The number of characters is fixed and is 8 for EAN-8 and 13 for EAN-13.
Layout of EAN-8:
– Two digits for the manufacturer’s country
– Five digits for small-sized products
– One check digit

EAN-8 and EAN-13 Barcodes
Layout of EAN-13:
– Two digits for the manufacturer’s country
– Five digits for the manufacturer
– Five digits for the product
– One check digit
The border and separator characters are automatically generated by the printer. All characters are also printed as plain text.
The symbol layout is self-checking. A check digit is required. The check digit must be programmed in the application (and must be modulo 10 with a weighting of 3).
The code can be printed in the three sizes SC3, SC6 and SC9. The height of the symbol is variable but should be programmed to approximately match the width of the symbol.
The following minimum blank zones should be observed:
Size Blank zones in mm
Left of symbol Right of symbol
SC3 2.6 4.0 2.6
SC6 3.6 5.5 3.6
SC9 4.7 7.3 4.7

The EAN-8 and EAN-13 codes with a two or five-digit add-on are printed automatically if two or five additional digits are programmed in the application.
The check digit calculation ignores the add-on digits.
Example of check digit calculation modulo 10 with a weighting of 3:
Difference from 10 is check digit : 10-2=8
The character complement of the Code 93 code comprises:
– 26 letters: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
– 4 control characters: (X’67 in ISO 7-bit or X’87 in EBCDIC) (X’68 in ISO 7-bit or X’88 in EBCDIC) (X’69 in ISO 7-bit or X’89 in EBCDIC) (X’6A in ISO 7-bit or X’91 in EBCDIC)
The number of characters is variable. The start/stop characters are programmed with the characters, e.g. a/e.
Code 93 Barcodes · $ · %

In the plain text line, the special characters [ ] are printed for start/stop. All characters including the start, stop, control and check characters are also printed in the plain text line.
The symbol layout is not self-checking. Two check digits, C and K, are required and must be programmed in the application. The modulo 47 check digit layout is for the check digit C with a weighting of 1 to 10, for the check digit K with a weighting of 1 to 15.
The barcode height should be 15% of the barcode length or 0.25 inch, whichever is greater.
The blank zone before and after the barcode symbol should be at least 10 times the width of a narrow element.
Reference table for check digit calculation:
0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 A 10 B 11 C 12 D 13 E 14 F 15 G 16 H 17 I 18 J 19 K 20 L 21
M 22 N 23 O 24 P 25 Q 26 R 27 S 28 T 29 U 30 V 31 W 32 X 33 Y 34 Z 35 - 36 . 37 Sp 38 $ 39 / 40 + 41 % 42 ($) 43
(%) 44 (/) 45 (+) 46
Code 93 Barcodes

Example of check digit calculation:
Information char seq. : C + O + D + E SP 9 3
Weighting factors for check digit C : 10 9 8 7 6 5 4 3 2 1
Weighting factors for check digit K : 11 10 9 8 7 6 5 4 3 2 1
Sum of products for check digit C :
(12*10) + (41*9) + (24*8) + (41*7) + (13*6) + (41*5) + (14*4) + (38*3) + (9*2) + (3*1) = 1442
Sum of products for check digit K
: (12*11) + (41*10) + (24*9) + (41*8) + (13*7) + (41*6)
+ (14*5) + (38*4) + (9*3) + (3*2) + (32*1) = 1710
The following characters are provided for coding the start and stop characters:
Code 93 Barcodes · Check character

MSI Mod 10/10 Barcodes
The control characters are coded as follows:
The control characters are printed in plain text within a closed circle.
The character complement of the MSI Mod 10/10 code comprises:
The number of characters is variable. The start/stop characters are programmed with the characters : and ;.
In the plain text line, these characters are printed for start/stop.
A check digit is required and must be programmed in the application (and must be modulo 10 from a checksum generated in several stages).
The ratio of wide to narrow elements is fixed and is always 2 : 1.
The blank zone before and after the barcode symbol should be at least 10 times the width of a narrow element.

UPC-A and UPC-E Barcodes
Example of check digit calculation
New number generated from odd positions : 2 4 6 4
Sum of the even positions of the original number and sum from the last step : 1 + 3 + 5 + 7 + 23 = 39
Difference from 10 is the check digit : 10 - 9 = 1
The number of characters in the UPC-A and UPC-E codes is fixed and is eight digits for UPC-E and twelve digits for UPC-A. The border and separator characters are automatically generated by the printer.
The UPC-A code has the following layout:
– One digit as the system identifier
0 = Standard consumer goods
2 = Goods marked in-store
3 = Pharmaceutical and medical supplies
– Five digits for the manufacturer number
– Five digits for the product number
5 = Coupons · One check digit

Code 128 (EAN 128) Barcodes
The UPC-E code is a compressed version of UPC-A with zero suppression in specific digit sequences. Suppression of four consecutive zeros begins from the sixth digit from the left. Zero suppression must be performed by the application.
012345000065 without zero suppression
01234565 with zero suppression
All digits except the system identifier and check character are printed in plain text.The symbol layout is self-checking.
A check digit is required. (Check digit calculation is performed modulo 10, with a weighting of 3, as in UPC-A, because UPC-E is a compressed form of UPC-A). The check digit must be programmed in the application. The check digit of the UPC-E symbol is calculated on the non-zero-suppressed digit sequence. The principle of check digit calculation is described in the section “EAN-8 and EAN-13”.
The code can be printed in the three sizes SC3, SC6 and SC9. The height of the symbol is variable but should be programmed to approximately match the width of the symbol.
The blank zone before and after the barcode symbol should be at least 0.1287 inch for SC3, at least 0.1755 inch for SC6, and at least 0.234 for SC9.
UPC-A and UPC-E with a two or five-digit add-on are printed automatically if two or five additional digits are programmed in the application.
The check digit calculation ignores the add-on digits.
The Code 128 has a character set of 128 ASCII characters, four control characters (FNC1, FNC2, FNC3, FNC4) and four special characters (CODE A, CODE B, CODE C, SHIFT). The number of characters is variable. The three start characters, the stop character and the special characters are automatically generated by the printer to optimize the information density.
Example

All printable ASCII characters are printed in the plain text line. All other characters, start, stop, control and special characters and the check digit are replaced by a space. The required check character is automatically generated by the printer. The symbol layout is self-checking.
If the barcode begins with FNC1 (hexadecimal 5D 43 31), this identifies EAN 128.
FNC2 (hexadecimal 5D 43 32) controls the reader for multiple reads.
FNC3 (hexadecimal 5D 43 33) is reserved for special reader functions.
FNC4 (hexadecimal 5D 43 34) is reserved for special future applications.
The barcode height should be 15% of the barcode length or 0.25 inch, whichever is greater.
Example of check digit calculation:
Plain text with check digit : 0 0 3 4 0 1 2 3 4 5 1 2 3 4 5 6 7 8 9 5
Plain text w/o check digit : 0 0 3 4 0 1 2 3 4 5 1 2 3 4 5 6 7 8 9
Weighting factors : 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3
2 5 3 2 9 4 1 5 6 2 1 8 2 7
The POSTNET code has a character set of ten digits.
The number of characters is fixed and depends on the application:
5-Digit Zip Code (A Field) 5 digits plus check digit
Zip + 4 Code (C Field) 9 digits plus check digit
Delivery Point Barcode (C Prime Field) 11 digits plus check digit
The start/stop characters and the check digit are automatically generated by the printer (modulo 10 with a weighting of 1). This barcode has no plain text line.
POSTNET Barcodes

The barcode is a fixed size. The length varies with the number of digits. The barcode pitch is 21.18 bars/inch, the bar is 0.021 inch nominal, and the gap is 0.0255 inch.
The print quality (LQ/NLQ/draft), which determines the print speed, can be programmed in the application using specific control characters.
The following specifications are required before barcode symbols can be printed:
– Barcode set selection
– Height and width of the bars and spaces
– Ratio of wide to narrow bars and spaces
– Barcode alignment (horizontal/vertical)
– Current print position after printing
– Plain text line (yes/no)
These specifications can be made at ay time. The information is retained until the printer is reset.
Normal text is not affected by these specifications. The line pitch set for normal text remains unchanged.
The line pitch is set to 1/12 inch for the barcode to be printed.
Control char. sequence Hexadecimal Decimal
ESC [ ; p2; p3 ; p4 ; p5 ; p6 ; p7 SP z
1B 5B 3B p2 3B p3 3B p4 3B p5 3B p6 3B p7 20 7A 27 91 59 p2 59 p3 59 p4 59 p5 59 p6 59 p7 32 122
Select barcode Barcodes

p2 Specification of the barcode set whose characters are to be printed.
Values:
Vertical barcode without plain
Vertical barcode with plain text
barcode with plain text
101 201 301 401 Code 39
102 202 302 402 2 out of 5 Industrial
103 203 303 403 2 out of 5 Inter- leaved
104 204 304 404 Codabar
106 206 --- --- EAN 13
107 207 307 407 Code 93
108 208 308 408 MSI Mod 10/10
110 210 --- --- UPC A
111 211 311 411 Code 128

p3 Specification of bar height; bar height = p3 x 1/12 inch. A decimal whole number with one or two digits (from 1 to 99) can be specified.
EAN and UPC codes with add-on code (EAN Add-On 2 or EAN Add-On 5) require a minimum height of 3/12 inch.
Value of decimal place
p4 Width of bar
p5 Width of space
p6 Ratio of wide to narrow
Code direction horizontal vertical
Code direction horizontal vertical
0 0.35 mm 0.28 mm 0.35 mm 0.28 mm 2.0 to 1
1 0.53 mm 0.42 mm 0.53 mm 0.42 mm 2.5 to 1
2 0.70 mm 0.56 mm 0.70 mm 0.56 mm 3.0 to 1
3 0.88 mm 0.70 mm 0.88 mm 0.70 mm 3.5 to 1
4 1.05 mm 0.85 mm 1.05 mm 0.85 mm ---
5 1.23 mm 0.99 mm 1.23 mm 0.99 mm ---
6 1.41 mm 1.12 mm 1.41 mm 1.12 mm ---
7 1.58 mm 1.27 mm 1.58 mm 1.27 mm ---
These values change with the degree of saturation of the ribbon. They are thus only valid for a new ribbon.
The module width is standardized with the EAN and UPC codes. The following values are valid for p6 when setting the barcode:
p6 = 0 p6 = 1 p6 = 2 p6 = 3
The ratio of wide to narrow is fixed with Code 93, MSI Mod 10/10 and Code 128. p6 is thus not required and is ignored. POSTNET does not require the parameters p4, p5 and p6.
Select barcode Barcodes

p7 Define the print direction (uni- or bi-directional)
p7 = 0 p7 = 1 p7 = 2 p7 = 3 p7 = 4
uni-directional printing (standard) uni-directional printing in LQ bi-directional printing in LQ uni-directional printing in NLQ bi-directional printing in NLQ
If p7 is not defined, the standard value (uni-directional) is valid.
The parameter UNI-DIRECT.CMD needs to be set via operator panel or ESC-sequence whenever a switch between uni-directional and bi-directio- nal printing is intended.
In the following examples the parameter p7 is not used. So the printing direction is uni-direc- tional.
Barcodes

Set/reset barcode mode Barcodes

Set ESC [ ? 0 h 1B 5B 3F 30 68 27 91 63 48 104
Reset ESC [ ? 0 l1) 1B 5B 3F 30 6C 27 91 63 48 108
The printing of barcode symbols is set or reset with this control character.
The barcode must be selected before the barcode mode is activated. While the barcode mode is on, no other escape sequences are permitted. No page break is allowed within a barcode symbol!
Programming:
: ESC [ ; n2 ; n3 ; n4 ; n5 ; n6 SP z
Printout:

Code 39 · Barcode header header

2 out of 5 Industrial
Programming:
Printout:

: 1 2 3 4 5 6 6 7 8 9 0 ;
2 out of 5 Interleaved
Programming:
Printout:

: 1 2 3 4 5 6 7 8 9 0 ;
Programming examples Barcodes

Programming:
Printout:

a 0 1 2 3 4 5 6 6 7 8 9 t
Programming:
Printout:

Programming examples Barcodes · Codabar (Monarch)

Programming:
Printout:

Programming:
Printout:

Programming examples Barcodes · EAN-8 Add-on 2 · EAN-8 Add-on 5

Programming:
Printout:

4 1 2 3 4 5 6 7 8 9 0 1 8
Programming:
Data : 4 1 2 3 4 5 6 7 8 9 0 1 8 1 2
Printout:

4 1 2 3 4 5 6 7 8 9 0 1 8
Programming examples Barcodes · EAN-13 Add-on 2

Programming:
Data : 4 1 2 3 4 5 6 7 8 9 0 1 8 8 6 1 0 4

4 1 2 3 4 5 6 7 8 9 0 1 8
Programming:
Printout:

Programming examples Barcodes · EAN-13 Add-on 5 · Code 93

Programming:
Printout:

: 1 2 3 4 5 6 7 4 1 ;
Programming:
Printout:

Programming examples Barcodes · MSI Mod 10/10

Programming:
Printout:

Programming:
Printout:

Programming examples Barcodes · UPC-E Add-on 2 · UPC-E Add-on 5

Programming:
Printout:

1 2 3 4 5 6 7 8 9 0
Programming:
Printout:

1 2 3 4 5 6 7 8 9 0
Programming examples Barcodes · UPC-A Add-on 2

Programming:
Data : 0 1 2 3 4 5 6 7 8 9 0 5 8 6 1 0 4
Printout:

1 2 3 4 5 6 7 8 9 0
Programming:
Printout:

Programming examples Barcodes · UPC-A Add-on 5 · Code 128

Programming:
Printout:

0 0 3 4 0 1 2 3 4 5 1 2 3 4 5 6 7 8 9 5
Programming with DPBC (delivery point barcode):
Mark Pollan CR LF 101 Main St CR LF Anytown US 12345-6789
Printout:
Programming examples Barcodes

The following examples use blank zones before and after the barcode symbol. The size of the blank zones is barcode-specific. The minimum sizes must be observed and must be provided by the application by positioning control functions before and after the barcode symbol.
Two horizontal barcode symbols side by side
Programming:
Printout:

* C O D E 3 9 * * C O D E 3 9 *
Programming examples Barcodes

Two horizontal barcode symbols one beneath the other
Programming:
Printout:

Programming examples Barcodes

Two vertical barcode symbols side by side
Programming:
Printout:

Programming examples Barcodes

Two vertical barcode symbols one beneath the other
Programming:
Printout:

* C O D E 3 9 * * C O D E 3 9 *
Programming examples Barcodes

Format of EAN number Barcodes
Example of the format of an EAN number (European Article Numbering)
4 0 1 2 3 4 5 2 0 3 7 5 2
Item and packing unit
Check digit generation in the above example:

Decimal Remark See page
Eject sheet ESC [ < s 1B 5B 3C 73 27 91 60 115 17
Select paper source and ejection, number of copies, cut- off mode
ESC [ > p1 ; p2 ; p3 ; p4 s
1B 5B 3E p1 3B p2 3B p3 3B p4 73
27 91 62 p1 59 p2 59 p3 59 p4 115
Command Control sequence · Hexa- decimal

Forms layout IBM Proprinter emulation
Decimal Remark See page
Set form length in lines
ESC C p1 1B 43 p1 27 67 p1 X’ 01 ≤ p1 ≤ X’ 7F 22
Set form length in inches
ESC C NUL p1
1B 00 43 p1
27 00 67 p1
X’ 01 ≤ p1 ≤ X’ 16 23
Set perfo- ration skip mode
ESC N p1 1B 4E p1 27 78 p1 X’ 00 ≤ p1 ≤ X’ FF in lines
Reset perfo- ration skip mode
Set first print line
ESC 4 1B 34 27 52 First print line corresponds to top of form
Set left and right margins
ESC X p1 p2
1B 58 p1 p2
27 88 p1 p2
p1 p2
Left margin Right margin

Forms transport IBM Proprinter emulation
Decimal Remark See page
Set 8 lpi ESC 0 1B 30 27 48 26
Set 7/72 inch line spacing mode
Preset n/72 inch line spacing mode
ESC A p1 1B 41 p1 27 65 p1 X’ 01 ≤ p1 ≤ X’ 55 27
Set preset line spacing
Set n/216 or n/180 inch line spacing mode
ESC 3 p1 1B 33 p1 27 51 p1 X’ 01 ≤ p1 ≤ X’ FF 27
Set line spacing unit
ESC [ \ EOT NUL NUL NUL p1 NUL
1B 5B 5C 04 00 00 00 p1 00
27 91 92 04 00 00 00 p1 00
p1 Line spacing unit
Line feed (LF) LF 0A 10 28
FF 0C 12 29
Relative vertical tabulation forward
ESC J p1 1B 4A p1 27 74 p1 X’ 00 ≤ p1 ≤ X’ FF in 1/216 inch or in 1/180 inch increments
Set vertical tab stops
ESC B p1 ... pk NUL
1B 42 p1 ... pk 00
27 66 p1 ... pk 00

Forms transport IBM Proprinter emulation
Decimal Remark See page
Additional commands:
ESC [ p1 { 1B 5B p1 7B 27 91 p1 123
Reset tab stop ESC [ p1g 1B 5B p1 67 27 91 p1 103 31
Command Control sequence · Hexa- decimal · Load line spacing

Print carriage movements IBM Proprinter emulation
Command Control character sequence
Decimal Remark See page
Print head to left margin
Space SP 20 32 33
Backspace BS 08 08 33
Set 10 cpi (Pica)
Set 12 cpi (Elite)
Set 17.1 cpi SI 0F 16 34
Set/reset proportional spacing mode
ESC P p1 1B 50 p1 27 80 p1 p1 = p1 =
X’ 00, X’ 30 Fixed X’ 01, X’ 31 Proportional
ESC d p1 p2
1B 64 p1 p2
27 100 p1 p2
1/120inch increments 35
Set horizontal tab stops
ESC D p1 ... pk NUL
1B 44 p1 ... pk 00
27 68 p1 ... pk 00
Set print direction (bidirectional or unidirec- tional)
ESC U p1 1B 55 p1 27 85 p1 p1 =
X’ 00, X’ 30 Bidirectional X’ 01, X’ 31 Unidirectional

Print carriage movements IBM Proprinter emulation
Command Control character sequence
Decimal Remark See page
Additional commands:
ESC [ p1 ‘ 1B 5B p1 60 27 91 p1 96
ESC [ p1 a 1B 5B p1 61 27 91 p1 97 38
ESC [ p1 d 1B 5B p1 64 27 91 p1 100 38
ESC [ p1 e 1B 5B p1 65 27 91 p1 101 38

Font design IBM Proprinter emulation
Command Control character sequence
Decimal Remark See page
Select IBM character set 1
Select IBM character set 2
ESC E 1B 45 27 69 40
ESC F 1B 46 27 70 40
Set double strike mode
Reset double strike mode
Set subscript/ superscript mode
ESC S p1 1B 53 p1 27 83 p1 p1 =
X’ 00, X’ 30 Superscript X’ 01, X’ 31 Subscript
Reset subscript/ superscript mode
Set expanded mode for one line
ESC SO 1B 0E 27 14
ESC W p1 1B 57 p1 27 87 p1 p1 =
X’ 00, X’ 30 Reset X’ 01, X’ 31 Set
Set character size and line spacing
ESC [ @ EOT NUL NUL NUL p1 p2
1B 5B 40 04 00 00 00 p1 p2
27 91 64 04 00 00 00 p1 p2
Line spacing and character width Character height

Font design IBM Proprinter emulation
Command Control character sequence
Decimal Remark See page
Set print quality and character pitch
ESC I p1 1B 49 p1 27 73 p1 Valid values p1: 44
X’ 00 X’ 02 X’ 03 X’ 08 X’ 0A X’ 10 X’ 12
10 cpi 10 cpi prop. 12 cpi 12 cpi 17 cpi 17 cpi
ESC - p1 1B 2D p1 27 45 p1 p1 =
X’ 00, X’ 30 Reset X’ 01, X’ 31 Set
ESC _ p1 1B 5F p1 27 95 p1 p1 =
X’ 00, X’ 30 Reset X’ 01, X’ 31 Set
Additional commands:
ESC [ p1 m
1B 5 B p1 6D 27 91 p1 109
ESC [ p1 b 1B 5 B p1
62 27 91 p1 98 45
Graphical change of size
ESC [ p1; p2 SP B
1B 5 B p1 3B p2 20 42
27 91 p1 59 p2 32 66
Set national version and code page
ESC [ p1; p2 w
1B 5B p1 3B p2 77 27 91 p1 59 p2 119
ESC [ p1 w
1B 5B p1 77 27 91 p1 119 45
Set code page ESC [ ; p2 w
1B 5B 3B p2 77
27 91 59 p2 119
Set character pitch and select font
ESC [ p1 ; p2 x
1B 5B p1 3B p2 78 27 91 p1 59 p2 120

Font design IBM Proprinter emulation
Command Control character sequence
Decimal Remark See page
Select font ESC [ p1 x 1B 5B p1
78 1B 5B p1 78 51
Set print quality (NLQ, LQ)
ESC [ p1 SP X
1B 5B p1 20 58 27 91 p1 32 88 51
Hexa- decimal

Bitmap graphics IBM Proprinter emulation
Decimal Remark See page
ESC * p1 p2 p3 data
1B 2A p1 p2 p3 data
27 42 p1 p2 p3 data
p1 p2 p3
Graphics mode Number of columns
Select single dot-density graphics mode
ESC K p1 p2 data
1B 4B p1 p2 data
27 75 p1 p2 data
p1 p2 Number of
Select double dot-density graphics mode
ESC L p1 p2 data
1B 4C p1 p2 data
27 76 p1 p2 data
p1 p2 Number of
Select double dot-density and double- speed graphics mode
ESC Y p1 p2 data
1B 59 p1 p2 data
27 89 p1 p2 data
p1 p2 Number of
Select quadruple dot-density graphics mode
ESC Z p1 p2 data
1B 5A p1 p2 data
27 90 p1 p2 data
p1 p2 Number of
Select graphics mode (expanded)
ESC [ g p1 p2 p3 data
1B 5B 67 p1 p2 p3 data
27 91 103 p1 p2 p3 data
p1 p2
Number of graphics data bytes + 1 Graphics mode

Miscellaneous commands IBM Proprinter emulation
Decimal Remark See page
Set default tab stops
Transparent print data for one character
ESC ^ p1 1B 5E p1 27 94 p1 p1 Character code
Transparent print data for several characters
ESC \ p1 p2
1B 5C p1 p2
27 92 p1 p2
No. = (p1+(p2*256) 62
ESC 5 p1 1B 35 p1 27 53 p1 p1 =
X’ 00, X’ 30 CR = CR X’ 01, X’ 31 CR = CR + LF
ESC Q # 1B 51 23 27 81 35 63
ESC Q $ 1B 51 24 27 81 36 63
DEL 7F 127 63
NUL function NUL 00 00 64
Additional commands:
$$ 24 24 36 36

Miscellaneous commands IBM Proprinter emulation
Decimal Remark See page
ESC [ p1 ; p2 SP r
1B 5B p1 3B p2 20 72
27 91 p1 59 p2 32 114
Set barcode ESC [ ; p2; p3 ; p4 ; p5 ; p6 SP z
1B 5B 3B p2 3B p3 3B p4 3B p5 3B p6 20 7A
27 91 59 p2 59 p3 59 p4 59 p5 59 p6 32 122
27 91 63 48 104
27 91 63 48 108

Alternative graphics mode AGM IBM Proprinter emulation
Decimal Remark See page
Set n/60 inch line spacing mode
ESC A p1 1B 41 p1 27 65 p1 X’ 01 ≤ p1 ≤ X’ 55 65
Set n/216 or n/180 inch line spacing mode
ESC 3 p1 1B 33 p1 27 51 p1 X’ 01 ≤ p1 ≤ X’ FF 65
Relative vertical tabulation forward
ESC J p1 1B 4A p1 27 74 p1 X’ 00 ≤ p1 ≤ X’ FF in 1/180 inch or in 1/216 inch increments
ESC * p1 p2 p3 data
1B 2A p1 p2 p3 data
27 42 p1 p2 p3 data
Graphics mode Number of columns
p2 p3

Decimal Remark See page
Reset to initial condition
Forms transport mechanism
Decimal Remark See page
Select single form feed
ESC EM p1 1B 19 p1 27 25 p1 Ignored 73
Eject sheet ESC [ < s 1B 5B 3C 73 27 91 60 115 74
Select paper source and ejection, number of copies, cut- off mode
ESC [ > p1 ; p2 ; p3 ; p4 s
1B 5B 3E p1 3B p2 3B p3 3B p4 73
27 91 62 p1 59 p2 59 p3 59 p4 115

Forms layout Epson LQ-2550 emulation
Decimal Remark See page
Set form length in lines
ESC C p1 1B 43 p1 27 67 p1 X’ 01 ≤ p1 ≤ X’ 7F 79
Set form length in inches
ESC C NUL p1
1B 43 00 p1
27 67 00 p1
X’ 01 ≤ p1 ≤ X’ 16 80
Set perforation skip mode
ESC N p1 1B 4E p1 27 78 p1 X’ 01 ≤ p1 ≤ X’ 7F in lines
Reset perfo- ration skip mode
Set left margin ESC l p1 1B 6C p1 27 108 p1 X’ 00 ≤ p1 ≤ X’ FC in columns
ESC Q p1 1B 51 p1 27 81 p1 X’ 04 ≤ p1 ≤ X’ FF in columns
Command Control sequence · Hexa- decimal · Set right margin

Forms transport Epson LQ-2550 emulation
Decimal Remark See page
Set 8 lpi ESC 0 1B 30 27 48 82
Set 6 lpi ESC 2 1B 32 27 50 82
Set n/60 inch line spacing mode
ESC A p1 1B 41 p1 27 65 p1 X’ 00 ≤ p1 ≤ X’ 7F 83
Set n/180 inch line spacing mode
ESC 3 p1 1B 33 p1 27 51 p1 X’ 00 ≤ p1 ≤ X’ FF 83
Set n/360 inch line spacing mode
ESC + p1 1B 2B p1 27 43 p1 X’ 00 ≤ p1 ≤ X’ FF 84
Line feed LF 0A 10 84
Form feed FF 0C 12 84
Relative vertical tabulation forward
ESC J p1 1B 4A p1 27 74 p1 X’ 00 ≤ p1 ≤ X’ FF in 1/180 inch increments
Relative vertical tabulation reverse
ESC j p1 1B 6A p1 27 106 p1 X’ 00 ≤ p1 ≤ X’ FF in 1/180 inch increments
Select vertical tabulation channel
ESC / p1 1B 2F p1 27 47 p1 X’ 00 ≤ p1 ≤ X’ 07 85
Set vertical tab stops
ESC B p1 ... pk NUL
1B 42 p1 ... pk 00
27 66 p1 ... pk 00
Set vertical tab stops in channel
ESC b p1 p2 ... pk NUL
1B 62 p1 p2 ... pk 00
27 98 p1 p2 ... pk 00
Command Control sequence · Hexa- decimal

Forms transport Epson LQ-2550 emulation
Decimal Remark See page
Command Control sequence · Hexa- decimal · Vertical tabulation

Print carriage movements Epson LQ-2550 emulation
Decimal Remark See page
Space SP 20 32 90
Backspace BS 08 08 90
Set 10 cpi (Pica)
Set 12 cpi (Elite)
Set 15 cpi ESC g 1B 67 27 103 91
Set/reset proportional spacing mode
ESC p p1 1B 70 p1 27 112 p1 p1
X’ 00, X’ 30 Fixed X’ 01, X’ 30 Proportional
Set character spacing mode
ESC SP p1 1B 20 p1 27 32 p1 1/120
Inch incs. (DRAFT) Inch incs. (LQ/NLQ)
ESC $ p1 p2
1B 24 p1 p2
27 36 p1 p2
1/60 Inch increments
ESC \ p1 p2
1B 5C p1 p2
27 92 p1 p2
Inch incs. (DRAFT) Inch incs. (LQ/NLQ)
Set horizontal tab stops
ESC D p1 ... pk NUL
1B 44 p1 ... pk 00
27 68 p1 ... pk 00
Set print direction (bidirectional or unidirec- tional
ESC U p1 1B 55 p1 27 85 p1 p1 =
X’ 00, X’ 30 Bidirectional X’ 01, X’ 31 Unidirectional

Print carriage movements Epson LQ-2550 emulation
Decimal Remark See page
Set unidirec- tional print mode for one line
ESC a p1 1B 61 p1 27 97 p1 Valid values p1: 96
Left-justif. Centered Right-justif. Justified
Command Control sequence · Hexa- decimal · Select text alignment

Font design Epson LQ-2550 emulation
Decimal Remark See page
ESC k p1 1B 6B p1 27 107 p1 Valid values p1: 98
X’ 00 X’ 01 X’ 02 X’ 03 X’ 04 X’ 05 X’ 06 X’ 07 X’ 08 X’ 10
Roman Sans Serif Courier Prestige Script OCR-B OCR-A Orator-C Orator Data-Block
ESC R p1 1B 52 p1 27 82 p1 99
ESC t p1 1B 74 p1 27 116 p1 Valid values p1: 100
Epson ITALIC Epson EXT GCT User-def. character set
Set/reset user-defined character set
ESC % p1 1B 25 p1 27 37 p1 p1 =
X' 01 Set X' 00 Reset
Copy current character set into user- defined character set
1B 3A 00 p1 00
27 58 00 p1 00
X' 00 X' 01 X' 02 X' 03 X' 04 X' 05 X' 06 X' 07 X' 08 X’ 10
Roman Sans Serif Courier Prestige Script OCR-B OCR-A Orator-C Orator Data-Block

Font design Epson LQ-2550 emulation
Decimal Remark See page
ESC & NUL p1 p2 p3 p4 p5 data
1B 26 00 p1 p2 p3 p4 p5 data
27 38 00 p1 p2 p3 p4 p5 data
Code location First character Code location Last character Leading blank columns Number of dot columns Trailing blank columns Dot information
ESC x p1 1B 78 p1 27 120 p1 p1 =
X’ 00, X’ 30 DRAFT X’ 01, X’ 31 LQ/NLQ
ESC q p1 1B 71 p1 27 113 p1 Valid values p1: 105
Normal Outline Shadow Outline + shadow
ESC 5 1B 35 27 53 106
ESC E 1B 45 27 69 106
ESC F 1B 46 27 70 106
Set double strike mode
Reset double strike mode

Font design Epson LQ-2550 emulation
Decimal Remark See page
Set subscript/ superscript mode
ESC S p1 1B 53 p1 27 83 p1 p1 =
X’ 00, X’ 30 Superscript X’ 01, X’ 31 Subscript
Reset subscript/ superscript mode
SI 0F 15 108
ESC SI 1B 0F 27 15
DC2 12 18 108
Set expanded mode for one line
ESC SO 1B 0E 27 14
ESC W p1 1B 57 p1 27 87 p1 p1 =
X’ 00, X’ 30 Reset X’ 01, X’ 31 Set
Set/reset double height mode
ESC w p1 1B 77 p1 27 119 p1 p1 =
X’ 00, X’ 30 Reset X’ 01, X’ 31 Set
Select print mode combi- nation
ESC ! p1 1B 21 p1 27 33 p1 110
ESC - p1 1B 2D p1 27 45 p1 p1 =
X’ 00, X’ 30 Reset X’ 01, X’ 31 Set

Font design Epson LQ-2550 emulation
Decimal Remark See page
Set/reset line marking mode
ESC ( - ETX NUL SOH p1 p2
1B 28 2D 03 00 01 p1 p2
27 40 45 03 00 01 p1 p2
Additional commands:
Graphical change of sizes
ESC [ p1; p2 SP B
1B 5 B p1 3B p2 20 42
27 91 p1 59 p2 32 66
Set national version and code page
ESC [ p1; p2 w
1B 5B p1 3B p2 77 27 91 p1 59 p2 119 113
ESC [ p1 w 1B 5B p1
77 27 91 p1 119 113
ESC [ ; p2 w
1B 5B 3B p2 77
27 91 59 p2 119
Set character pitch and select font
ESC [ p1 ; p2 x
1B 5B p1 3B p2 78 27 91 p1 59 p2 120 115
Select font ESC [ p1 x 1B 5B p1 78 1B 5B p1 78 116
Set print quality (NLQ, LQ)
ESC [ p1 SP X
1B 5B p1 20 58 27 91 p1 32 88 116

Bitmap graphics Epson LQ-2550 emulation
Decimal Remark See page
ESC * p1 p2 p3 data
1B 2A p1 p2 p3 data
27 42 p1 p2 p3 data
p1 p2 p3
Graphics mode Number of columns
ESC ? p1
1B 3F p1
27 63 p1
Graphics command Graphics mode
Decimal Remark See page
Control characters between X’ 80 and X’ 9F
Printing characters between X’ 80 and X’ 9F
Reset MSB to zero
Set MSB to one
ESC # 1B 23 27 35 122
DC1 11 17 123

Miscellaneous commands Epson LQ-2550 emulation
Decimal Remark See page
CAN 18 24 123
DEL 7F 127 123
Audible signal BEL 07 07 124
NUL function NUL 00 00 124
Additional commands:
$$ 24 24 36 36
ESC [ p1 ; p2 SP r
1B 5B p1 3B p2 20 72 27 91 p1 59 p2 32 114
Set barcode ESC [ ; p2; p3 ; p4 ; p5 ; p6 SP z
1B 5B 3B p2 3B p3 3B p4 3B p5 3B p6 20 7A
27 91 59 p2 59 p3 59 p4 59 p5 59 p6 32 122
27 91 63 48 104
27 91 63 48 108

Miscellaneous commands Epson LQ-2550 emulation
Dezimal Bemerkung Beschrei- bung Seite
ESC ( c p1 p2 p3 p4 p5
1B 28 63 p1 p2 p3 p4 p5
27 40 99 p1 p2 p3 p4 p5
Set page length in defi- ned units
ESC ( C p1 p2 p3
1B 28 43 p1 p2 p3
27 40 67 p1 p2 p3
Set absolute vertical print position
ESC ( V p1 p2 p3
1B 28 56 p1 p2 p3
27 40 86 p1 p2 p3
Relative verti- kale Druckpo- sition festlegen
ESC ( v p1 p2 p3
1B 28 76 p1 p2 p3
27 40 118 p1 p2 p3
Select font by pitch and point.
ESC X p1 p2 p3
1B 58 p1 p2 p3
27 88 p1 p2 p3
Set unit ESC ( U p1 p2
1B 28 55 p1 p2
27 40 85 p1 p2
Set horizontal Motion index(HMI)
ESC c p1 p2
1B 63 p1 p2 27 99 p1 p2 page 130
ESC ( t p1 p2 p3 p4
1B 28 74 p1 p2 p3 p4
27 40 116 p1 p2 p3 p4
ESC t p1 1B 74 p1 27 116 p1 page 131
Print data as characters
ESC ( ^ p1 p2 Daten
1B 28 5E p1 p2
27 40 94 p1, p2
ESC ( G p1 p2
1B 28 47 p1 p2
27 40 71 p1, p2
ESC . p1 p2 p3 p4 p5 p6
1B 2E p1 p2 p3 p4p5 p6
27 46 p1 p2 p3 p4p5 p6

0 1 2 3 4 5 6 7 8 9 A B C D E F
0 Ø SP 0 @ P ‘ p Ç É á ░ ਈ α ≡
1 J ! 1 A Q a q ü æ í ▒ ০ ß ±
2 l ¤ " 2 B R b r é Æ ó ▓ Â ਅ Γ ≥
3 ♥ !! # 3 C S c s â ô ú Ã π ≤
4 ♦ ¶ $ 4 D T d t ä ö ñ ড়ৄ৾ ∑ ⌠
5 p § % 5 E U e u à ò Ñ Å ৸ σ ⌡
6 ♠ _ & 6 F V f v å û ª Æ ৹ µ ÷
7 • ¤ ’ 7 G W g w ç ù º ৼ Ç × τ ≈
8 n ( 8 H X h x ê ÿ ¿ ৻ È Ø Φ ˚
9 ) 9 I Y i y ë Ö ⌐ ਃ ৺ Θ •
B F + ; K [ k { ï ¢ ½ ৽ ਆ █ δ √
C C ’ < L \ l | î £ ¼ ¼ ▄ ∞ ⁿ
D £ - = M ] m } ì ¥ ¡ ½ ৶ ▌ ø ²
E . > N ^ n ~ Ä Pt « ¾ Î ▐ ε ■
F - / ? O _ o Å ƒ » ৎ ਇ ▀ ∩ SP

IBM set 1 Character set tables
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 NUL SP 0 @ P ‘ p NUL á ░ ਈ α ≡
1 DC1 ! 1 A Q a q DC1 í ▒ ০ ß ±
2 DC2 " 2 B R b r DC2 ó ▓ Â ਅ Γ ≥
3 DC3 # 3 C S c s DC3 ú Ã π ≤
4 DC4 $ 4 D T d t DC4 ñ ড়ৄ৾ ∑ ⌠
5 % 5 E U e u Ñ Å ৸ σ ⌡
6 & 6 F V f v ª Æ ৹ µ ÷
7 BEL ’ 7 G W g w BEL º ৼ Ç × τ ≈
8 BS CAN ( 8 H X h x BS CAN ¿ ৻ È Ø Φ ˚
9 HT ) 9 I Y i y HT ⌐ ਃ ৺ Θ •
B VT ESC + ; K [ k { VT ESC ½ ৽ ਆ █ δ √
C FF ' < L \ l | FF ¼ ¼ ▄ ∞ ⁿ
D CR - = M ] m } CR ¡ ½ ৶ ▌ ø ²
E SO . > N ^ n ~ SO « ¾ Î ▐ ε ■
F SI / ? O _ o SI » ৎ ਇ ▀ ∩ SP

IBM set 1 Character set tables
23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E
Character Code (Hex)

IBM set 2 Character set tables
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 NUL SP 0 @ P ‘ p Ç É á ░ ਈ α ≡
1 DC1 ! 1 A Q a q ü æ í ▒ ০ ß ±
2 DC2 " 2 B R b r é Æ ó ▓ Â ਅ Γ ≥
3 ♥ DC3 # 3 C S c s â ô ú Ã π ≤
4 ♦ DC4 $ 4 D T d t ä ö ñ ড়ৄ৾ ∑ ⌠
5 p § % 5 E U e u à ò Ñ Å ৸ σ ⌡
6 ♠ & 6 F V f v å û ª Æ ৹ µ ÷
7 BEL ’ 7 G W g w ç ù º ৼ Ç × τ ≈
8 BS CAN ( 8 H X h x ê ÿ ¿ ৻ È Ø Φ ˚
9 HT ) 9 I Y i y ë Ö ⌐ ਃ ৺ Θ •
B VT ESC + ; K [ k { ï ¢ ½ ৽ ਆ █ δ √
C FF ’ < L \ l | î £ ¼ ¼ ▄ ∞ ⁿ
D CR - = M ] m } ì ¥ ¡ ½ ৶ ▌ ø ²
E SO . > N ^ n ~ Ä Pt « ¾ Î ▐ ε ■
F SI / ? O _ o Å ƒ » ৎ ਇ ▀ ∩ SP

IBM set 2 Character set tables
Character Set Code (Hex)
23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E 9B 9D

IBM code pages Character set tables
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 Ø SP 0 @ P ‘ p Ç É á ░ ਈ α ≡
1 J ! 1 A Q a q ü æ í ▒ ০ ß ±
2 l ¤ " 2 B R b r é Æ ó ▓ Â ਅ Γ ≥
3 ♥ !! # 3 C S c s â ô ú Ã π ≤
4 ♦ ¶ $ 4 D T d t ä ö ñ ড়ৄ৾ ∑ ⌠
5 p § % 5 E U e u à ò Ñ Å ৸ σ ⌡
6 ♠ _ & 6 F V f v å û ª Æ ৹ µ ÷
7 • ¤ ’ 7 G W g w ç ù º ৼ Ç × τ ≈
8 n ( 8 H X h x ê ÿ ¿ ৻ È Ø Φ ˚
9 ) 9 I Y i y ë Ö ⌐ ਃ ৺ Θ •
B F + ; K [ k { ï ¢ ½ ৽ ਆ █ δ √
C C ' < L \ l | î £ ¼ ¼ ▄ ∞ ⁿ
D £ - = M ] m } ì ¥ ¡ ½ ৶ ▌ ø ²
E . > N ^ n ~ Ä Pt « ¾ Î ▐ ε ■
F - / ? O _ o Å ƒ » ৎ ਇ ▀ ∩ SP
¡ · ¡ · ¡ ¬

IBM code pages Character set tables
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 Ø SP 0 @ P ‘ p Ç É á ░ ð Ó -
1 J ! 1 A Q a q ü æ í ▒ ০ Ð ß ±
2 l ¤ " 2 B R b r é Æ ó ▓ Â Ê Ô =
3 ♥ !! # 3 C S c s â ô ú Ã Ë Ò ¾
4 ♦ ¶ $ 4 D T d t ä ö ñ ড়ৄ È õ ¶
5 p § % 5 E U e u à ò Ñ Á Å ï Õ §
6 ♠ _ & 6 F V f v å û ª Â ã Ï µ ÷
7 • ¤ ’ 7 G W g w ç ù º À Ã Î þ ¸
8 n ( 8 H X h x ê ÿ ¿ © È Ï Þ
9 ) 9 I Y i y ë Ö ® ਃ ৺ Ú ¨
B F + ; K [ k { ï ø ½ ৽ ਆ █ Ù ¹
C C ' < L \ l | î £ ¼ ¼ ▄ ý ³
D £ - = M ] m } ì ∅ ¡ ¢ ৶ | Ý ²
E . > N ^ n ~ Ä x « ¥ Î ì ¯ ■
F - / ? O _ o Å ƒ » ৎ ¤ ▀ ' SP

IBM code pages Character set tables
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 Ø SP 0 @ P ‘ p Ç É á ░ ð Ó -
1 J ! 1 A Q a q ü æ í ▒ ০ Ð ß ±
2 l ¤ " 2 B R b r é Æ ó ▓ Â Ê Ô =
3 ♥ !! # 3 C S c s â ô ú Ã Ë Ò ¾
4 ♦ ¶ $ 4 D T d t ä ö ñ ড়ৄ È õ ¶
5 p § % 5 E U e u à ò Ñ Á Å Õ §
6 ♠ _ & 6 F V f v å û ª Â ã Ï µ ÷
7 • ¤ ’ 7 G W g w ç ù º À Ã Î þ ¸
8 n ( 8 H X h x ê ÿ ¿ © È Ï Þ
9 ) 9 I Y i y ë Ö ® ਃ ৺ Ú ¨
B F + ; K [ k { ï ø ½ ৽ ਆ █ Ù ¹
C C ' < L \ l | î £ ¼ ¼ ▄ ý ³
D £ - = M ] m } ì ∅ ¡ ¢ ৶ Ý ²
E . > N ^ n ~ Ä x « ¥ Î ì ¯ ■
F - / ? O _ o Å ƒ » ৎ ¤ ▀ ' SP

IBM code pages Character set tables
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 Ø SP 0 @ P ‘ p Ç É á ░ ਈ α ≡
1 J ! 1 A Q a q ü À í ▒ ০ ß ±
2 l ¤ " 2 B R b r é È ó ▓ Â ਅ Γ ≥
3 ♥ !! # 3 C S c s â ô ú Ã π ≤
4 ♦ ¶ $ 4 D T d t ä ö ñ ড়ৄ৾ ∑ ⌠
5 p § % 5 E U e u à ò Ñ Å ৸ σ ⌡
6 ♠ _ & 6 F V f v Á Ú ª Æ ৹ µ ÷
7 • ¤ ’ 7 G W g w ç ù º ৼ Ç × τ ≈
8 n ( 8 H X h x ê Ì ¿ ৻ È Ø Φ ˚
9 ) 9 I Y i y Ê Õ Ò ਃ ৺ Θ •
B F + ; K [ k { ï ¢ ½ ৽ ਆ █ δ √
C C ' < L \ l | î £ ¼ ¼ ▄ ∞ ⁿ
D £ - = M ] m } ì Ù ¡ ½ ৶ ▌ ø ²
E . > N ^ n ~ Ä Pt « ¾ Î ▐ ε ■
F - / ? O _ o Å ó » ৎ ਇ ▀ ∩ SP

IBM code pages Character set tables
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 Ø SP 0 @ P ‘ p Ç É ░ ਈ α ≡
1 J ! 1 A Q a q ü È ’ ▒ ০ ß ±
2 l ¤ " 2 B R b r é Ê ó ▓ Â ਅ Γ ≥
3 ♥ !! # 3 C S c s â ô ú Ã π ≤
4 ♦ ¶ $ 4 D T d t Â Ë ¨ ড়ৄ৾ ∑ ⌠
5 p § % 5 E U e u à Ï ¸ Å ৸ σ ⌡
6 ♠ _ & 6 F V f v ¶ û ³ Æ ৹ µ ÷
7 • ¤ ’ 7 G W g w ç ù ¯ ৼ Ç × τ ≈
8 n ( 8 H X h x ê ¤ Î ৻ È Ø Φ ˚
9 ) 9 I Y i y ë Ô ⌐ ਃ ৺ Θ •
B F + ; K [ k { ï ¢ ½ ৽ ਆ █ δ √
C C ´ < L \ l | î £ ¼ ¼ ▄ ∞ ⁿ
D £ - = M ] m } = Ù ¾ ½ ৶ ▌ ø ²
E . > N ^ n ~ À Û « ¾ Î ▐ ε ■
F - / ? O _ o § ƒ » ৎ ਇ ▀ ∩ SP

IBM code pages Character set tables
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 Ø SP 0 @ P ` p Ç É á ░ ਈ α ≡
1 J ! 1 A Q a q ü æ í ▒ ০ ß ±
2 l ¤ " 2 B R b r é Æ ó ▓ Â ਅ Γ ≥
3 ♥ !! # 3 C S c s â ô ú Ã π ≤
4 ♦ ¶ $ 4 D T d t ä ö ñ ড়ৄ৾ ∑ ⌠
5 p § % 5 E U e u à ò Ñ Å ৸ σ ⌡
6 ♠ _ & 6 F V f v å û ª Æ ৹ µ ÷
7 • ¤ ’ 7 G W g w ç ù º ৼ Ç × τ ≈
8 n ( 8 H X h x ê ÿ ¿ ৻ È Ø Φ ˚
9 ) 9 I Y i y ë Ö ⌐ ਃ ৺ Θ •
B F + ; K [ k { ï ø ½ ৽ ਆ █ δ √
C C ' < L \ l | î £ ¼ ¼ ▄ ∞ ⁿ
D £ - = M ] m } ì ∅ ¡ ½ ৶ ▌ ø ²
E . > N ^ n ~ Ä Pt « ¾ Î ▐ ε ■
F - / ? O _ o Å ƒ ¤ ৎ ਇ ▀ ∩ SP

0 1 2 3 4 5 6 7 8 9 A B C D E F
0 SP 0 @ P ‘ p Ç É á ░ ਈ α ≡
1 ! 1 A Q a q ü æ í ▒ ০ ß ±
2 " 2 B R b r é Æ ó ▓ Â ਅ Γ ≥
3 # 3 C S c s â ô ú Ã π ≤
4 $ 4 D T d t ä ö ñ ড়ৄ৾ ∑ ⌠
5 § % 5 E U e u à ò Ñ Å ৸ σ ⌡
6 & 6 F V f v å û ª Æ ৹ µ ÷
7 ’ 7 G W g w ç ù º ৼ Ç × τ ≈
8 ( 8 H X h x ê ÿ ¿ ৻ È Ø Φ ˚
B + ; K [ k { ï ¢ ½ ৽ ਆ █ δ √
C ' < L \ l | î £ ¼ ¼ ▄ ∞ ⁿ
D - = M ] m } ì ¥ ¡ ½ ৶ ▌ ø ²
E . > N ^ n ~ Ä Pt « ¾ Î ▐ ε ■
F / ? O _ o Å ƒ » ৎ ਇ ▀ ∩ SP
Character set tables

Epson EXT GCT Character set tables
23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E
Character Code (Hex)

0 1 2 3 4 5 6 7 8 9 A B C D E F
0 SP 0 @ P ‘ p SP 0 @ P ‘ p
1 ! 1 A Q a q ! 1 A Q a q
2 " 2 B R b r " 2 B R b r
3 # 3 C S c s # 3 C S c s
4 $ 4 D T d t $ 4 D T d t
5 % 5 E U e u % 5 E U e u
6 & 6 F V f v & 6 F V f v
7 ’ 7 G W g w ’ 7 G W g w
8 ( 8 H X h x ( 8 H X h x
B + ; K [ k { + ; K [ k {
C ’ < L \ l | ' < L \ l |
D - = M ] m } - = M ] m }
E . > N ^ n ~ . > N ^ n ~
F / ? O _ o / ? O _ o
Character set tables

Epson ITALIC Character set tables
23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E
Character Code (Hex)

Epson ITALIC Character set tables
A3 A4 C0 DB DC DD DE E0 FB FC FD FE
Character Code (Hex)

OCR-A Character set tables
0 1 2 3 4 5 6 7
0 NUL DLE SP 0 @ P p
1 SOH DC1 ! 1 A Q a q
2 STX DC2 " 2 B R b r
3 ETX DC3 # 3 C S c s
4 EOT DC4 $ 4 D T d t
5 ENQ NAK % 5 E U e u
6 ACK SYN & 6 F V f v
7 BEL ETB ’ 7 G W g w
8 BS CAN ( 8 H X h x
9 HT EM ) 9 I Y i y
B VT ESC + ; K [ k {
C FF FS ¬ < L \ l |
D CR GR - = M ] m }
E SO RS . > N ^ n °
F SI US / ? O o █

ISO 8859-1 Character set tables

0 1 2 3 4 5 6 7 8 9 A B C D E F
1 ! 1 A Q a q ¡ ± Á Ñ á ñ
2 " 2 B R b r ¢ ² Â Ò â ò
3 # 3 C S c s £ ³ Ã Ó ã ó
4 $ 4 D T d t Z Ä Ô ä ô
5 % 5 E U e u ¥ µ Å Õ å õ
6 ε 6 F V f v Š ¶ Æ Ö æ ö
7 ’ 7 G W g w § · Ç × ç ÷
8 ( 8 H X h x š z È Ø è ø
B + ; K [ k { « » Ë Û ë û
C , < L \ l | ¬ Œ Ì Ü ì ü
D - = M ] m } SHY œ Í Ý í ý
E . > N ^ n ~ ® Ÿ Î Þ î þ
F / ? O _ o ¯ ¿ Ï ß ï ÿ

0 1 2 3 4 5 6 7
0 NUL DLE SP 0 @ P ‘ p 0
1 SOH DC1 ! 1 A Q a q 1
2 STX DC2 " 2 B R b r 2
3 ETX DC3 # 3 C S c s 3
4 EOT DC4 $ 4 D T d t 4
5 ENQ NAK % 5 E U e u 5
6 ACK SYN & 6 F V f V 6
7 BEL ETB ’ 7 G W g w 7
8 BS CAN ( 8 H X h x 8
9 HT EM ) 9 I Y i y 9
B VT ESC + ; K [ k { B
C FF IS4 , < L \ l | C
D CR IS3 - = M ] m } D
E SO IS2 . > N ^ n ? E
F SI IS1 / ? O _ o DEL F
0 1 2 3 4 5 6 7
The letter A has the code 41 (ISO 7-bit code).
Example

0 1 2 3 4 5 6 7
0 NUL DLE SP 0 $ P ‘ p 0
1 SOH DC1 ! 1 A Q a q 1
2 STX DC2 " 2 B R b r 2
3 ETX DC3 # 3 C S c s 3
4 EOT DC4 $ 4 D T d t 4
5 ENQ NAK % 5 E U e u 5
6 ACK SYN & 6 F V f V 6
7 BEL ETB ’ 7 G W g w 7
8 BS CAN ( 8 H X h x 8
9 HT EM ) 9 I Y i y 9
B VT ESC + ; K Ä k ä B
C FF IS4 , < L Ö l ö C
D CR IS3 - = M Ü m ü D
E SO IS2 . > N ^ n ß E
F SI IS1 / ? O _ o DEL F
0 1 2 3 4 5 6 7
The letter A has the code 41 (ISO 7-bit code).
Code tables · Example

NUL Filler SOH Start of header STX Start of text ETX End of text EOT End of transmission ENQ Enquiry ACK Positive acknowledgment BEL Audible alarm BS Backspace HT Horizontal tabulation LF Line feed VT Vertical tabulation FF Form feed CR Carriage return SO Shift out SI Shift in SP Space DLE Data link escape DC1 Device control character 1 DC2 Device control character 2 DC3 Device control character 3 DC4 Device control character 4 NAK Negative acknowledgment SYN Synchronize ETB End of transmission block CAN Cancel EM End of message (end mark) SUB Substitute ESC Escape IS4 Information separator 4 IS3 Information separator 3 IS2 Information separator 2 IS1 Information separator 1 DEL Delete
Code tables

0 1 2 3 4 5 6 7 8 9 A B C D E F
0 00 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 0
1 01 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 1
2 02 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 2
3 03 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 3
4 04 20 36 52 68 84 100 116 132 148 164 180 196 212 228 244 4
5 05 21 37 53 69 85 101 117 133 149 165 181 197 213 229 245 5
6 06 22 38 54 70 86 102 118 134 150 166 182 198 214 230 246 6
7 07 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 7
8 08 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 8
9 09 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 9
A 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 A
B 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 B
C 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252 C
D 13 29 45 61 77 93 109 125 141 157 173 189 205 221 237 253 D
E 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254 E
F 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255 F
0 1 2 3 4 5 6 7 8 9 A B C D E F
Code tables

The following describes the two interfaces provided on the 90152-12 interface module.
General data:

V.24/RS-232 C Interfaces
Designation Explanation Direction from/to printer Pin EIA DIN CCITT
1 2 3 4 5 6 7 20
E1 D1 D2 S2 M2 M1 E2 S1.2
101 103 104 105 106 107 102 108.2
PG: Protective Ground TXD: Transmit Data RXD: Receive Data RTS: Request to Send CTS: Clear to Send DSR: Data Set Ready SG: Signal Ground DTR: Data Terminal Ready
Pin assignment

V.24/RS-232 C Interfaces
The following signal lines are used:
Designation Explanation Direction from/to printer Pin EIA DIN CCITT
1 3 7 20
E1 D2 E2 S1.2
101 104 102 108.2
The printer sets the DTR signal to ON (positive level) as soon as it is ready to receive data after power-on.
The printer sets the DTR signal to OFF when less than 256 bytes are free in the buffer or when the printer enters the Stop mode. Further data is stored until the printer buffer is completely full; any additional data is lost.
The DTR signal returns to ON when the printer exits from the Stop mode and at least 512 bytes are free in the printer buffer.
DTR protocol

V.24/RS-232 C Interfaces
The following signal lines are used:
Designation Explanation Direction from/to printer Pin EIA DIN CCITT
1 2 3 5 6 7 20
E1 D1 D2 M2 M1 E2 S1.2
101 103 104 106 107 102 108.2
PG: Protective Ground TXD: Transmit Data RXD: Receive Data CTS: Clear to Send DSR: Data Set Ready SG: Signal Ground DTR: Data Terminal Ready
After power-on, the DTR signal and the RTS signal are set to ON (positive level). When the host sets the DSR and CTS signals to ON, the printer sends an X-ON signal to the host. The printer is then ready to receive.
The data flow is controlled with the control characters DC1 (X-ON) and DC3 (X-OFF). The printer sends the control character DC1 to the host when it is ready to receive.
Ready to receive means:
– 512 bytes free in the printer buffer
The printer sends the control character DC3 to the output system 255 bytes before “Printer buffer full”. If further data is sent to the printer after the control character, it sends a second DC3 to the printer 128 bytes before buffer overflow. The control characters are sent in the sequence DC1, DC3, DC1, DC3 etc. The only exception in the sequence is the second DC3 before buffer overflow.
X-ON/X-OFF protocol · – Power-on

Explanation Direction from/to printer
1 STROBE When the signal is set to logical zero, the data byte DATA 1 - DATA 8 is stored in the printer buffer.
2 3 4 5 6 7 8 9
DATA 1 DATA 2 DATA 3 DATA 4 DATA 5 DATA 6 DATA 7 DATA 8
Data line LSB Data line Data line Data line Data line Data line Data line Data line MSB
x
10 ACKN The printer indicates that it has received a character or a control character and that it is ready to receive another character by setting this signal to zero.
11 BUSY The printer cannot accept further data when this signal is 1.
12 PE Is set to 1 under the following conditions: – No paper – Paper out – Paper jam
13 SELECT This signal is always one. It indicates that the printer is always online and ready.
31 INIT When this signal goes to zero, the ACKN signal of the printer is set to one.
32 FAULT This signal is always one. It only goes to zero when the printer is turned off.
Centronics Interfaces · Pin assignment · Pin Signal name

After power-on, the PE signal goes to zero. The SELECT signal and the FAULT signal become one.
The host sets the data lines (DATA 1 - DATA 8) according to the character to be transferred.
After a timeout of 0.5 microseconds the host sends a STROBE pulse with a length of at least 0.5 microseconds. The character is stored in the printer buffer and the printer sends a BUSY signal to the host. When the data byte is stored completely in the printer buffer, the printer sends a BUSY and an ACKN signal to the host.
The ACKN signal informs the host that a data byte has been received and that the printer is ready to receive another character.
When the printer buffer is full, the BUSY signal is not reset to stop the data stream from the host. The BUSY signal is reset only when at least 256 bytes are free in the printer buffer.
When the Stop button is pressed, the BUSY signal remains one and the ACKN signal is not sent.
If at least 256 bytes are free in the printer buffer, pressing the Start button causes the BUSY signal to be reset and an ACKN signal to be sent to the host.
Centronics Interfaces · Protocol description · Timing


Centronics Interfaces

Use with two interfaces Interfaces
The “Both interfaces active” mode can be selected in the menu (see [2]).
In this mode the printer buffer is subdivided into two parts with 256 bytes each.
After power-on, both interfaces are ready to receive data.
If a byte is received first at the serial interface, the parallel interface is blocked by the BUSY signal. The serial interface is active and uses the set protocol.
If a byte is received first at the parallel interface, the serial interface is blocked by the DTR signal (DTR = OFF) or, depending on the protocol, by transmission of XOFF.
A maximum of 256 bytes can be received at the serial interface even though the parallel interface is active. All further bytes are lost except for the byte received last.
If the printer buffer of the serial interface is completely free and if no further data is received within 60 seconds, both interfaces are again available.
If the printer buffer of the parallel interface is completely free and if no further data is received within 60 seconds, the data of the printer buffer of the serial interface is processed and the serial interface is activated.

[1] 9015 Printer ECMA Emulation Programmer Reference Guide
Contents Description of the control characters of the ECMA emulation. Information on the operation of the printer with BS2000, SINIX and at workstations.
[2] 9015 Printer Operating Manual
Target group Users putting the printer in service
Contents Putting in service, error information, upkeep
Applications Placing in service
[3] 9016 Printer Operating Manual
Target group Users putting the printer in service
Contents Putting in service, error information, upkeep
Applications Placing in service
Target group Programmers

[4] 9014 Printer ECMA-Emulation Programmer Reference Guide
Contents Description of the control characters of the ECMA emulation. Information on the operation of the printer with BS2000, SINIX and at workstations.Zielgruppe Programmierer
The manuals listed above can be ordered from your local Siemens branch.
Please apply to your local office for ordering the manuals.
Related publications · Target group Programmers

Environmentally friendly product design and development
This product has been designed in accordance with the Siemens standard “environmentally friendly product design and development”.
This means that the designers have taken into account decisive criteria such as durability, selection of materials and coding, emissions, packaging, the ease with which the product can be dismantled and the extent to which it can be recycled.
This saves resources and thus reduces the harm done to the environment.
Devices that do not have to be switched on permanently should not be switched on until they are used and should be switched off during long breaks and on completion of work.
Please dispose of printer consumables and batteries in accordance with local government regulations.
Please avoid sticking your own labels on plastic housing parts wherever possible, since this makes it difficult to recycle them.
Take-back, recycling and disposal
For details on take-back and reuse of devices and consumables within Europe, contact your Siemens branch office/subsidiary or our recycling center in Paderborn:
Tel. +49 5251 8180-10 Fax. +49 5251 8180-15
Further information on environmental protection
The Siemens AG representative for environmental protection will be pleased to answer any further questions you may have concerning environmental protection.
Siemens AG Environmental Protection Werner von Siemens Straße 6 86159 Augsburg
Tel. +49 821 599-2999 Fax. +49 821 599-3440


condensed mode (Epson LQ-2550) 108
transport mechanism (IBM Proprinter) 17
D define user-defined characters 102 delete character
G graphical change of sizes 47 graphics mode
Epson LQ-2550 123 IBM Proprinter 63 double height mode
double dot-density (IBM Proprinter) 55 double dot-density and double speed (IBM
Proprinter) 56 quadruple density (IBM Proprinter) 57 reassign (Epson LQ-2550) 120 select (Epson LQ-2550) 117 select (expanded) (IBM Proprinter) 58 select (IBM Proprinter) 52 single dot-density (IBM Proprinter) 55 single-dot density (IBM Proprinter) 55
reset (Epson LQ-2550) 109 set (Epson LQ-2550) 109 double strike
Epson LQ-2550 106 IBM Proprinter 40 DTR protocol 214
E eject sheet 74 Epson LQ-2550 emulation 70 ESC / P2-Befehle 126 expanded mode
H horizontal tab stops
Epson LQ-2550 94 horizontal tabulation
for one line (Epson LQ-2550) 108 for one line (IBM Proprinter) 42 reset (Epson LQ-2550) 109 reset (IBM Proprinter) 42, 43 set (Epson LQ-2550) 109 set (IBM Proprinter) 42
absolute (Epson LQ-2550) 92 cause (Epson LQ-2550) 94 cause (IBM Proprinter) 37 IBM Proprinter 36 relative (Epson LQ-2550) 93 relative (IBM Proprinter) 35
F first print line (IBM Proprinter) 24 font 13, 98 select (Epson LQ-2550) 98 font design
I IBM Proprinter emulation 15 initial condition
Epson LQ-2550 71 IBM Proprinter 16 interface 212 Centronics 216 module 10, 11 V.24/RS-232 C 212 ISO 7-bit code
Epson LQ-2550 97 IBM Proprinter 39 forms
layout (Epson LQ-2550) 79 layout (IBM Proprinter) 22 length in inches (Epson LQ-2550) 80 length in inches (IBM Proprinter) 23 length in lines (Epson LQ-2550) 79 length in lines (IBM Proprinter) 22 transport (Epson LQ-2550) 82 transport (IBM Proprinter) 26 transport mechanism (Epson LQ-2550) 73
international version 208 national version 209 italics (Epson LQ-2550) 106
Index

Epson LQ-2550 124 IBM Proprinter 64
Epson LQ-2550 81 IBM Proprinter 24, 25 line feed
automatic (IBM Proprinter) 62 Epson LQ-2550 84 IBM Proprinter 28 reverse (IBM Proprinter) 29 line marking mode (Epson LQ-2550) 111 line spacing
Epson LQ-2550 123 IBM Proprinter 63 online
Epson LQ-2550 123 IBM Proprinter 63 overscore (IBM Proprinter) 45
1/6 inch (Epson LQ-2550) 82 1/8 inch (Epson LQ-2550) 82 1/8 inch (IBM Proprinter) 26 7/72 inch (IBM Proprinter) 26 n/180 inch (Epson LQ-2550) 83 n/180 inch (IBM Proprinter AGM mode) 65 n/180 inch (IBM Proprinter) 27 n/216 inch (IBM Proprinter AGM mode) 65 n/216 inch (IBM Proprinter) 27 n/360 inch (Epson LQ-2550) 84 n/60 inch (Epson LQ-2550) 83 n/60 inch (IBM Proprinter AGM mode) 65 n/72 inch (IBM Proprinter) 27 line spacing unit (IBM Proprinter) 28 load line spacing 31
select source 17, 74 perforation
Epson LQ-2550 80 IBM Proprinter 23 reset skip mode 81 perforation area
Epson LQ-2550 80 IBM Proprinter 23 print carriage movements
Epson LQ-2550 89 IBM Proprinter 32 print direction
bidirectional (Epson LQ-2550) 95 bidirectional (IBM Proprinter) 37 unidirectional (Epson LQ-2550) 95 unidirectional (IBM Proprinter) 37 unidirectional for one line (Epson LQ-
M macro selection 64, 125 margin
Epson LQ-2550 81 IBM Proprinter 24, 25 micro-column
2550) 95 print head to left margin (IBM Proprinter) 33 print modes combination (Epson LQ-2550) 110 print quality
IBM Proprinter 44 select (Epson LQ-2550) 105 set 51, 116 printer buffer 12 printer options 13 printing rate 12 proportional spacing
delete default (Epson LQ-2550) 122 set to one (Epson LQ-2550) 122 set to zero (Epson LQ-2550) 122
N national version (Epson LQ-2550) 99 NUL function
Epson LQ-2550 91 IBM Proprinter 34

Epson LQ-2550 107 IBM Proprinter 41
R relative horizontal positioning 38 relative horizontal tabulation
T technical data 12 text alignment
Epson LQ-2550 93 IBM Proprinter 35 relative vertical positioning 38 relative vertical tabulation
centered (Epson LQ-2550) 96 left-justified (Epson LQ-2550) 96 right-justified (Epson LQ-2550) 96 top of form
forward (Epson LQ-2550) 85 forward (IBM Proprinter AGM mode) 66 forward (IBM Proprinter) 29 reverse (Epson LQ-2550) 85 reset tab stop 31 reset tab stop (IBM Proprinter) 61 reset to initial condition (Epson LQ-2550) 72 right margin
Epson LQ-2550 79, 80 IBM Proprinter 22, 23, 24 transparent print data
one character (IBM Proprinter) 61 several characters (IBM Proprinter) 62
Epson LQ-2550 81 IBM Proprinter 25
Epson LQ-2550 110 IBM Proprinter 44
S select cut-off mode 17, 74 select font 49, 51, 115, 116 select number of copies 17, 74 set character pitch 49, 115 set code page 113 set graphic settings 46 set national version 48, 113 set user-defined character set (Epson LQ-
V vertical tab stops
Epson LQ-2550 86 IBM Proprinter 30 in channel (Epson LQ-2550) 87 vertical tabulation
cause (Epson LQ-2550) 88 cause (IBM Proprinter) 30 relative forward (Epson LQ-2550) 85 relative forward (IBM Proprinter AGM
mode) 66 relative forward (IBM Proprinter) 29 relative reverse (Epson LQ-2550) 85 vertical tabulation channel (Epson LQ-2550) 85
Epson LQ-2550 90 IBM Proprinter 33 spaced mode (Epson LQ-2550) 92 spacing
10 cpi (IBM Proprinter) 33 12 cpi (IBM Proprinter) 34 17.1 cpi (IBM Proprinter) 34 proportional (IBM Proprinter) 34 subscript
Epson LQ-2550 107 IBM Proprinter 41 superscript

Siemens AG User Documentation OEC XS QM 4 33094 Paderborn Germany

Comments on 9014, 9015, 9015 E, 9016 Printer
Epson and IBM Proprinter Emulation
!

Siemens AG Training Center, Consulting Service 81730 Munich Germany

The Siemens Training Center offers consulting for in-service training, courses and self-tuition media on almost all aspects of information technology, either on your premises or at a Training Center near you. Write to us for information and course programs.
Please send me information/course programs on the following topics
!
Eigenaren en ons team reageren doorgaans binnen een dag — en uw vraag helpt ook de volgende persoon.
Stel als eerste een vraag — andere eigenaren of ons team geven antwoord.