Chapter 8 Communication Functions
8-17
(5) Example
This example supposes that "HFF" is written in M230 of station No. 1 and BCC value is checked.
① Computer request format (PC → MASTER-K120S main unit)
Format name Header Station No. Command
Command
type
Number of
blocks
Device Length Device Name Data
Tail
Frame
check
Frame (Example)
ENQ H01 w SS H01 H06 %MW230 H00FF EOT BCC
ASCII value H05 H3031 H77 H5353 H3031 H3036
H254D5732
3330
H30304646 H04
② For ACK response after execution of command(PC ← MASTER-K120S main unit)
Format name Header Station No. Command Command type
Tail Frame check
Frame (Example)
ACK H01 w SS ETX BCC
ASCII value H06 H3031 H77 H5353 H03
③ For NAK response after execution of command(PC ← MASTER-K120S main Unit)
Format name Header Station No. Command Command type
Error code Tail Frame check
Frame (Example)
NAK H01 w SS
Error code
(2) ETX BCC
ASCII value H15 H3031 H77 H5353
Error code
(4) H03