LG GLOFA-GM Series User Manual page 163

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

Advertisement

Chapter 7 Communication function
[Table 7.16] Number of data according to variables
Classification
BOOL(X)
Byte(B)
WORD(W)
DOUBLE WORD(D)
LONG WORD(L)
* Values of ASCII code converted from HEX data are in data area.
Ex.1
Data number of H04(ASCII code value:H3034) indicates that 4-byte data in HEX. is in the data(DOUBLE WORD).
HEX data of 4 bytes is converted into ASCII code in data.
Ex.2
If the number of data is H04 and the data is H12345678, ASCII converted code value of this is "31 32 33 34 35 36
37 38", which is input in data area. Namely, the highest value comes first and the lowest last.
Remark
[Notes] If data type is BOOL, data read is indicated by one byte of HEX. Namely, if bit value is 0, it is indicated by
H00 and if 1, it is indicated by H01.
3) Response format(for PLC of NAK response)
Format
Header
Name
Frame(Ex.)
NAK
ASCII value
H15
Station number, commands, and type of command are the same as in computer request format.
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 NAK to ETX is converted into ASCII, added to BCC, and sent.
Error code is HEX and 2 bytes(ASCII code, 4 bytes), which indicates type of error. For the details, see
Appendix 'B. Error Code Table'.
Direct variable available
%MX,%QX,%IX,%(P,M,L,K,F,T)X
%MB,%QB,%IB, %(P,M,L,K,F,T,C,D,S)W
%MW,%QW,%IW,%(P,M,L,K,F,T,C,D,S)W
%MD,%QD,%ID, %(P,M,L,K,F,T,C,D,S)W
%ML,%QL,%IL
Station No.
Command
Command type
H20
R(r)
H3230
H52(72)
7-44
1(only lowest bit of these is effective)
Error code
(HEX 2 Byte)
SS
H1132
H5353
H31313332
Number of data (Byte)
1
2
4
8
Tail
Frame check
ETX
BCC
H03

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents