349
CHAPTER 10 DEDICATED INSTRUCTIONS
10
10.
15 JP/
G
P
.R
IRD (Reading Dat
a
fr
om t
he T
a
rget
S
tat
io
n
)
(5) Program example
The following program is for sending data of D1000 to D1004 of station No.4 (target station) to D800 to D804 of
station No.0 (own station) when M200 is turned on.
(a) System configuration
(b) Devices used in the program
• Link special relay (SB), link special register (SW)
Remark
For details on the 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) RIRD instruction setting
The following table lists values set in RIRD instruction control data.
Device
Description
Device
Description
SB0047
Baton pass status (own station)
SW00A0.3
Baton pass status (each station) of station
No.4
Device
Description
Device
Description
M200
Start contact
D400 to
D404
Control data
M201
RIRD instruction execution flag
D800 to
D804
Read data storage device (station No.0)
M205
Completion device
M206
Completion status indication device
Device
Item
Set value
(S)+0
D400
Completion status
(The system sets this item.)
(S)+1
D401
Target station number
4
(S)+2
D402
Access code/attribute code
0405
H
(data register (D))
(S)+3
D403
Device number
1000
(S)+4
D404
Number of read points
5
D800
D801
D802
D803
D804
D1000
D1001
D1002
D1003
D1004
Network No.1
Station No.0
Station No.4
CPU module
Master/
local
module
CPU module
Master/
local
module
RIRD request
source
(Own station)
RIRD request
target
(Target station)
Receive
buffer