Specifications
[Default]
[Reference]
[Example] <SBF, 00000000> no errors
<SBF, 04000000> near paper end
<SBF, 01030000> paper not present, printing head up, cover open
To request the Full status (1° byte) and the User status (2°byte) proceed as follow:
see bitmask:
BIT3 = 0 BIT2 = 0 BIT1 = 1 BIT0 =1 quindi 0011 = 3
Send the command: <AFSB3>
Possible answer: <SB3,0504>
where:
1st byte
0 = 0000 bit7 = 0 bit6 = 0 bit5 = 0 bit4 =0
(notch found) (not virtual paper end) (ticket not present) (RESERVED)
5 = 0101 bit3 = 0 bit2 = 1 bit1 = 0 bit0 =1
(RESERVED) (near paper end) (RESERVED) (Paper not present)
2nd byte
0 = 0000 bit7 = 0 bit6 = 0 bit5 = 0 bit4 =0
(RESERVED) (FF key released) (LF key released) (RESERVED)
4 = 0100 bit3 = 0 bit2 = 1 bit1 = 0 bit0 =0
(drag motor off) (spooling) (cover closed) (print head down)
<Sn>
Printers: KPM150
[Name] Status request
[Format] ASCII <Sn>
[Range]
[Description] The host can ask to the printer many differents status infos; the n parameter indicates
which type of request :
• If n = 1 the printer return a byte that represent the status:
$10: Paper end
$11: No error
$18: Cover open
$19: Wrong command
$20: Notch error
$21: Heading over temperature error
$22: Power supply voltage error
$23: Cutter error
• If n=3 the printer return ACK ($06) if printing is properly fi nished, otherwise return NACK
($15). If the request will be transmitted during printing phase, it waits the end of the proc-
ess and then is sent the answer.
[Notes]
[Default]
[Reference]
[Example]
SVELTA Emulation
58 Command Reference