Toshiba B-EP Series Interface Specification page 41

External equipment interface specification
Hide thumbs Also See for B-EP Series:
Table of Contents

Advertisement

Command packet in the TPCL, RECEIPT or ESC/POS mode (Host → Printer)
Length is designated in 1 byte:
STX
Printer ID
Length
02H
xxH
xxH
xxH
Length is designated in 2 bytes:
STX
Printer ID
02H
xxH
xxH
00H
• 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
• When the length is designated in 2 bytes: 3 bytes
• 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.
Turnaround time
The printer should send a NAK/ACK/status packet after 5 msec. from when a PAD/command
packet has been received.
Mode
Flag
Y
xxH
Range of the length
Length
Mode
Flag
xxH
xxH
Y
xxH
Range of CRC calculation
01H to FFH
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.
3-10
Command & Data
Command & Data
Range of the length
Block No. (0 to 7F)
Final block flag
CHAPTER 3 INTERFACE
B-EP Series
CRC
xxH
xxH
CRC
xxH xxH
0: Final
1: Not final

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents