Chapter8 Communication Function
8-21
(5) Example
This example supposes that 2 byte HAA15 is written in D000 of station No. 1 and BCC value is checked.
①
Computer request Format (PC
→
K7 Base Unit)
Format name
Header
Station
No.
Command
Command
type
Device
Length
Device
Number of
data
Data
Tail
Frame
check
Frame (Example) ENQ
H01
w
SB
H06
%DW0000
H01
HAA15056F
EOT
BCC
ASCII value
H05
H3031
H77
H5342
H3036
H254457303030
H3031
H414131353
0353646
H04
②
For ACK response after execution of command (PC
←
K7 Base Unit)
Format name
Header
Station No.
Command
Command type
Tail
Frame check
Frame (Example)
ACK
H01
W
SB
ETX
BCC
ASCII value
H06
H3031
H77
H5342
H03
③
For NAK response after execution of command(PC
←
K7 Base Unit)
Format name
Header
Station No.
Command
Command type
Error code
Tail
Frame check
Frame (Example)
NAK
01
W
SB
Error code (2)
ETX
BCC
ASCII value
H15
H3031
H77
H5342
Error code (4)
H03