Considerations When Receiving Data With An Interrupt Program - 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.5
Considerations when Receiving Data with an
Interrupt Program
This section describes the considerations when receiving data with an interrupt program.
• Create an interrupt program for data reception for each interface.
• Do not use the INPUT and BIDIN instructions during execution of the interrupt program.
Always use the BUFRCVS instruction to receive data.
• Do not turn the 'CH reception data read completion' (Y1/Y8) ON/OFF during execution of the interrupt program since C24
turns OFF the 'CH reception data read request' (X3/XA) and the 'CH reception abnormal detection' (X4/XB) for data
reception with an interrupt program.
• Use always ON (SM400) or direct input signal (DX3, DX4) as the contact signal when executing the BUFRCVS instruction.
• After the power supply turns OFF  ON or the CPU module is reset, data cannot be received because the interrupt
program is invalid during the initial processing of the CPU module. For asynchronous data communication with C24 from
the target device without communication procedure setting, refer to the program example shown below.
Program example
The following shows an example of program for asynchronous data communications from the target device side to C24
without communication procedure settings on the target device side.
Category
Label name
Module label
C24_1
C24_1.stnCH1.bSet_Req_ReceptionRead
C24_1.stnCH1.bSts_ReceptionAbnormalDetection
C24_1.stnCH1.bSts_Error
C24_1.bSet_Req_ErrorInitialization
C24_1.stnCH1.uSet_ReceiveInterruptIssued_D
Label to be defined
Define the global label as shown below.
For information on the module FB to be used, refer to the following manual.
 MELSEC iQ-R Serial Communication Module Function Block Reference
Description
Target module
CH1 Reception data read request
CH1 Reception abnormal detection
CH1 Error occurrence
Error initialization request
CH1_Receive interrupt-issued designation
8 RECEIVING DATA WITH AN INTERRUPT PROGRAM

8.5 Considerations when Receiving Data with an Interrupt Program

Device
X3
X4
8
XE
YE
U0\G8208
223

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents