(5) Program example (Writing clock data)
The following program is for writing clock data (8:30:00) in all stations of network No.1 when M141 is turned on.
• System configuration
REQ
CPU module
request
source
(Own station)
REQ
REQ
CPU module
request
target
(Target station)
Clock
data write
(8:30:00)
(a) Devices used in the program
• Link special relays (SBs)
Device
SB0047
Remark
For details on the link special relay (SB), refer to the following.
Page 473, Appendix 3
• Devices used by users
Device
M140
M141
M145
M146
330
Station No.0
Master/local
module
Channel 2
Master/local
module
Station No.1
Description
Baton pass status (own station)
Description
Control data,
request data setting command
Start contact
Completion device
Completion status indication device
REQ
CPU module
request
target
(Target station)
Clock
data write
(8:30:00)
Network No.1
REQ
CPU module
request
target
(Target station)
Clock
data write
(8:30:00)
Device
SB00A0
Baton pass status (each station)
Device
D310 to
Control data
D327
D330 to
Request data
D335
D340 to
Response data
D341
Station No.2
Master/local
module
Master/local
module
Station No.3
Description
Description