
Chapter 7 XGT Dedicated Communication
7-8
7.2.4 Reading single direct variable (R(r)SS)
▷
This function is used to directly specify and read the PLC device applicably to its data type.
▷
Up to 16 separate devices memory can be read at a time.
(1) Example that XGT client requests reading single direct variable
Classification
Head
Station no. Instruction Instruction
type
No. of
blocks
Variable
Length
Variable
Name
ㆍㆍㆍ
Tail
Frame Check
Frame
ENQ
20
R(r)
SS
01
06
%MW100
ㆍㆍㆍ
EOT
BCC
Hex
h05
h3230
h52(72)
h5353
h3031
h3036
h254D5731303
0
ㆍㆍㆍ
h04
(2)
Example of response frame of XGT server
(a) In case of ACK response
Classification
Head
Station no. Instruction Instruction
type
No. of
blocks
No. of
data
Data
.....
Tail
Frame
Check
Frame
ACK
20
R(r)
SS
01
02
A9F3
ETX
BCC
Hex
h06
h3230
h52(72)
h5353
h3031
h3032
h41394633
h03
(b) In case of NAK response
Classification
Head
Station no.
Instruction
Instruction type
Error code
(2 byte)
Tail
Frame Check
Frame
NAK
20
R(r)
SS
1132
ETX
BCC
Hex
h15
h3230
h52(72)
h5353
h31313332
h03
-
(3) Meaning of each item
Classification
Description
Number of
Blocks
▶
Specify the number of blocks composed of ‘[Variable Length][Variable Name]’
-Max. setting range : 16 blocks
-Setting range : H01(ASCII value:3031) ~ H10(ASCII value:3130)
Variable Length
▶
Number of letters of Variable Name
-Max. setting range : 16
-Setting range : H01(ASCII value:3031) ~ H10(ASCII value:3130)
Ex.) If Variable Name is %MW0 whose letters are 4, its Variable Length is H04.
If Variable Name is %MW000 whose letters are 6, its Variable Length is H06.
Variable Name
▶
Read device’s address
-Setting range : within 12 letters available to input
-Caution: Others than figure, capital/small letter and ‘%’ are not allowed.
Up to 16 blocks available repeatedly
1 block
Up to 16 blocks available repeatedly
1 block
Summary of Contents for XGL-C22A
Page 172: ...Chapter 8 Modbus Communication 8 23 ...
Page 246: ...Chapter 10 Program Examples 10 40 XG 5000 program Sequence Program 1 2 3 4 ...
Page 247: ...Chapter 10 Program Examples 10 41 Sequence Program 5 6 ...
Page 289: ...Appendix A 23 Sub procedure module When port open event occurs perform the next module ...
Page 291: ...Appendix A 25 The lower code shows BCC check setting ...