
Thermal Printer Technical Manual
3
Select cut mode and cut paper..............................................40
DLE ENQ n Real-time request to printer.......................................................................41
DLE DC4 fn m t (fn=1) Generate pulse at real-time......................................................41
ESC = n Set peripheral device.......................................................................................42
ESC @ Initialize printer.................................................................................................42
ESC p m t1 t2 Generate pulse.......................................................................................43
GS I n Check printer ID .................................................................................................43
GS P x y Set horizontal and vertical motion units.........................................................44
GS ( A pL pH n m Execute test print..............................................................................45
Enable/disable real-time command ........................45
GS ( H pL pH fn m d1 d2 d3 d4 (fn=48)Set the process ID response.......................46
GS g 0 m nL nH Initialize maintenance counter............................................................46
GS g 2 m nL nH Transmit maintenance counter...........................................................47
FS ! n Set print mode(s) for Chinese characters...........................................................47
FS & Select Chinese character mode............................................................................48
FS - n Turn underline mode on/off for Chinese characters ..........................................48
FS . Cancel Chinese character mode ............................................................................49
FS 2 c1 c2 d1...dk Define user-defined Chinese characters..........................................49
FS C n Select Chinese character code system...............................................................50
FS S n1 n2 Set left- and right-side Chinese character spacing......................................51
FS W n Turn quadruple-size mode on/off for Chinese characters................................51
GS H n Select printing position for HRI characters.......................................................52
GS f n Select font for Human Readable Interpretation (HRI) characters......................52
GS h n Select bar code height ......................................................................................53
Print bar code ..........................................53
GS w n Set bar code width ...........................................................................................55
GS Z n Select 2-D code type .........................................................................................56
Print 2-D bar code..............................................................56
Print 2-D bar code .................57
5. CPCL Command Details...........................................................................................................58
START commands....................................................................................................................58
PRINT Commands....................................................................................................................58
FORM Commands ...................................................................................................................59
TEXT Commands......................................................................................................................59
LINE Commands ......................................................................................................................60
BOX Commands.......................................................................................................................60
SETBOLD Commands...............................................................................................................60
INVERSE-TEXT Commands.......................................................................................................61
INVERSE-LINE Commands .......................................................................................................61
UNDERLINE-TEXT Commands..................................................................................................62
SETSP Commands....................................................................................................................62
CENTER Commands.................................................................................................................63
LEFT Commands......................................................................................................................63
RIGHT Commands ...................................................................................................................63
PREFEED Commands...............................................................................................................63
POSTFEED Commands.............................................................................................................63
BARCOD-TEXT Commands.......................................................................................................64
BARCODE Commands..............................................................................................................64
1D Barcode......................................................................................................................64
2D Barcode......................................................................................................................65
GRAPHICS Commands.............................................................................................................66
6. Appendix A: CODE128 code ....................................................................................................67
A.1 CODE128 code ..................................................................................................................67
A.2 Character Set.....................................................................................................................68