Program Example - 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.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.
Setting item
Interrupt settings
CH1
■Program example
Category
Label name
Module label
C24_1.stnCH1.bSet_Req_ReceptionRead_D
C24_1.stnCH1.bSts_ReceptionAbnormalDetection_D
C24_1.stnCH1.uSet_ReceiveInterruptIssued_D
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.
Interrupt factor
Interrupt pointer
8 RECEIVING DATA WITH AN INTERRUPT PROGRAM
Setting content
BUFRCVS instruction data reception
I50
Description
CH1 Reception data read request
CH1 Reception abnormal detection
CH1_Receive interrupt-issued designation
8.4 Program Example
Device
DX3
DX4
U0\G8208
8
221

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents