A SERVICE OF

logo

General Printer Commands
Command Lists:
-25-
-24-
Command Code Description Function Description
(Hex)
HT 09 Horizontal tab
LF 0A Print and line feed
CR 0D Print and carriage return
ESC$nLnH 1B24nLnH
0 nL 255
0 nH 255
ESC&yc1c2 1B26yc1c2
y=3 32 c1 c2 126
ESC*mnLnHd1 dk 1B2AmnLnHd1 dk Select bit-image mode
m=0,1,32,33
0 nH 3 0 d 255
ESC n 1B 2D n Turn underline mode on/off
0n248n50
ESC 2 1B 32 Select default line spacing
ESC @ 1B 40 Initialize printer
ESC D n1 nk NUL 1B 44 n1 nk 00 Set horizontal tab positions
1 n 255 0 k 32
ESC\nLnH 1B5CnLnH
0 nL 255
0 nH 255
ESCc5n 1B6335n
0 n 255
ESC d n 1B 64 n 0 n 255 Print and feed n lines
ESCpmt1t2 1B70mt1t2
m=0,1,48,49
0 t1 255 0 t2 255
ESC SP n 1B 20 n 0 n 255 Set right-side character spacing
ESC ! n 1B 21 n 0 n 255 Select print mode(s)
Set absolute print position
ESC % n 1B 25 n Select/cancel user-defined
0 n 255 character set
Define user-defined characters
0 nL 255
ESC 3 n 1B 33 n 0 n 255 Set line spacing
ESC ? n 1B 3F n 32 n 126 Cancel user-defined characters
ESC G n 1B 47 n 0 n 255 Turn on/off double-strike mode
ESC J n 1B 4An 0 n 255 Print and feed paper
Set relative print position
Enable/disable panel buttons
Generate pulse
Command Code Description Function Description
(Hex)
GS*xyd1 d(x y 8) 1D2Axyd1(x y 8) Define downloaded bit image
1 x 255 1 y 48
x y 1536 0 d 255
Print downloaded bit image
Set left margin
Set printing area width
ESC E n 1B 45 n 0 n 255 Turn emphasized mode on/off
ESC R n 1B 52 n 0 n 13 Select an international
character set
Select justification
ESC { n 1B 7B n 0 n 255 Turns on/off upside-down
printing mode
Select printing position
(1) GS V m 1D 56 m m=0,1,49 Select cut mode and cut paper
(2) GS V m n 1D 56 m n m=66
0 n 255
(1)GSkmd1 dkNUL1D6Bmd1 dk00 Print bar code
0m6
(2)GSkmnd1 dn 1D6Bmnd1 dn
65 m 73
GSv0mxLxHyLyH 1D7630mxLxHyL Print raster bit image
d1 dk yH d1 dk
0m348m51
0 xL 255 0 xH 255
0 yL 255 0 d 255
k=(xL+xH 256) (yL+yH
256)
GS / m 1D 2F m
0m348m51
GSLnLnH 1D4CnLnH
0 nL 255
0 nH 255
GSWnLnH 1D57nLnH
0 nL 255
0 nH 255
ESC a n 1B 61 n
0n248n50
ESC t n 1B 74 n 0 n 7 n=19 Select character code table
GS H n 1D 48 n
0 n 3 48 n 51 for HRI characters
GS h n 1D 68 n 1 n 255 Select bar code height
GS w n 1D 77 n 2 n 6 Set bar code width