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

Hart-enabled analog-digital converter module
Hide thumbs Also See for Melsec iQ-R Series:
Table of Contents

Advertisement

1.10

Interrupt Function

This function executes interrupt programs of the CPU module when an interrupt factor such as a warning output or an input
signal error is detected.
For the A/D converter module, the maximum number of available interrupt pointers is 16 per module.
Operation
■Detecting an interrupt factor
An interrupt factor can be detected by setting "Interrupt setting" of the module parameter and by setting 'Interrupt factor mask
[n]' (Un\G124 to Un\G139) 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\G4 to Un\G19) is turned to Interrupt
factor (1).
■How to reset an interrupt factor
When Reset request (1) is set in 'Interrupt factor reset request [n]' (Un\G156 to Un\G171) corresponding to the interrupt factor,
the specified interrupt factor is reset and the value of 'Interrupt factor detection flag [n]' (Un\G4 to Un\G19) changes to No
interrupt factor (0).
Setting method
To use the interrupt function, set "Condition target setting", "Condition target channel setting", "Interrupt factor transaction
setting", and "Interrupt 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 transaction setting
Interrupt pointer
■Condition target setting
Select a factor of the condition target setting for the interrupt detection.
Setting value
Disable
Error flag
Warning output flag (Process alarm)
Warning output flag (Rate alarm)
Input signal error detection flag
A/D conversion completed
■Condition target channel setting
Select a target channel when the condition target setting for the interrupt detection is channel specification.
■Interrupt factor transaction setting
Set whether to send an interrupt request when the same interrupt factor occurs during the interrupt factor detection.
• When "Interrupt reissue requests" 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 reissue requests" 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.
■Interrupt pointer
Specify 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
Select a factor of the target for the interrupt detection.
Select a target channel when the condition target setting for the interrupt detection is channel specification.
Set whether to send an interrupt request when the same interrupt factor occurs during the interrupt factor
detection.
Specify 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 at the timing of when 'Error flag' (XF) turns on.
An interrupt is detected at the timing of when Warning output flag (Process alarm) turns on (A channel is
specified.).
An interrupt is detected at the timing of when Warning output flag (Rate alarm) turns on (A channel is specified.).
An interrupt is detected at the timing of when Input signal error detection flag turns on (A channel is specified.).
An interrupt is detected every time A/D conversion is completed (A channel is specified.).
1 FUNCTIONS
45
1.10 Interrupt Function
1

Advertisement

Table of Contents
loading

Table of Contents