306
(d) RECVS instruction setting
The following table lists values set in RECVS instruction control data.
(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.
Device Item Set value
(S1)+0 D370 Execution/abnormal end type 0
(S1)+1 D371 Completion status
(The system sets this item.)
(S1)+2 D372 Own station's channel 2
(S1)+3 D373 Send station's channel
(The system sets these items.)
(S1)+4 D374 Send station's network No.
(S1)+5 D375 Send station number
(S1)+6 D376 (Unused) 0
(S1)+7 D377 (Unused) 0
(S1)+8 D378 (Unused) 0
(S1)+9 D379 Received data length
(The system sets this item.)
Control data setting for
RECVS instruction
Execution of
RECVS instruction
Main routine program
Processing program upon read completion