
Chapter 7 XGT Dedicated Communication
7-13
7.2.6 Reading direct variable continuously (R(r)SB)
This function is used to read the data of PLC device continuously as many as specified from the address.
(1)
XGT client: Request frame to read continuous data
Classification Head
Station
no. Instruction Instruction type
Variable
Length
Variable
Name
No. of data
(Max. 240 byte)
Tail
Frame
Check
Frame
ENQ
10
R(r)
SB
06
%MW100
05
EOT
BCC
Hex
h05
h3130 h52(72)
h5342
h3036 h254D57313030
h3035
h04
(2)
XGT server: Response frame
(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
10
R(r)
SB
01
02
1122
ETX
BCC
Hex
h06
h3130
h52(72)
h5342
h3031
h3032
h31313232 h03
(b) In case of NAK response
Classification
Head Station no.
Instruction
Instruction
type
Error code
(Hex 2 byte)
Tail
Frame Check
Frame
NAK
10
R(r)
SB
1132
ETX
BCC
Hex
h15
h3130
h52(72)
h5342
h31313332
h03
(3)
Meaning of each item
Classification
Description
No. of data
▶
It means no. of byte of Hex type and it is converted into ASCII
▶
this number means number of byte.
Data type
Available direct variable
No. of data
Bit(X)
%(P,M,L,K,F,T,C,I,Q,W,R)X
1
Byte(B)
%(P,M,L,
,F,T,C,I,Q,W,R)B
1
Word(W)
%(P,M,L,K,F,T,C,I,Q,W,R)W
2
Dword(D)
%(P,M,L,K,F,T,C,I,Q,W,R)D
4
Lword(L)
%(P,M,L,K,F,T,C,I,Q,W,R)L
8
Data
▶
There is ASCII conversion value of Hex data in the data area.
▷
Ex.1
If memory type of direct variable of request format is W(word) and no. of data is 03, no. of
data of PLC ACK response is h06 (2*03=06) and it is converted into ASCII code 3036.
▷
Ex. 2
If contents of 3 words data is 1234, 5678, 9ABC in order, ASCII code conversion value is
31323334 35363738 39414243. In addition, this value is included in the data area.
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 ...