LG GLOFA-GM Series User Manual page 177

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

Advertisement

Chapter 7 Communication function
1 Individual writing of direct variables (WSS)
This is a function to write PLC device memory directly specified in accord with memory data type.
Separate device memories can be written up to 4 at a time.
1) Request format(PC -> PLC)
Format
Header
Name
frame(Ex)
ENQ
ASCII
H05
value
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 '[Variable length][Variable name]' 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(name length of direct variable) : This indicates the number of name's characters that means
direct variable, 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).
Direct variable : Input address of variable to be read actually in ASCII value within 16 characters. Others
than figure, upper/lower cases, '%' and '.' are not allowed for variable name.
Data : If the value to be written in %MW100 area is H A, the data format must be H000A. If the value to be
written in %MD100 area is H A, the data format must be H0000000A. In data area, ASCII value converted
from HEX data is entered.
Direct variables available according to PLC type are as follows.
Type
GM1/2
%MX,%QX,%IX
GM3
%MX,%QX,%IX
GM4
%MX,%QX,%IX
GM6
%MX,%QX,%IX
GM7
%MX,%QX,%IX
Station
Command
Command
No.
type
H20
W(w)
SS
H3230
H57(77)
H5353
1block(Setting can be repeated up to 4 blocks)
BOOL
Byte
%MB,%QB,%IB
%MB,%QB,%IB
%MB,%QB,%IB
%MB,%QB,%IB
%MB,%QB,%IB
Number
Variable
Variable
of
length
name
blocks
%MW10
H01
H06
H254D5
H3031
H3036
731303
WORD
%MW,%QW,%IW
%MW,%QW,%IW
%MW,%QW,%IW
%MW,%QW,%IW
%MW,%QW,%IW
7-58
Data
Tail
Repe
H00E2
EOT
ated
0
block
H30304
H04
532
0
Double WORD
Long WORD
%MD,%QD,%ID
%ML,%QL,%IL
%MD,%QD,%ID
%MD,%QD,%ID
%MD,%QD,%ID
%MD,%QD,%ID
Frame
check
BCC
-
-
-
-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents