Go to the Previous PageGo to the Main ViewGo to the Next PageGo to a printer friendly version of this document
Chapter C Command Summary
(User's Guide for PM4410)
Epson FX Command Summary
Epson CommandASCIIHexadecimalDecimal
Printer Operation/Data Control
Configuration Group, Select
Select CFG1
P1 = 0: command valid
P1 = 1: command invalid
ESC DLE J P1
SOH
1B 10 4A P1 01
27 16 74 P1 1
Select CFG2
P1 = 0: command valid
P1 = 1: command invalid
ESC DLE J P1
STX
1B 10 4A P1 0227 16 74 P1 2
DeleteDEL7F128
Emulation, Mode Select
Epson FX
IBM Proprinter
OKI Microline Standard
ESC { @
ESC { NUL
ESC { !
1B 7B 40
1B 7B 00
1B 7B 21
27 123 64
27 123 0
27 123 33
MSB Control
Cancel MSB control
Set MSB equal to 0
Set MSB equal to 1
ESC #
ESC =
ESC >
1B 23
1B 3D
1B 3E
27 35
27 61
27 62
Paper-Out Sensor
Disable
Enable
ESC 8
ESC 9
1B 38
1B 39
27 56
27 57
Paper Path, Change to
Rear Path
P1 represents the number of bytes of data
ESC DLE I P1 01B 10 49 P1 3027 16 73 P1 48
Front Path
P1 represents the number of bytes of data
ESC DLE I P1 11B 10 49 P1 3127 16 73 P1 49
Print Direction
Unidirectional
Bidirectional
Unidirectional for one line
ESC U 1
ESC U 0
ESC <
1B 55 31
1B 55 30
1B 3C
27 85 49
27 85 48
27 60
Print Speed, Half
On
Off
ESC s 1
ESC s 0
1B 73 31
1B 73 30
27 115 49
27 115 48
Print Suppress
On
Off
DC3
DC1
13
11
19
17
Reset
Clear Print Buffer
Clear Buffer and Initialize Printer
ESC @
CAN
1B 40
18
27 64
24
Select Menu Item
See the end of this appendix for details on this command.
ESC DLE D Pno
Pa1 Pb1 Pa2 Pb2...Pan Pbn
1B 10 44 Pno
Pa1 Pb1 Pa2
Pb2...Pan Pbn
27 16 68 Pno Pa1
Pb1 Pa2
Pb2...Pan Pbn
Software I-PrimeESC }1B 7D27 125
Vertical Control
Form Feed, ExecuteFF0C12
Form Length
Set in inches, n = 0 or 128
Set in lines, n = 1 to 127
ESC C NUL n
ESC C n
1B 43 00 n
1B 43 n
27 67 0 n
27 67 n
Line Feed
n/144 inch, n = 0 to 255
n/216 inch, n = 0 to 255
Forward LF with CR
Reverse LF, n = 0 to 255
ESC % 5 n
ESC J n
LF
ESC j n
1B 25 35 n
1B 4A n
0A
1B 6A n
27 37 53 n
27 74 n
10
27 106 n
Line Spacing
n/72 inch increments
n = 0 to 85, 128 to 213
ESC A n1B 41 n27 65 n
n/144 inch increments
n = 1 to 255
ESC % 9 n1B 25 39 n27 37 57 n
n/216 inch increments
n = 0 to 255
ESC 3 n1B 33 n27 51 n
1/6-inchESC 21B 3227 50
1/8-inchESC 01B 3027 48
7/72-inchESC 11B 3127 49
Margins, Bottom (Auto Skip)
Cancel
Define, n = 0 to 127 lines
ESC O
ESC N n
1B 4F
1B 4E n
27 79
27 78 n
Vertical Tabs
Execute
VT0B11
Define tab stops
n = 1 to 255
k = 1 to 16
ESC B n1 n2...nk NUL1B 42 n1 n2...nk 0027 66 n1 n2...nk0
Define tab stop sin channels
m = 0 to 255
n = 0 to 7
ESC b n m1 m2...mk NUL1B 62 n m1 m2...mk0027 98 n m1 m2...mk0
Select channel
n = 0 to 7, 128 to 135
ESC / n1B 2F n27 47 n
Horizontal Control
BackspaceBS088
Carriage ReturnCR 0D13
Horizontal Tabs
Execute
HT099
Set, up to 32 tabs
x = 1 to 255
k = 1 to 32
ESC D x1 x2 x3...xk NUL1B 44 x1 x2 x3...xk 0027 68 x1 x2 x3...xk 0
Margins, Set by character columns
Set left margin

Pitch - Range for n
10 cpi - 1 to 134
12 cpi - 1 to 162
15 cpi - 1 to 202
17.1 cpi - 1 to 231
20 cpi - 1 to 255
ESC 1 n1B 6C n27 108 n
Set right margin

Pitch - Range for n
10 cpi - 2 to 136
12 cpi - 3 to 164
15 cpi - 3 to 204
17.1 cpi - 4 to 234
20 cpi - 4 to 255
ESC Q n1B 51 n27 81 n
Print Position
Define position by dot columns, indexed from present position.

Dot position = n1 + (n2x256)
n1 = 0 to 255
n2 = 0 to 255
ESC \ n1 n21B 5C n1 n227 92 n1 n2
Execute print position from current left margin

Dot position =
[n1 + (n2 x 256)]/60
n1 = 0 to 255
n2 = 0 to 255
ESC $ n1 n21B 24 n1 n227 36 n1 n2
Set print position

n = 0 to 255: # of bytes to follow

A1 = 0 to 255: even, print position absolute from left edge; odd, print position relative to current position

A2 = 0 to 255: even, toward right margin (forward); odd, toward left margin (reverse)

P1 P2 P3 P4 = 0000 to 9999 ASCII
ESC DLE @ n
A1 A2 P1 P2 P3 P4
1B 10 40 n A1 A2 P1 P2 P3 P427 16 64 n A1 A2 P1 P2 P3 P4
Print Style/Print Size Control
Character Pitch
Select 10 cpi
Select 12 cpi
Condensed (17, 20 cpi)
Select
Cancel
Select 15 CPI
ESC P
ESC M

ESC SI or SI
DC2
ESC g
1B 50
1B 4D

1B 0F or 0F
12
1B 67
27 80
27 77

27 15 or 15
18
27 103
Composite Command, Select Print Features and Pitch
n = 0 to 255

ESC ! n1B 21 n27 33 n
Double Height Printing
On
Off
ESC w 1
ESC w 0
1B 77 31
1B 77 30
27 119 49
27 119 48
Double Width (Expanded)
Printing
On
Off
One line only
On
Off
ESC W 1
ESC W 0


ESC SO, SO
DC 4
1B 57 31
1B 57 30


1B 0E, 0E
14
27 87 49
27 87 48


27 14, 14
20
Print Quality
HSD
NLQ
Utility
ESC ( 0
ESC x 1
ESC x 0
1B 28 30
1B 78 31
1B 78 30
27 40 48
27 120 49
27 120 48
Proportional Width
On
Off
ESC p 1
ESC p 0
1B 70 31
1B 70 30
27 112 49
27 112 48
Select font by pitch and point (for Option ROM)
Pn = 0: fixed spacing
Pn = 1: proportional spacing
Lp, Hp = 00H to FFH
Np = Lp + (Hp x 256)
Np > 43
Point Size = Np/2
ESC X Pn Lp Hp1B 10 46 Pn Lp Hp27 16 70 Pn Lp Hp
Typestyles
Courier
Gothic
OCR-B
ESC k 0
ESC k 1
ESC k 5
1B 6B 30
1B 6B 31
1B 6B 35
27 107 48
27 107 49
27 107 53
Character Control
Emphasized Mode
Reset
Set
ESC F
ESC E
1B 46
1B 45
27 70
27 69
Enhanced (Double Strike)
Reset
Set
ESC H
ESC G
1B 48
1B 47
27 72
27 71
Inter-Character Clearance, Set by dot columns
n = 0 to 255
ESC SP n1B 20 n27 32 n
Justification
Left
Center
Right
Full
ESC a 0
ESC a 1
ESC a 2
ESC a 3
1B 61 30
1B 61 31
1B 61 32
1B 61 33
27 97 48
27 97 49
27 97 50
27 97 51
Superscript/Subscript
Cancel
Subscript
Superscript
ESC T
ESC S 1
ESC S 0
1B 54
1B 53 31
1B 53 30
27 84
27 83 49
27 83 48
Underline
On
Off
ESC - 1
ESC - 0
1B 2D 31
1B 2D 30
27 45 49
27 45 48
Character Set
Assign character table
Ln, Hn = 0 to 255
Pn1, Pn2, Pn3 = 0 to 255
ESC ( t Hn Pn1 Pn2 Pn31B 28 74 Hn Pn1 Pn2 Pn327 40 116 Hn Pn1 Pn2 Pn3
Control Codes, Printable
Reset
Set
ESC 7
ESC 6
1B 37
1B 36
27 55
27 54
Control Codes or Printable
Characters - on/off
Interprets codes as printable characters
Interprets codes are control codes
ESC | 1

ESC | 0
1B 49 31

1B 49 30
27 73 49

27 73 48
International Language Char Sets
American
French
German
British
Danish I
Swedish
Italian
Spanish I
Japanese
Norwegian
Danish II
Spanish II
Latin American
French Canadian
Dutch
Publisher
ESC R NUL
ESC R SOH
ESC R STX
ESC R ETX
ESC R EOT
ESC R ENQ
ESC R ACK
ESC R BEL
ESC R BS
ESC R HT
ESC R LF
ESC R VT
ESC R FF
ESC R CR
ESC R SO
ESC R @
1B 52 00
1B 52 01
1B 52 02
1B 52 03
1B 52 04
1B 52 05
1B 52 06
1B 52 07
1B 52 08
1B 52 09
1B 52 0A
1B 52 0B
1B 52 0C
1B 52 0D
1B 52 0E
1B 52 40
27 82 0
27 82 1
27 82 2
27 82 3
27 82 4
27 82 5
27 82 6
27 82 7
27 82 8
27 82 9
27 82 10
27 82 11
27 82 12
27 82 13
27 82 14
27 82 64
Code Page
Multilingual 850
Norway 865
Portugal 860
Canada French
BRASCII
Abicomp
ISO 8859/15
IBM Multilingual 858
ESC R SUB
ESC R ESC
ESC R FS
ESC R +
ESC R P
ESC R Q
ESC R R
ESC R S
1B 52 1A
1B 52 1B
1B 52 1C
1B 52 2B
1B 52 50
1B 52 51
1B 52 52
1B 52 53
27 82 26
27 82 27
27 82 28
27 82 43
27 82 80
27 82 81
27 82 82
27 82 83
Italic Character Set
Cancel
Select
ESC 5
ESC 4
1B 35
1B 34
27 53
27 52
Slant (Italics)/Graphics Char. Table
Slant (italic)
Epson Graphics
ESC t 0
ESC t 1
1B 74 30
1B 74 31
27 116 48
27 116 49
DLL Character Set
Copy Pre-defined ROM data to RAM
NLQ Courier

NLQ Gothic

NLQ OCR-B
ESC : NUL NUL NUL
ESC: NUL SOH NUL
ESC: NUL ENQ NUL
1B 3A 00 00 00

1B 3A 00 01 00

1B 3A 00 05 00
27 58 0 0 0

27 58 0 1 0

27 58 0 5 0
Select DLL Font
DLL character set
Pre-defined character set
ESC % 1
ESC % 0
1B 25 31
1B 25 30
27 37 49
27 37 48
Graphics Control
Bit Image Graphics
Double Horizontal Density, normal speed, n1, n2 = 0 to 255, specifies # of columns
ESC L n1 n2
<graphics data>
1B 4C n1 n2
<graphics data>
27 89 n1 n2
<graphics data>
Double Horizontal Density, high speed, n1, n2 = 0 to 255, specifies # of columnsESC Y n1 n2
<graphics data>
1B 59 n1 n2
<graphics data>
27 89 n1 n2
<graphics data>
Quadruple Horizontal Density
n1, n2 = 0 to 255, specifies # of columns
ESC Z n1 n2
<graphics data>
1B 5A n1 n2
<graphics data>
27 90 n1 n2
<graphics data>
Reassign Graphic's Density
Reassign as Single Density,
n = 0, 60 dpi
n = 1, 120 dpi
n = 2, 120 dpi/Quasi density
n = 3, 240 dpi/Quasi density
n = 4, 80 dpi
n = 5, 72 dpi
n = 6, 90 dpi
n = 7, 144 dpi
ESC ? K n1B 3F 4B n27 63 75 n
Reassign as Low Speed Double Density,
n = 0, 60 dpi
n = 1, 120 dpi
n = 2, 120 dpi/Quasi density
n = 3, 240 dpi/Quasi density
n = 4, 80 dpi
n = 5, 72 dpi
n = 6, 90 dpi
n = 7, 144 dpi
ESC ? L n1B 3F 4C n27 63 76 n
Reassign as High Speed Double Density,
n = 0, 60 dpi
n = 1, 120 dpi
n = 2, 120 dpi/Quasi density
n = 3, 240 dpi/Quasi density
n = 4, 80 dpi
n = 5, 72 dpi
n = 6, 90 dpi
n = 7, 144 dpi
ESC ? Y n1B 3F 59 n27 63 89 n
Reassign as Quadruple Density,
n = 0, 60 dpi
n = 1, 120 dpi
n = 2, 120 dpi/Quasi density
n = 3, 240 dpi/Quasi density
n = 4, 80 dpi
n = 5, 72 dpi
n = 6, 90 dpi
n = 7, 144 dpi
ESC ? Z n1B 3F 5A n27 63 90 n
Select 9 pin mode
m = 0: single density graphics
m = 1: double density graphics
m = 2: high-speed double density graphics
m = 3: quadruple density graphics
n1, n2 = 0 to 255: total number of dot columns to be printed in graphics

n = total number of dots to be printed:

n1 = n - (n2 x 256)
n2 = INT (n/256)
ESC ^ m n1 n21B 5E m n1 n227 94 m n1 n2
Select density and enter graphics mode
m = 0: single density, 60 dpi
m = 1: slow speed double density, 120 dpi
m = 2: high speed double density, 120 cpi
m = 3: quadruple density, 240 dpi
m = 4: CRTI, 80 dpi
m = 5: Plotter (1 : 1), 72 dpi
m = 6: CRTII, 90 dpi
m = 7: Double density plotter, 144 dpi
n1, n2 = 0 to 255, specifies # of columns
ESC * m n1 n2
<graphics data>
1B 2A m n1 n2
<graphics data>
27 42 m n1 n2
<graphics data>
Single Horizontal Density
n1, n2 = 0 to 255, specifies 3 of columns
ESC K n1 n2
<graphics data>
1B 4B n1 n2
<graphics data>
27 75 n1 n2
<graphics data>
Bar Code Commands
(see end of this chapter)
Oki Data has taken care to insure that the information is complete, accurate and up-to-date. However, Oki Data assumes no responsibility for errors or omissions which may occur. All the information provided is subject to change from time to time at the sole discretion of Oki Data.
Copyright 2021, Oki Data, Americas, Inc.