User manual

APOS Premium Printer Series User Manual Page 118 /136 Reference: FDE 3107312 Issue A
6.23 Transaction Monitoring Commands
The following commands are provided as tools to monitor actual transaction completion, by providing
synchronization mechanisms with cut commands.
P
ROCESS TICKET COUNTER
The ticket counter is a 16-bit counter in memory that gets incremented
or cleared by sending a corresponding command to the printer.
ASCII
US a n
Hexadecimal 1F 61 n
Decimal
31 97 n
Value of n
01 Clear Ticket Counter
02 Increment Ticket Counter
Note that this command may be used to monitor actual transaction completion, as it is synchronized with
cut commands.
This means that if this command is sent immediately after a cut command, it won’t be processed until the
cut cycle is complete.
R
EQUEST TICKET COUNTER
Returns the contents of 16-bit Ticket Counter.
ASCII
US b
Hexadecimal 1F 62
Decimal
31 98
Returns 3 bytes: Command ID followed by the contents of Ticket Counter
Byte 1 = 62h
Byte 2 = Ticket Counter ( LSB )
Byte 3 = Ticket Counter ( MSB)
Range:
Decimal: 0
Ticket Counter 65535
Hex: 0000
Ticket Counter FFFF