Chapter 13. Dedicated Cnet communication for GM6
13 - 24
(3) Response format(for PLC ACK response)
Format name
Header
Station No.
Command
Register No.
Tail
Frame check
Frame(Ex.)
ACK
H10
X(x)
H1F
ETX
BCC
ASCII value
H06
H3130
H58(78)
H3146
H03
•
Station number, command and resister No. are the same as computer request format.
•
BCC : When command is one of lower case(x), only one lower byte of the value resulted by adding 1 Byte each
to ASCII values from NAK to ETX is converted into ASCII, added to BCC, and sent.
(4) Response format(for PLC NAK response)
Format
name
Header
Station
No.
Command
Register No.
Error code(Hex 2 Bytes)
Tail
Frame check
Frame
(Ex.)
ACK
H10
X(x)
H1F
H1132
ETX
BCC
ASCII
value
H06
H3130
H58(78)
H3146
H31313332
H03
•
Station number, main commands, and resister No. are the same as computer request format.
•
BCC : When command is one of lower case(x), only one lower byte of the value resulted by adding 1 Byte each
to ASCII values from NAK 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
‘A2. Error Code Table’.
(5) Example of use
This supposes that the variable which data type of station No.’1’ is UINT and the variable name is “ASDF” is
monitor-registered with No.’1’.
(Computer request format)
Register format
Format
name
Head-
er
Stat-
ion No.
Comm-
and
Regist-
er No.
R##
Number
of blocks
Variable
length
Variable
name
Tail
Frame
check
Frame(Ex.)
ENQ
H01
X(x)
H01
R0A
H01
H04
ASDF
EOT BCC
ASCII value
H05
H3031
H58(78)
H3031
H523
041
H3031
H3034
H4153444
6
H04
Содержание GLOFA GM6 Series
Страница 1: ...U s e r s M a n u a l LG Programmable Logic Controller GLOFA GM6 Series L G Industrial Systems ...
Страница 2: ... CONTENTS ...
Страница 178: ...Chapter 15 The PID functions 15 24 Example program of 15 4 3 1 ...
Страница 179: ...Chapter 15 The PID functions 15 25 Example program of 15 4 3 2 continue to next page ...
Страница 180: ...Chapter 15 The PID functions 15 26 Example program of 15 4 3 2 continued ...
Страница 209: ...Appendix 4 Outer Dimensions APP4 3 ...