Function2, Gs ( c pl ph m fn b c1 c2 – Citizen Systems BD2-2220 User Manual
Page 114
- 114 -
fn=2、50: Function 2 Sending Data Stored in Specified Record
GS ( C pL pH m fn b c1 c2
[Code]
<
1D>H<28>H<43>H
[Range] (pL+pH×256)=5(pL=5、pH=0)
m=0
fn=2、50
b=0
32≦c1≦126、32≦c2≦126
[Outline]
[The specification which is common to the model]
Sends data stored in the record specified by c1, c2 in user NV memory.
Hex.
Decimal
Data Size
Header 37H
55
1byte
Identifier 70H
112
1byte
Status
40H or41H
64 or 65
0~80bytes
Data 20H~FEH 32~254
1byte
NUL 00H
0
1byte
Transmission data in case specified record cannot be detected is as shown below.
Hex. Decimal
Data Size
Header 37H
55
1byte
Identifier 70H
112
1byte
Status 40H
64
1byte
NUL 00H
0
1byte
When 40 or more key codes exist, they are divided in units of 40 maximum and the rest to
be sent.
• Status with a group of consecutive transmit data groups is 41H.
• Status without a group of consecutive transmit data is 40H.
After sending [Header - NUL], a response is received from host and next processing
corresponding to the response is executed.
• In case of “Status (with continuous block): hexadecimal number = 41H / decimal number = 65”・
Response
Content of Processing
ASCII Decimal
ACK 6
Sends next data group.
NAK 21
Resends previous data group.
CAN 24
Cancels processing.
• In case of “Status (last block): hexadecimal number = 40H / decimal number = 64”
Response
Content of Processing
ASCII Decimal
ACK 6
Terminates processing.
NAK 21
Resends previous data group.
CAN 24
Cancels processing.