EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-RJ71C24-R4 - Reception Control Method Using an Interrupt Program

Mitsubishi Electric MELSEC iQ-RJ71C24-R4
574 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
220
8 RECEIVING DATA WITH AN INTERRUPT PROGRAM
8.3 Reception Control Method Using an Interrupt Program
8.3 Reception Control Method Using an Interrupt
Program
The following explains the reception control method when receiving data with an interrupt program during communication
using the nonprocedural protocol or bidirectional protocol.
When data is received from the target device, the receive data is stored in the buffer memory and the 'CH1 reception data
read request' signal turns ON.
The main program stops executing and the interrupt program starts.
The data reception dedicated instruction, BUFRCVS, for the interrupt program is executed and data is received.
*1
When the execution of the BUFRCVS instruction is complete, the 'CH1 reception data read request' signal turns OFF.
The execution of the interrupt program is completed, and execution of the main program restarts.
*1 When the reading of received data using the BUFRCVS instruction is finished, the following processes are performed.
At normal completion
CPU module error flag (SM0) turns OFF.
At abnormal completion
CPU module error flag (SM0) turns ON.
The error code is stored in the CPU module error code (SD0).
For more details on the error flag (SM0) and error codes (SD0) of the CPU module, refer to the following manual.
MELSEC iQ-R CPU Module User's Manual (Application)
FEND
SM400
I50
Z.BUFRCVS "U0" K1 D200
IRET
X3
X4
Ò
Ó
Ô
Õ
Ö
<Data reception using the dedicated instruction,
BUFRCVS instruction (interrupt program)>
Control data
[D200]: Word count for stored receive data
[D201]: Receive data
Main program execution
Interrupt program execution
BUFRCVS instruction
Reception data read
request signal
Reception abnormal
detection signal
Buffer memory
reception area
Reception using bidirectional
protocol
Data reception
Responsetransmission

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R4

Related product manuals