Chapter 8 Receiving Data With An Interrupt Program; Settings For Receiving Data Using An Interrupt Program; Interrupt Program Startup Timing - Mitsubishi Electric MELSEC iQ-R Series User Manual

Serial communication module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

8
RECEIVING DATA WITH AN INTERRUPT
PROGRAM
In data communications between C24 and a target device, an interrupt program can be used to receive data for the following
data communication functions.
• Data reception during communication using the nonprocedural protocol
• Data reception during communication using the bidirectional protocol
This chapter explains data reception with the following data communication function by an interrupt program.
Target device
C24
Main program
CPU module
Receiving data with an interrupt program expedites the process of retrieving received data to the CPU
module.
8.1
Settings for Receiving Data Using an Interrupt
Program
The following explains the settings for performing data reception with an interrupt program during communication using the
nonprocedural protocol or bidirectional protocol.
For setting for data reception with an interrupt program, set "Interrupt factor" to "BUFRCVS instruction data reception", and set
the interrupt pointer to be used in the program to "Interrupt pointer".
Navigation window  [Parameter]  [Module Information]  Module Name  [Module Parameter] "Interrupt Settings"
8.2

Interrupt Program Startup Timing

The following explains the startup timing for interrupt program when performing data reception with an interrupt program
during communication using the nonprocedural protocol or bidirectional protocol.
• The startup timing is the same for communication using either the nonprocedural protocol or bidirectional protocol.
• Received data from the target device is stored in the receive area of the buffer memory. When the next input signal rises,
the interrupt program is started.
Input signal name
CHn reception data read request signal
CHn reception abnormal detection signal
Data transmission
Interrupt-
Receive
issued
Interrupt program
execution
CH1 side
X3
X4
Main program
FEND
SM400
BUFRCVS
CH2 side
XA
XB
8 RECEIVING DATA WITH AN INTERRUPT PROGRAM

8.1 Settings for Receiving Data Using an Interrupt Program

8
219

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents