CHAPTER 3 INTERFACE
B-EP Series
3-10
j Command packet in the TPCL, RECEIPT or ESC/POS mode (Host → Printer)
Length is designated in 1 byte:
STX Printer ID Length Mode Flag Command & Data CRC
02H xxH xxH xxH Y xxH xxH xxH
Length is designated in 2 bytes:
STX Printer ID Length Mode Flag Command & Data CRC
02H xxH xxH 00H xxH xxH Y xxH xxH xxH
• Printer ID ......... 2-byte hex data (in order from High to Low)
• Length ............. Hex data indicating the number of bytes of command data
• When the length is designated in 1 byte: 1 byte
01H to FFH
• When the length is designated in 2 bytes: 3 bytes
The first 1 byte is fixed at 00H.
Designate the length using the remaining 2 bytes.
(in order from Low to High): 0001 H to 0FFFH
NOTE: Up to 4 KB per one packet can be sent. However, total data
amount from the first block to the final block must be 60 KB or
less.
• Mode ............... Fixed at “Y” (indicating the RECEIPT mode)
• Flag ................. Flag indicating the block No. or the final block flag for the receipt issue
(1 byte)
• CRC ................ 2-byte hex data (in order from Low to High)
* For the Status Request Command, the Mode Select Command, Reset Command, Receive
Buffer Remaining Capacity Request Command, and Printer Option Retrieve Command, one
packet should include only one command.
k Turnaround time
The printer should send a NAK/ACK/status packet after 5 msec. from when a PAD/command
packet has been received.
Range of the length
Range of CRC calculation
Range of the length
Block No. (0 to 7F)
Final block flag 0: Final
1: Not final