
REGO Thermal Printer Technical Manual
www.regotek.com 3
Select cut mode and cut paper..............................................41
DLE ENQ n Real-time request to printer.......................................................................41
DLE DC4 fn m t (fn=1) Generate pulse at real-time......................................................42
ESC = n Set peripheral device.......................................................................................42
ESC @ Initialize printer.................................................................................................43
ESC p m t1 t2 Generate pulse.......................................................................................43
GS I n Check printer ID .................................................................................................44
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 ........................46
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............................................................47
GS g 2 m nL nH Transmit maintenance counter...........................................................47
FS ! n Set print mode(s) for Chinese characters ...........................................................48
FS & Select Chinese character mode............................................................................49
FS - n Turn underline mode on/off for Chinese characters ..........................................49
FS . Cancel Chinese character mode ............................................................................49
FS 2 c1 c2 d1...dk Define user-defined Chinese characters..........................................50
FS C n Select Chinese character code system...............................................................51
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................................52
GS H n Select printing position for HRI characters.......................................................52
GS f n Select font for Human Readable Interpretation (HRI) characters......................53
GS h n Select bar code height ......................................................................................53
k m n d1...dn Print bar code ..........................................53
GS w n Set bar code width ...........................................................................................56
GS Z n Select 2-D code type .........................................................................................56
Print 2-D bar code..............................................................57
Print 2-D bar code .................57
5. CPCL Command Details ...........................................................................................................58
START commands....................................................................................................................58
PRINT Commands....................................................................................................................59
FORM Commands ...................................................................................................................59
TEXT Commands......................................................................................................................59
LINE Commands ......................................................................................................................60
BOX Commands.......................................................................................................................61
SETBOLD Commands...............................................................................................................61
INVERSE-TEXT Commands.......................................................................................................61
INVERSE-LINE Commands .......................................................................................................62
UNDERLINE-TEXT Commands..................................................................................................62
SETSP Commands....................................................................................................................63
CENTER Commands.................................................................................................................63
LEFT Commands......................................................................................................................63
RIGHT Commands ...................................................................................................................63
PREFEED Commands ...............................................................................................................64
POSTFEED Commands.............................................................................................................64
BARCOD-TEXT Commands.......................................................................................................64
BARCODE Commands..............................................................................................................65
1D Barcode......................................................................................................................65
2D Barcode......................................................................................................................65
GRAPHICS Commands.............................................................................................................67
6. Appendix A: CODE128 code ....................................................................................................67
A.1 CODE128 code ..................................................................................................................67
A.2 Character Set.....................................................................................................................69