LG GLOFA-GM Series User Manual page 166

Programmable logic controller cnet i/f module
Hide thumbs Also See for GLOFA-GM Series:
Table of Contents

Advertisement

Chapter 7 Communication function
Remark
[Note 1] Refer to technical spec. of GLOFA PLC for details to specify the area of device in GLOFA GM.
[Note 2] Data type of LONG WORD isn't supported in GM3,GM4,GM6 and GM7.
[Note 3] Continuous reading function of direct variables has not [Number of blocks] item in protocol.
2) Response format(for PLC of ACK response)
Format
Header
Name
Frame(Ex)
ACK
ASCII
H06
value
Station number, main commands and type of command are the same as in computer request format.
For continuous reading response, insert H01to [Number of blocks] to transmit.
BCC : When command is one of lower case(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, added to BCC, and sent.
Number of data 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(X,B,W,D,L) included in direct variable name of computer request format. Namely, the result
from multiplying the data type and the request length together is to be the data length of response frame as
in a unit of byte differently from the data length of reading request frame.
Data length of request frame : H05 (Double Word)
Data length of response frame : 05 X 4 = 20 (H14 in HEX.)
[Table7.18] Direct variable available
Data type
Byte(B)
WORD(W)
DOUBLE WORD(D)
LONG WORD(L)
Station
Command
Command
No.
type
H10
R(r)
SB
H52
H3130
H5342
(72)
Direct variable available
%MB,%QB,%IB
%MW,%QW,%IW,%(P,M,L,K,F,T,C,D,S)W
%MD,%QD,%ID
%ML,%QL,%IL
Number
Number
of blocks
of data
01
H14
H31313232333334343535363637
H3031
H3134
373838393941414242434344444
545464631313232333334343535
7-47
Data
H112233445566778899AA
BBCCDDEEFF1122334455
Data size(Byte)
1
2
4
8
Frame
Tail
check
ETX
BCC
H03

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents