
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
Содержание XGL-C22A
Страница 74: ...Chapter 6 Communication Parameter 6 22 4 Click I O Sync 6 Read the message If there is no problem click OK ...
Страница 172: ...Chapter 8 Modbus Communication 8 23 ...
Страница 246: ...Chapter 10 Program Examples 10 40 XG 5000 program Sequence Program 1 2 3 4 ...
Страница 247: ...Chapter 10 Program Examples 10 41 Sequence Program 5 6 ...
Страница 289: ...Appendix A 23 Sub procedure module When port open event occurs perform the next module ...
Страница 291: ...Appendix A 25 The lower code shows BCC check setting ...
Страница 296: ...Appendix A 30 4 Example Register monitor X 5 Example execution monitor Y Address of server Monitor result ...
Страница 297: ...Appendix A 31 A 4 Dimension Unit mm XGL C22A CH2A C42A H W version Less than V2 0 H W version V2 0 or Later ...