Raster Command Reference 
- i - 
Contents 
1. Introduction ································································································ 1 
2. About Raster Commands ············································································· 2 
3. Printing Using Raster Commands ································································· 3 
4. Print Data ···································································································· 5 
4.1 Print data overview ······························································································ 5 
4.2 Sample (analyzing the print data of the test page)  ···················································· 7 
4.2.1 Preparation ............................................................................................................. 7 
4.2.2 Checking the print data  .......................................................................................... 8 
4.2.3 Explanation of print data for the test page ........................................................... 11 
4.3 Page data details ······························································································· 13 
4.3.1 Resolution ............................................................................................................ 13 
4.3.2 Page size ............................................................................................................. 13 
4.3.3 Feed amount ........................................................................................................ 17 
4.3.4 Maximum and minimum lengths .......................................................................... 17 
4.3.5 Raster line  ................................ ............................................................................ 18 
5. Status ······································································································· 22 
5.1 Status overview ································································································· 22 
5.2 Definitions of each part ······················································································· 24 
5.2.1 Series/model ........................................................................................................ 24 
5.2.2 Error information 1 ............................................................................................... 24 
5.2.3 Error information 2 ............................................................................................... 25 
5.2.4 Media width and length  ........................................................................................ 26 
5.2.5 Media type ............................................................................................................ 27 
5.2.6 Status type ........................................................................................................... 28 
5.2.7 Phase type and phase number ............................................................................ 28 
5.2.8 Notification number .............................................................................................. 29 
5.2.9 Battery level ......................................................................................................... 30 
6. Print Command List ··················································································· 31 
7. Printing Command Details·········································································· 32 
NULL  Invalidate ..................................................................................................... 32 
ESC @  Initialize ....................................................................................................... 32 
ESC i S  Status information request .......................................................................... 32 
ESC i a  Switch dynamic command mode ................................................................ 33 
ESC i !  Switch automatic status notification mode .................................................. 33 
ESC i U w Additional media information command ...................................................... 34 
ESC i z  Print information command ......................................................................... 36 
ESC i d  Specify margin amount (feed amount) ........................................................ 37 
M  Select compression mode ................................................................ ........... 38 
g  Raster graphics transfer .............................................................................. 41 
Z  Zero raster graphics .................................................................................... 41 
FF  Print command ................................................................ ............................ 41 
Control-Z Print command with feeding ........................................................................ 41 
ESC i CANCancel ......................................................................................................... 42 
8. Flow Charts ······························································································· 43 
8.1 Buffered printing normal flow for USB connection··················································· 44 
8.2 Buffered printing error flow for USB connection······················································ 45 
8.3 Buffered printing cooling flow for USB connection  ·················································· 46 
8.4 Buffered printing waiting for peeling/resumed flow for USB connection  ····················· 47 
8.5 Buffered printing cancelling flow in USB connection ··············································· 48