9
- 108
9.11 Z.RECVS
9
DEDICATED INSTRUCTIONS
(d) RECVS instruction settings
Control data settings for the RECVS instruction are shown below.
(e) Program example
The following example program is written to the CPU module of station No.2.
POINT
To execute an interrupt program, "EI" (Enable Interrupt) must be executed in the
main program.
Table 9.64 RECVS instruction settings
Device
Item
Set value
(S1)+0
D370
Execution/Error completion
type
0
(S1)+1
D371
Completion status
—
(Set by the system, no setting required)
(S1)+2
D372
Own station channel
5
(S1)+3
D373
Channel used by sending
station
—
(Set by the system, no setting required)
(S1)+4
D374
Network No. of sending station
(S1)+5
D375
Sending station No.
(S1)+6
D376
(Unused)
0
(S1)+7
D377
(Unused)
0
(S1)+8
D377
(Unused)
0
(S1)+9
D379
Receive data length
—
(Set by the system, no setting required)
Figure 9.89 Program example
Control data setting
for RECVS instruction
Execution of RECVS
instruction
Main program
Processing program for read completion
Содержание QJ71GP21-SX
Страница 1: ......
Страница 2: ......
Страница 644: ...App 94 Appendix 6 External Dimensions Appendix 6 2 QJ71GP21S SX APPENDICES Memo ...
Страница 649: ......
Страница 650: ......