Raster Command Reference

Raster Command Reference
- 32 -
4. Printing Command Details
ESC i z Print information command
ASCII: ESC i z {n1} {n2} {n3} {n4} {n5} {n6} {n7} {n8} {n9} {n10}
Hexadecimal: 1B 69 7A {n1} {n2} {n3} {n4} {n5} {n6} {n7} {n8} {n9} {n10}
Description
Specifies the print information.
Definitions of {n1} through {n10}
{n1}:
Valid flag; Specifies which values are valid
#define PI_KIND 0x02 // Media type
#define PI_WIDTH 0x04 // Media width
#define PI_LENGTH 0x08 // Media length
#define PI_QUALITY 0x40 // Priority given to print quality(Not used)
#define PI_RECOVER 0x80 // Printer recovery always on
{n2}:
Media type
No tape: 00h
Laminated tape: 01h
Non-laminated tape: 03h
Heat-Shrink Tube (HS 2:1): 11h
Heat-Shrink Tube (HS 3:1): 17h
Incompatible tape: FFh
{n3}:
{n3}: Media width (mm)
{n4}: Media length (mm)
For the media of width 24 mm, specify as n3=18h and n4=00h.
n4 is normally 00h, regardless of the paper length.
{n4}:
{n5-n8}:
Raster number = n8*256*256*256 + n7*256*256 + n6*256 + n5
If the media is not correctly loaded into the printer when the valid flag for PI_KIND,
PI_WIDTH and PI_LENGTH are set to “ON”, an error status is returned (Bit 0 of (2)
Error information 2 is set to “ON”.)
{n9}:
Starting page: 0
Other pages: 1
{n10}:
Fixed at 0