10
Model No. CRT-541
SPECIFICATION
Date 2010/01/10
Ver. 1.0
Card Dispenser
Page
7/16
4.4 Transmission Data Package Characters
4.4.1 Definition of Control Character
S T X: 0X02 Start character of data package.
E T X: 0x03 End character of data package.
A C K: 0x06 Positive acknowledgement character of unit.
N A K: 0x15 Negative acknowledgement character of unit.
4.4.2 Data Package Structure
4.4.2.1 From Host To Unit (Total 7 Bytes in Length)
STX
Dispenser
Address
High Byte
Dispenser
A
Low Byte
Command
High Byte
Command
Low Byte
ETX BCC
Note:
1BCC is the sum of XORcalculate method as follow:
BCC=”STX” ^ ”dispenser address high byte” ^ ”dispenser address low
byte” ^ ”command high byte” ^ ”command low byte” ^ ”ETX” ( “^”
means XOR )
2Data package transfer by ASCII
3Find command in Command list.
4Data in below table are valid value of address, and all of them are
character type.
‘00’ ‘01’ ‘02’ ‘03’ ‘04’ ‘05’ ‘06’ ‘07’
‘08’ ‘09’ ‘10’ ‘11’ ‘12’ ‘13’ ‘14’ ‘15’
4.4.2.2 From Unit To Host (Total 7 Bytes in Length)
STX
Dispenser
Address
High Byte
Dispenser
Address
Low Byte
Working
Status
Response
Byte
Stacker
Status
Response
Byte
ETX BCC
Note
1Find working status response byte in Working status response
datasheet
2Find stacker status response byte in Stacker status response
datasheet.
3Data in below table are virtual value of address, and all of them are
character type
‘00’ ‘01’ ‘02’ ‘03’ ‘04’ ‘05’ ‘06’ ‘07’
‘08’ ‘09’ ‘10’ ‘11’ ‘12’ ‘13’ ‘14’ ‘15’