
Chapter 7 XGT Dedicated Communication
7-11
7.2.5 Writing the direct variable continuously (W(w)SB)
This function is used to write the data of the device continuously as long as specified from the specified address.
(1)
Example of request frame that XGT client requests writing direct variable continuously.
Classification Head Station
no. Instruction
Instruction
type
Variable
Length
Variable
Name
No. of data
Data
Tail
Frame
Check
Frame
ENQ
10
W(w)
SB
06
%MW100
02
11112222 EOT
BCC
Hex
h05 h3130 h57(77) h5342 h3036
h254D5731303
0
h3034
h31313131
32323232
h04
(2)
Example of XGT server response
(a) In case of ACK response
Classification
Head
Station no.
Instruction
Instruction type
Tail
Frame Check
Frame
ACK
10
W(w)
SB
ETX
BCC
Hex
h06
h3130
h57(77)
h5342
h03
(b) In case of NAK response
Classification
Head Station
no.
Instruction
Instruction type
Error code
(Hex 2 byte)
Tail
Frame Check
Frame
ENQ
10
W(w)
SB
1132
ETX
BCC
Hex
h05
h3130
h57(77)
h5342
h31313332
h03
(3)
Meaning of each item
Classification
Description
Variable name
Start address of device to execute writing the direct variable continuously
No. of data
Number of data according to direct variable type
Namely, if data type is word and no. of data is 5, it means to write 5 words.
Max. no. of data is 120 byte in case of XEX, 240 byte in case of ASCII conversion.
(4) Example
Example that writes 2 bytes hAA15 at the D00001 of station number 1
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 ...