Mitsubishi Electric MELSEC iQ-R Series User Manual page 37

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

Advertisement

Setting example
Ex.
To execute an interrupt program (I50) when an overflow occurs on CH1
• Parameter settings
Set "Interrupt setting" of the module parameter as follows.
No.
Condition target setting
4
Overflow detection flag
• Label settings
Classification
Label name
Module label
RCPU.stSM.bAlways_ON
RCPU.stSM.bAfter_RUN1_Scan_ON
RD60P8G_1.unInterruptFactorMask_D[3].0
RD60P8G_1.unInterruptFactorResetRequest_D[3].0
Label to be defined
Define global labels as shown below.
(0) Only the interrupt pointer I50 is enabled.
(85)'Interrupt factor reset request [4]' (U0\G667) is turned on. The processing for CH1 overflow detection is performed.
Condition target
Interrupt factor
channel setting
generation setting
CH1
Interrupt resend request
Description
Always ON
Turning on for one scan after RUN
Interrupt factor mask
Interrupt factor reset request
Interruption pointer
I50
Device
SM400
SM402
U0\G635.0
U0\G667.0
1 FUNCTIONS
35
1.9 Interrupt Function
1

Advertisement

Table of Contents
loading

Table of Contents