
Chapter 10 Program Examples
10-20
Sequence
Procedure
Setting method
6
Setting of writing
operation (2)
▶
Write 4 words from D0 of client to M2~M5 of server
1. Ch., P2P function, conditional flag, destination station no.: same with step 4
2. Command type, Data type: because of writing continuous 4words, select Continuous, WORD
3. Data size: because of 4 words, input 4
4. Setting: after setting Read area and Save area, click OK.
(1) Read area: device address saved in the client (D0)
(2) Save area: deice address of server to save (0x40002 : M2)
7
Setting of writing
operation (3)
▶
Write 15
th
bit of M2 to 2
nd
bit of M20 of server
1. Ch., P2P function, conditional flag, destination station no.: same with step 5
2. Data type: select bit
3. Setting: after setting Read area and Save area, click OK.
(1) Read area: device address saved in the client (M1.F : 15
th
bit of M1)
(2) Save area: deice address of server to save (0x00142: 2
nd
bit of M20)
* When inputting M1.F, it is converted into M0001F in the XG5000.
* Device address of server is Hex value.
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 ...