(c) RIWT instruction settings
Control data settings for the RIWT instruction are shown below.
(S1)+0
(S1)+1
(S1)+2
(S1)+3
(S1)+4
(d) Program example
The following example program is written to the CPU module of station No.2.
496
Device
D420
Completion status
D421
Target station No.
D422
Access code/Attribute code
D423
Device No.
D424
Number of points to write
Item
(Set by the system, no setting required)
3
0405
1100
4
Processing program for write completion
Processing program for normal completion
Processing program for error completion
Set value
—
(Data register (D))
H
Control data
setting for
RIWT instruction
Stores write data
in D850 to D853.
Execution of
RIWT instruction
Error code
reading, etc.