LG MASTER-K 120S Series User Manual page 200

Programmable logic controller
Table of Contents

Advertisement

Chapter 8 Communication Functions
(3) Response format (ACK response)
Format name
Header
Ex. of frame
ACK
ASCII value
H06
Item
BCC
Number of data
Data
Ex.1
The fact that number of data is H04(ASCII code value:H3034) means that there is hex data of 4 bytes in data .
Hex data of 4 bytes is converted into ASCII code in data.
Ex.2
If number of data is H04 and the data is H12345678, ASCII code converted value of this is "31 32 33 34 35 36 37
38," and this contents is entered in data area. Name directly, highest value is entered first, lowest value last.
Remark
1) If data type is Bit, data read is indicated by bytes of hex. Namely, if Bit value is 0, it indicated by H00,
and if 1, by H01.
Station
Command
Command
No.
type
H20
R(r)
SS
H3230
H52(72)
H5353
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.
Number of data means byte number of hex type, and is converted into ASCII. This number
is determined according to data type(X,B,W) included in device name of computer request
Format.
• Number of data in accordance with its data type is as follows:
Data type
Bitl(X)
Byte(B)
Word(W)
In data area, there are the values of hex data converted to ASCII code saved.
Number of
Number
blocks
of data
H01
H02
HA9F3
H3031
H3032
H41394633
1 block(max. 16 blocks possible)
Explanation
Available variable
%(P,M,L,K,T,C,F)X
%(P,M,L,K,T,C,D,S,F)B
%(P,M,L,K,T,C,D,S,F)W
8-10
Frame
data
Tail
......
ETX
H04
Number of data
1
1
2
check
BCC

Advertisement

Table of Contents
loading

Table of Contents