Specifications
App - 82
(3) Program examples
(a) Program for station number 3
When actually using the following program, interlock the program by referring
to Appendix 9.1.1.
Control data setting command
With arrival confirmation/clock data setting
Channel used by the host
Target station storage channel
Arrival monitoring time (20 s)
Transmission data setting command
Read error code
Transmission command
Transmission data
Transmission data length (4 words)
Number of resends
Target station number
Target station network number
Processing program at transmission completion
Processing program at normal completion
Processing program at abnormal completion
(b) Program for station number 15
When actually using the following program, interlock the program by referring
to Appendix 9.1.1.
Always on
Enable interrupt
Completion of the main program
Main program
4 words will be stored to D1000 to D1003
from channel 5 of the network module
(network No.7)
Host's storage channel number for reception
confirmation
Interrupt program
REMARK
(1) The link special relays (SB00A0 to SB00A7) used for the RECV request that
correspond to the channel numbers during data receiving are not set.
(2) When the sequence program executes at high speed, the scan time may take
longer because the execution time of the interrupt program affects the
performance of the interrupt program.
(3) When multiple interrupts occur at the same time, the operation delay may occur.
(4) This function cannot be used during offline or online testing.
POINT
Since the RECVS instruction starts the interrupt program according to the parameter
settings, it is necessary to execute "EI" (Enable Interrupt) with the main program. If
the enable interrupt has not been executed at the data receiving, the status of
"channel being used" is maintained.