9
- 102
9.10 JP/GP.RECV
9
DEDICATED INSTRUCTIONS
(c) RECV instruction settings
Control data settings for the RECV instruction are shown below.
(d) Program example
The following example program is written to the CPU module of station No.2.
Table 9.58 RECV instruction settings
Device
Item
Set value
(S1)+0
D370
Error completion type
0080
H
(Clock data at the time of error
completion is set.)
(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
D378
Arrival monitoring time
0 (10 seconds)
(S1)+9
D379
Receive data length
—
(Set by the system, no setting required)
(S1)+10
D380
(Unused)
0
(S1)+11
D381
Clock set flag
—
(Set by the system, no setting required)
(S1)+12 to
(S1)+15
D382 to D385
Clock data on error completion
(S1)+16
D386
Error-detected network No.
(S1)+17
D387
Error-detected station No.
Figure 9.81 Program example
Control data setting
for RECV instruction
Execution of RECV
instruction
Error code reading,
etc.
Processing program for read completion
Processing program for normal completion
Processing program for error completion
When data are stored in a channel of the own station, the corresponding RECV execution
request flag (SB0030 to SB0037) turns ON.
Using the flag as a start contact, execute the RECV instruction.
Upon completion of the RECV instruction, the flag turns OFF.
Содержание QJ71GP21-SX
Страница 1: ......
Страница 2: ......
Страница 644: ...App 94 Appendix 6 External Dimensions Appendix 6 2 QJ71GP21S SX APPENDICES Memo ...
Страница 649: ......
Страница 650: ......