8 RECEIVING DATA WITH AN INTERRUPT PROGRAM
8.4 Program Example
221
8
8.4 Program Example
This section shows programming examples for data reception with an interrupt program in data communications using the
nonprocedural protocol or bidirectional protocol.
Program example for data reception
The following shows a program example for data reception with an interrupt program in data communication using the
nonprocedural protocol.
■Parameter list
The following shows the parameters for this program.
■Program example
Setting item Setting content
Interrupt settings CH1 Interrupt factor BUFRCVS instruction data reception
Interrupt pointer I50
Category Label name Description Device
Module label C24_1.stnCH1.bSet_Req_ReceptionRead_D CH1 Reception data read request DX3
C24_1.stnCH1.bSts_ReceptionAbnormalDetection_D CH1 Reception abnormal detection DX4
C24_1.stnCH1.uSet_ReceiveInterruptIssued_D CH1_Receive interrupt-issued designation U0\G8208
Label to be defined Define the global label as shown below.
(0) For the CH1 side, designate the receive interrupt-issued designation.
(15) Receive the data.