P11-4 Mobile Printer CPCLProgramming Manual
STATUS/INFORMATION (continued)
Get Printer Information (GPI.LBL)
ESC (0x1b) 'v' (0x76)
This command instructs the printer to return a null-
terminated string containing its model number, firm-
ware revision and serial number. In practice, a
search for the NUL character should be used, since
the length of the string returned may change.
Get Extended Printer Status ESC(0x1b) ‘i’ (0x69)
This command requests the extended status byte
from the printer. Printer program versions 24 and
higher respond to this command. The extended status
byte returned from the printer is in the following for-
mat:
Bit Description
7 Ribbon status: 0=ribbon detected, 1=no ribbon
detected
6 Paper supply status: 0=paper supply is OK
1=paper supply is low
5 Presentation (peeler) sensor: 0=last label re
moved, 1=last label not removed yet
4 Paper-jam: 1= detected, 0 = not detected
2
3Reserved
2Reserved
1Reserved
0Reserved
Notes: 1. Mask all reserved bits when reading status.
2. The PAPER JAM command must be issued prior to
requesting the paper jam status.