General Commands:
- write raw bytes
- Write()
- read raw bytes
- Read()
- Printf
- Println
Programmer Manual Commands:
- HT ~ Horizontal Tab
- HT()
- LF ~ Print and line feed
- LF()
- CR ~ Print and carriage return
- CR()
- DLE EOT n ~ Real-time status transmission
- TransmitPrinterStatus()
- TransmitOfflineStatus()
- TransmitErrorStatus()
- TransmitPaperSensorStatus()
- DLE DC4 n m t ~ Generate pulse at real-time
- ESC SP n ~ Set right-side character spacing
- ESC ! n ~ Select print mode(s)
- ESC $ nL nH ~ Set absolute print position
- ESC % n ~ Select/cancel user-defined character set
- ESC & y c1 c2 [x1 d1...d(x×x1)]...[xk d1...d(y×xK)] ~ Define user defined characters
- ESC * m nL nH d1... dk ~ Select bit-image mode
- ESC - n ~ Turn underline mode on/off
- ESC 2 ~ Select default line spacing
- ResetLineSpacing()
- ESC 3 n ~ Set line spacing
- SetLineSpacing()
- Standard Mode
- Page mode
- ESC = n ~ Set peripheral device
- ESC ? n ~ Cancel user-defined characters
- ESC @ ~ Initialize printer
- Initialize()
- ESC D n1...nk NUL ~ Set horizontal tab positions
- SetHT
- ESC E n ~ Turn emphasized mode on/off
- SetBold
- ESC G n ~ Turn on/off double-strike mode
- Same as ESC E n
- ESC J n ~ Print and feed paper
- Feed()
- 100 units is 1/2 inch or 12mm
- 1 unit is 6 typography points
- ESC M n ~ Select character font
- SetFont()
- ESC V n ~ Turn 90 degress clockwise rotation mode on/off
- SetRotate90()
- ESC Z m n k dL dH d1...dn ~ print qr.code
- ESC \ nL nH ~ Set relative print position
- ESC a n ~ Select justification
- Justify()
- ESC c 3 n (*) ~ Select paper sensor(s) to output paper end signals
- ESC c 4 n (*) ~ Select paper sensor(s) to stop printing
- ESC C 5 n ~ Enable/disable panel buttons
- ESC d n ~ Print and feed n lines
- FeedLines()
- GS V m ~ Select cut mode and cut paper
- Cut()
- GS V m n ~ Select cut mode and cut paper
- CutFeed()
- ESC p m t1 t2 ~ Generate pulse
- ESC t n ~ Select character code table
- ESC { n ~ Turns on/off upside-down printing mode
- FS p n m ~ Print NV bit image
- FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n ~ Define NV bit image
- GS ! n ~ Select character size
- GS $ nL nH ~ Set absolute vertical print position in page mode
- GS * x y d1...d(x×y×8) ~ Define downloaded bit image
- GS / m ~ Print downloaded bit image
- GS B n ~ Turn white/black reverse printing mode
- GS H n ~ Select printing position for HRI characters
- GS L nL nH ~ Set left margin
- GS V m ~ Select cut mode and cut paper
- Cut()
- GS W nL nH ~ Set printing area width
- GS f n ~ Select font for Human Readable Interpretation (HRI) characters
- GS h n ~ Select bar code height
- SetBarCodeHeight()
- ResetBarCodeHeight()
- GS k m d1...dk NUL ~ Print bar code
- PrintBarCode()
- GS k m n d1...dn ~ Print bar code
- PrintBarCode()
- GS v 0 m xL xH yL yH d1...dk ~ Print raster bit image
- GS w n ~ Set bar code width
- FS ! n ~ Set print mode(s) for Kanji characters
- FS & ~ Select Kanji character mode
- FS - n ~ Turn underline mode on/off for Kanji characters
- FS . ~ Cancel Kanji character mode
- FS 2 c1 c2 d1...dk ~ Define user-defined Kanji characters
- FS S n1 n2 ~ Set left- and right-side Kanji character spacing
- FS W n ~ Turn quadruple-size mode on/off for Kanji characters
Undocumented?:
- GS P ~ Specify horizontal and vertical units
- GS A ~ auto status back
- ESC B n t ~ Beep
- Beep()
- n is number of beep 1 <= n <= 9
- t is length of beep 1 <= n <= 9