(d) RECVS instruction setting
The following table lists values set in RECVS instruction control data.
(S1)+0
(S1)+1
(S1)+2
(S1)+3
(S1)+4
(S1)+5
(S1)+6
(S1)+7
(S1)+8
(S1)+9
(e) Program example
Write the following program to the CPU module of station No.2.
When executing an interrupt program, it is necessary to execute "EI" (enable interrupt) in the main routine program.
306
Device
D370
Execution/abnormal end type
D371
Completion status
D372
Own station's channel
D373
Send station's channel
D374
Send station's network No.
D375
Send station number
D376
(Unused)
D377
(Unused)
D378
(Unused)
D379
Received data length
Main routine program
Item
0
(The system sets this item.)
2
(The system sets these items.)
0
0
0
(The system sets this item.)
Processing program upon read completion
Set value
Control data setting for
RECVS instruction
Execution of
RECVS instruction