02N Series Printer Command
Total Page:16
File Type:pdf, Size:1020Kb
02N Series Printer Command Set Xiamen Rongta Technology Co., Ltd. Table of Contents Command List ..........................................................................................................................4 Control Commands ...................................................................................................................5 HT ...........................................................................................................................................5 LF............................................................................................................................................5 CR ...........................................................................................................................................6 ESC SP n .................................................................................................................................6 ESC ! n ....................................................................................................................................6 ESC $ nL nH ............................................................................................................................7 ESC % n ..................................................................................................................................7 ESC & y c1 c2 [x1 d1...d(y x1)]...[xk d1...d(y xk)] ...............................................................8 ESC m nL nH d1...dk .............................................................................................................9 ESC - n .................................................................................................................................. 12 ESC 2 .................................................................................................................................... 12 ESC 3 n.................................................................................................................................. 12 ESC ? n .................................................................................................................................. 13 ESC @ ................................................................................................................................... 13 ESC D n1...nk NUL ................................................................................................................ 13 ESC E n ................................................................................................................................. 14 ESC G n ................................................................................................................................. 15 ESC J n .................................................................................................................................. 15 ESC R n ................................................................................................................................. 15 ESC M n…. ........................................................................................................................... 16 ESC V n ................................................................................................................................. 16 ESC a n .................................................................................................................................. 17 ESC d n.................................................................................................................................. 17 ESC t n .................................................................................................................................. 18 ESC { n .................................................................................................................................. 19 FS p n m ................................................................................................................................ 19 FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n .......................................................... 20 GS ! n .................................................................................................................................... 23 GS x y d1...d(x y 8) ........................................................................................................ 24 GS / m ................................................................................................................................... 25 GS B n ................................................................................................................................... 26 GS f n .................................................................................................................................... 27 GS H n ................................................................................................................................... 27 GS L nL nH ............................................................................................................................ 27 GS h n .................................................................................................................................... 28 ① GS k m d1...dk NUL② GS k m n d1...dn ........................................................................... 28 ① GS k m v r d1...dk NUL② GS k m v r nL nH d1...dn ......................................................... 32 GS x n .................................................................................................................................... 32 GS v 0 m xL xH yL yH d1....dk ............................................................................................... 32 GS w n ................................................................................................................................... 34 www.rongtatech.com 2 Xiamen Rongta Technology Co., Ltd. GS ‘ ....................................................................................................................................... 34 FS ! n ..................................................................................................................................... 35 FS & ...................................................................................................................................... 36 FS . ........................................................................................................................................ 36 ESC = n ................................................................................................................................. 36 FS 2 c1 c2 d1...dk ................................................................................................................... 37 ESC c 5 n(for buttons) ............................................................................................................ 37 DC2 T .................................................................................................................................... 37 GS ( k pL pH cn fn n1 n2 (fn=65) ...................................................................... 38 GS ( k pL pH cn fn n (fn=67) ............................................................................... 38 GS ( k pL pH cn fn n (fn=69) ............................................................................... 38 GS ( k pL pH cn fn m d1 … dk (fn=80) ............................................................. 39 GS ( k pL pH cn fn m (fn=81) .............................................................................. 39 GS ( k pL pH cn fn m (fn=82) .............................................................................. 40 CODE PAGE ......................................................................................................................... 42 www.rongtatech.com 3 Xiamen Rongta Technology Co., Ltd. Command List Type Command Name LF Print and line feed CR Print and carriage return Print HT JMP to the next TAB position Command ESC D n Set horizontal tab positions ESC J n Print and Feed n dots paper ESC d n Print and Feed n lines ESC 2 Select default line spacing Line spacing ESC 3 n Set line spacing Command ESC a n Select justification ESC $ nL nH Set absolute print position ESC ! n Select print mode(s) ESC M Select characters font GS ! n Set or Cancel the double width and height GS B Turn white/black reverse printing mode ESC V n Turn 90°clockwise rotation mode on/off ESC G n Turn on/off double-strike mode Character Command ESC E n Set or Cancel bold font ESC SP n Set the space between chars ESC - n Set the underline dots(0,1,2) ESC % n Select/Cancel user-defined characters ESC & n Define user-defined characters ESC ? n Cancel user-defined characters FS 2 Define user-defined Kanji characters ESC * Select bit-image mode GS * Define downloaded bit image Bit Image GS / Print downloaded bit image Command GS „ Print line section on a horizontal FS p n m Print NV bitmap FS q n Define NV bitmap Init Command ESC @ Initialize printer GS H Select printing position of human readable characters GS h Set bar code height Bar Code GS w Set bar code width Command GS f Select font for HRI characters GS k Print bar code GS k Print QR code www.rongtatech.com 4 Xiamen Rongta Technology Co., Ltd. GS ( k pL pH cn QR mode set fn n1 n2 (fn=65) GS ( k pL pH cn Set width fn n1 n2 (fn=67) GS ( k pL pH cn Set the QR code correction level error fn n1 n2 (fn=69) QR Code GS ( k pL pH cn Command fn m d1…dk Store and receive QR code data in 2D barcode area (fn=80) GS ( k pL pH cn Receive and print