Frame Structure - LG MASTER-K 120S Series User Manual

Programmable logic controller
Table of Contents

Advertisement

Chapter 8 Communication Functions

8.1.3 Frame Structure

1) Base Format
(1) Request frame(external communication device → MASTER-K120S main unit), (Max. 256 Bytes)
Header
Station
(ENQ)
number
(2) ACK Response frame (MASTER-K120S main unit → external communication device, when receiving data normally)
Header
Station
(ACK)
number
(3) NAK Response frame (MASTER-K120S main unit → external communication device,
Header
Station
(NAK)
number
Remark
1) Used control codes are as follows. Be familiar with the following control codes. Because they are importantly
used for communication.
Codes
Hex value
ENQ
ACK
NAK
EOT
ETX
Command
Command type
(max. 256 Bytes)
Command
Command
type
Command
Command type
Name
H05
Enquire
H06
Acknowledge
H15
Not Acknowledge
H04
End of Text
H03
End Text
Structurized data area
Structurized data area or null code
when receiving data abnormally) (max. 256 Bytes)
Error code (ASCII 4 Byte)
Contents
Request frame initial code
ACK response frame initial code
NAK response frame initial code
Request frame ending ASCII code
Response frame ending ASCII code
8-5
Tail
Frame check
(EOT)
(BCC)
Tail
Frame check
(ETX)
(BCC)
Tail
Frame check
(ETX)
(BCC)

Advertisement

Table of Contents
loading

Table of Contents