Chapter8 Communication Function
8-12
(5) Example
This example supposes when 1 WORD from M20 and 1 WORD from P001 address of station No.1 are
read and BCC value is checked. Also it is supposed that H1234 is entered in M20, and data of H5678 is
entered in P001.
x Computer request format(PC
ᆌ
K7 Base Unit)
Format name Header Station No. Command
Command
type
Number of
blocks
Variable
length
Format
name
Devicelength Format name Tail
Frame
check
Ex. of frame ENQ H01 r SS H02 H05 %MW20 H06 %PW001 EOT BCC
ASCII value H05 H3031 H72 H5353 H3032 H3035
H254D57
3230
H3036
H25505730
3031
H04
y For ACK response after execution of command(PC
ᆊ
K7 Base Unit)
Format name Header Station No. Command
Command
type
Number of
blocks
Number of
data
Data
Number of
data
Data Tail
Frame
check
Ex. of frame ACK H01 r SS H02 H02 H1234 H02 H5678 ETX BCC
ASCII value H06 H3031 H72 H5353 H3032 H3032 H31323334 H3032 H35363738 H03
z For NAK response after execution of command(PC
ᆊ
MK80S Base Unit)
Format name Header Station No. Command Command type Error code Tail Frame check
Ex. of frame NAK H01 r SS
Error code (2)
ETX BCC
ASCII value H15 H3031 H72 H5353
Error code (4)
H03
ఐ
Frame check BCC is automatically calculated internally.
K80S base unit