
Chapter 7 Communication function
7-50
1
Reading of named variables(R##)
This is a function to read 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 command type of non-array
Format
Name
Header
Station
No.
Command
Command
type
[Note]
Number
of blocks
Variable
length
Variable name
Tail
Frame
check
Frame(Ex)
ENQ
H10 R(r) H02 H01 H08 OUTPUT_1
EOT
BCC
ASCII
value
H05 H3130 H52(72) H3032 H3031 H3038
H4F5554505554
5F31
Repeated
block
H04
1 block(Setting can be repeated up to max. 4 blocks)
B) For array type (for 1 block only)
Format
Name
Header
Station
No.
Command
Command
type
[Note 1]
Number
of blocks
Variable
length
Variable name
Number of
elements
Tail
Frame
check
Frame (Ex)
ENQ
H10
R(r)
H17
H01
H0A
OUTPUT_ARR
H0A EOT
BCC
ASCII
value
H05 H3130 H52(72) H3137 H3031 H3041
H4F55545055
545F415252
H3041 H04
Remark
[Note 1] Data type of variable to be read is specified in command type. For the details, see [Table 7.13] and [Table
7.14].
9
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 ENQ to EOT is converted into ASCII and added to BCC.