Download  Print this page

Interrupt Function - Mitsubishi Electric MELSEC iQ-R Series User Manual

Hide thumbs

Advertisement

1.9

Interrupt Function

This function executes interrupt programs of the CPU module when an interrupt factor such as an error or warning output is
detected. For the pulse input module, the maximum number of available interrupt pointers is 16 per module.
Operation
■Interrupt factor detection
An interrupt factor can be detected by setting "Interrupt setting" of the module parameter and by setting 'Interrupt factor mask
[n]' (Un\G632 to Un\G647) to Mask clear (Interrupt used) (1) in advance. When an interrupt factor occurs, an interrupt request
is sent to the CPU module at the same time as 'Interrupt factor detection flag [n]' (Un\G600 to Un\G615) is changed to
Interrupt factor (1).
■How to reset an interrupt factor
When Reset request (1) is set in 'Interrupt factor reset request [n]' (Un\G664 to Un\G679) corresponding to the interrupt factor,
the specified interrupt factor is reset and the value of 'Interrupt factor detection flag [n]' (Un\G600 to Un\G615) changes to No
interrupt factor (0).
Setting method
To use the interrupt function, set "Condition target setting", "Condition target channel setting", "Interrupt factor generation
setting", and "Interruption pointer" with the engineering tool. After completing the settings, write the project to enable the
settings.
[Navigation window]  [Parameter]  [Module Information]  Module model name  [Interrupt setting]
Item
Condition target setting
Condition target channel setting
Interrupt factor generation setting
Interruption pointer
■Condition target setting
Select a factor of the condition target setting for the interrupt detection.
Setting value
Invalid
Error occurrence
Accumulating counter comparison flag
Overflow detection flag
Carry over detection flag
Warning output flag
■Condition target channel setting
This item selects the target channel. The I/O signal and buffer memory targeted by the interrupt factor are assigned separately
for each channel, so use this item to select the channel to target.
■Interrupt factor generation setting
This item sets whether to send an interrupt request when the same interrupt factor occurs during the interrupt factor detection.
• When "Interrupt resend request" has been set and the same interrupt factor occurs while the interrupt factor has been
detected, an interrupt request is sent to the CPU module again.
• When "No interrupt resend request" has been set and the same interrupt factor occurs while the interrupt factor has been
detected, an interrupt request is not sent to the CPU module.
■Interruption pointer
This item specifies the number of an interrupt pointer that is started when an interrupt factor is detected. For details on the
interrupt pointers, refer to the following.
 MELSEC iQ-R CPU Module User's Manual (Application)
Description
Selects the target factor for interrupt detection.
Selects the target channel for interrupt detection.
Sets whether to send an interrupt request when the same interrupt factor occurs during the interrupt factor
detection.
Specifies the number of an interrupt pointer that is started at the detection of an interrupt factor.
Description
No interrupt is detected.
An interrupt is detected on the rising edge of 'CH1 Error occurrence' (X8) turning on.
An interrupt is detected on the rising edge of 'CH1 Accumulating counter comparison flag' (X10) turning on.
An interrupt is detected on the rising edge of 'CH1 Overflow detection flag' (Un\G6) turning on.
An interrupt is detected on the rising edge of 'CH1 Carry over detection flag' (Un\G7) turning on.
An interrupt is detected on the rising edge of bit 0 or bit 8 of 'CH1 Warning output flag' (Un\G8) turning on.
1 FUNCTIONS
33
1.9 Interrupt Function
1

Advertisement

Table of Contents

Comments to this Manuals

Symbols: 0
Latest comments: