342
(4) Program example
The following program is for writing data of D850 to D949 of station No.0 (own station) into buffer memory
(address: 0 to 99) of station No.2 (target station) when M115 is turned on.
(a) System configuration
(b) Devices used in the program
• Link special relay (SB), link special register (SW)
Remark
For details on link special relay (SB) and link special register (SW), refer to the following:
Page 473, Appendix 3, Page 493, Appendix 4
• Devices used by users
(c) Program example
Write the following program to the CPU module of station No.0.
Device
Description
Device
Description
SB0047
Baton pass status (own station)
SW00A0.1
Baton pass status (each station) of station
No. 2
Device
Description
Device
Description
M115
Start contact
M117
Completion status indication device
M116
Completion device
D850 to
D949
Write data storage device
CPU module
REMTO
request source
(Own station)
REMTO
request target
(Target station)
D850
D949
Master/local
module
Channel 4
Head module
Intelligent function module
Network No.1
Buffer memory
Station No.0
Station No.2
Start I/O number
0020
H
0(0
H
)
99(63
H
)
Processing program upon failure
Processing program upon completion
Execution of
REMTO instruction