Chapter 13. Dedicated Cnet communication for GM6
13 - 21
BOOL
Byte
WORD
DOUBLE WORD
LONG WORD
GM1
--
%MB,%QB,%IB
%MW,%QW,%IW
%MD,%QD,%ID
%ML,%QL,%IL
GM2
--
%MB,%QB,%IB
%MW,%QW,%IW
%MD,%QD,%ID
%ML,%QL,%IL
GM3
--
%MB,%QB,%IB
%MW,%QW,%IW
%MD,%QD,%ID
%ML,%QL,%IL
GM4
--
%MB,%QB,%IB
%MW,%QW,%IW
%MD,%QD,%ID
%ML,%QL,%IL
GM5
--
%MB,%QB,%IB
%MW,%QW,%IW
%MD,%QD,%ID
%ML,%QL,%IL
GM6
--
%MB,%QB,%IB
%MW,%QW,%IW
%MD,%QD,%ID
%ML,%QL,%IL
(3) Request format(for ACK response)
Format name
Header
Station No.
Command
Command type
Tail
Frame check
Frame
(Ex.)
ACK
H10
W(w)
SB
ETX
BCC
ASCII value
H06
H3130
H57(77)
H5342
H03
•
Station number, command and command type are the same as computer request format.
•
BCC : When command is one of lower case(w), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ACK to ETX is converted into ASCII, added to BCC, and sent.
(4) Response format(for PLC NAK response)
Format
name
Header
Station No.
Command
Command
type
Error code
(Hex 2 Bytes)
Tail
Frame
check
Frame(Ex.)
ENQ
H10
W(w)
SB
H1132
EOT
BCC
ASCII value H05
H3130
H57(77)
H5342
H31313332
H03
•
Station number, command and command type are the same as computer request format.
•
BCC : When command is one of lower case(w), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ACK to ETX is converted into ASCII, added to BCC, and sent.
•
Error code is hex and 2 Bytes(ASCII code, 4 Bytes), which indicates type of error. For the details, see
Appendix 'B. Error Code Table'.