LG MASTER-K 120S Series User Manual page 203

Programmable logic controller
Table of Contents

Advertisement

Chapter 8 Communication Functions
(3) MASTER-K120S Main unit response format (MASTER-K120S of ACK response)
Format name
Header
ACK
Ex. of frame
H06
ASCII value
Item
BCC
Number of data
Data
Ex.1
When memory type included in variable name of computer request Format is W(Word), and data number of
computer request Format is 03, data number of PLC ACK response after execution of command is indicated by
H06(2*03 = 06 bytes)Byte and ASCII code value 3036 is entered in data area.
Ex.2
In just above example, when data contents of 3 words are 1234, 5678, and 9ABC in order, actual ASCII code
converted values are 31323334 35363738 39414243, and the contents are entered in data area.
Command
Station No.
Command
type
H10
R(r)
SB
H3130
H52(72)
H5342
When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ACK to ETX is converted into ASCII and added to BCC, and
sent.
It means byte number of hex type, and is converted into ASCII. This number is determined
by multiplying the data number of computer request Format by the data size(in below
table) according to memory type(B,W,D) included in variable name of computer request
Format.
Data type
WORD(W)
.In data area, there are the values of hex data converted to ASCII code saved.
Number of
Number of
blocks
data
H01
H02
H3031
H3134
Explanation
Available device
%(P,M,L,K,F,T,C,D,S)W
8-13
Frame
data
Tail
check
H1122
EOT
BCC
H31313232
H03
Data size
2

Advertisement

Table of Contents
loading

Table of Contents