
Chapter 7 Communication function
7-64
1
Writing of named variables (W##)
This is a function to write data by using the name registered by registering variable name in access variable of
PLC program. Refer to technical spec. of GLOFA GMWIN for the registration of variables.
1)
Request format(PC -> PLC)
A) For data type of non-array
Format
Name
Header
Station
No.
Command
Command
type
[Note]
Number
of
blocks
Variable
length
Variable
name
data
Tail
Frame
check
frame(Ex) ENQ H10
W(w)
H02
H01 H08
OUTPU
T_1
H0002 EOT
BCC
ASCII
value
H05 H3130 H57(77) H3032 H3031 H3038
H4F555
450555
45F31
H30303241
Repeated
block
H04
1 block(Setting can be repeated up to max. 4 blocks)
B) For data type of array (for 1 block only)
Format
Name
Header
Station
No.
Command
Command
type
[Note]
Number of
blocks
Variable
length
Variable
name
Number
of
elements
Data
Tail
Frame
check
Frame(Ex)
ENQ H10 W(w)
H17
H01
H0A
OUTPUT
_ARR
H05
H11223344556
6778899AA
EOT
BCC
ASCII
value
H05 H3130
H57
(77)
H3137 H3031 H3041
H4F5554
5055545F
415252
H3035
H3131323233
33343435353
63637373838
39394141
H04
1 block(for 1 block only)
Remark
[Note 1] Data type of variable to be written is specified in command type. For the details, see [Table 7.13] and
[Table 7.14].