Chapter 13. Dedicated Cnet communication for GM6
13 - 12
(5) Example of use
•
This example supposes when 1 WORD from %MW20 of station No.1 and 1 WORD from %QW0.2.1
address are read. Also it is supposed that H1234 is entered in %MW20, and data of H5678 is entered
in %QW0.2.1.
(Computer request format)
Format
name
Header
Statio
n No.
Command
Comma-
nd type
Number
of
blocks
Variabl
e
length
Variable
name
Variable
length
Variable
name
Tail BCC
Frame
(Ex.)
ENQ
H01
R(r)
SS
H02
H05
%MW20 H08
%QW0.2.
1
EOT BCC
ASCII
value
H05
H3031 H52(72)
H5353
H3032
H3035
H254D5
73230
H3038
H255157
302E322
E31
H04
(For PLC ACK response after execution of command)
Format
name
Header
Station
No.
Comman
d
Comman
d type
Number
of blocks
Numbe
r of
data
Data
Number
of
data
Data
Tail BCC
Frame
(Ex.)
ACK
H01
R(r)
SS
H02
H02
H1234
H02
H5678 ETX BCC
ASCII
value
H06
H3031
H52(72)
H5353
H3032
H3032
H3132
3334
H3032
H3536
3738
H03
(For PLC NAK response after execution of command)
Format
name
Header
Station
No.
Command
Command
type
Error code
Tail
BCC
Frame
(Ex.)
NAK
H01
R(r)
SS
Error code(2)
ETX BCC
ASCII
value
H15
H3031
H52(72)
H5353
Error code(4)
H03