LG MASTER-K 120S Series User Manual page 210

Programmable logic controller
Table of Contents

Advertisement

Chapter 8 Communication Functions
(5) Example
This example supposes that 2 byte H'AA15 is written in D000 of station No. 1 and BCC value is checked.
① Computer request Format (PC → MASTER-K120S main unit)
Format name
Header
Frame (Example) ENQ
ASCII value
H05
② For ACK response after execution of command (PC ← MASTER-K120S main unit)
Format name
Header
Frame (Example)
ASCII value
③ For NAK response after execution of command(PC ← MASTER-K120S main unit)
Format name
Header
Frame (Example)
NAK
ASCII value
H15
Station
Command
Command
No.
type
H01
w
SB
H3031
H77
H5342
Station No.
ACK
H01
H06
H3031
Station No.
Command
01
H3031
H77
Device
Device
Length
H06
%DW0000
H3036
H254457303030
Command
Command type
W
SB
H77
H5342
Command type
W
SB
H5342
8-20
Number of
Data
Tail
data
H01
HAA15056F
EOT
H414131353
H3031
H04
0353646
Tail
Frame check
ETX
H03
Error code
Tail
Error code (2)
ETX
Error code (4)
H03
Frame
check
BCC
BCC
Frame check
BCC

Advertisement

Table of Contents
loading

Table of Contents