LG GLOFA-GM Series User Manual page 180

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

Advertisement

Chapter 7 Communication function
1 Continuous writing of direct variables (WSB)
This is a function to directly specify PLC device memory and continuously write data from specified address as long
as specified.
1)
Request format(PC -> PLC)
Format
Header
Name
Frame(Ex)
ENQ
ASCII
H05
value
Remark
[Note 1] Number of data specifies the number according to the type of direct variable. Namely, if data type of direct
variable is double word and the number of data is 5, it means that 5 double words shall be witten.
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 : The protocol of continuous writing function of direct variables has not [Number of blocks].
Name length of direct variable : This indicates that the number of name's characters that means direct
variable, 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).
Direct variable : It means address of variable to be read actually in ASCII value within 16 characters. Others
than figure, upper/lower cases, '%' and '.' are not allowed for this variable name. Variable type available for
continuous writing of direct variables is as follows according to PLC type.
Station
Command
Command
No.
type
H10
W(w)
SB
H3130
H57(77)
H5342
Variable
variable
Number of data
length
name
(Max.120Byte)
%MD10
H06
0
H254D4
H3036
431303
0
7-61
Data
Tail
H01
H11112222
EOT
H313131313
H3031
H04
2323232
Frame
check
BCC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents