LG GLOFA-GM Series User Manual page 184

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

Advertisement

Chapter 7 Communication function
BCC : When command is one of lower case(w), only one lower byte of the value resulted by adding 1 byte
each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC.
Number of blocks: This specifies the number of the blocks composed of [Direct variable name][Direct
variable] in this request format. This can be set up to 4 blocks. Therefore, the value of [Number of blocks]
must be H01(ASCII value:3031)-H04(ASCII value:3034).
Variable length : This indicates the number of variable name's characters registered in access variable of
PLC, which is allowable up to 16 characters. This value is one of ASCII converted from HEX type, and the
range is from H01(ASCII value:3031) to H10(ASCII value:3130).
Variable name: Where the name of variable to be written actually is positioned in ASCII value within 16
characters. Others than figure, upper/lower cases, '_' and '.' are not allowed for variable name. Upper/lower
cases are separately used, but all access variable names of PLC are composed of upper cases. Therefore,
use upper cases only..
Remark
[Note1] Device data type of each block must be same.
If this array data is to be specified, only 1 block is allowed.(Number of blocks can be omitted this time.)
The number of elements means the number of the elements in array. Namely, if global array variable, XX is
specified up to array[0]~[5], the number of elements becomes H06.
2)
Response format(for PLC of ACK response)
Format
Name
Frame (Ex.)
ASCII value
Station number, commands, and type of command are the same as in computer request format.
BCC : When command is one of lower case(w), 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.
Header
Station No.
ACK
H10
06
3130
Command
Command type(##)
W(w)
H02(H17)
57(77)
3032(3137)
7-65
Tail
Frame check
ETX
BCC
03

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents