Interrupt Function To A C Intelligent Function Module - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

Interrupt function to a C intelligent function module

When the output signal (Y) of the C intelligent function module is ON, the routine (user program) registered with the C
intelligent function module dedicated function (CITL_EntryYInt) can be executed as an interrupt routine (interrupt program).
A user program in a state of waiting for an output signal (Y) interrupt event notification can be restarted by using the C
intelligent function module dedicated function (CITL_WaitYEvent).
Function list
The following table shows the functions used for interrupting a C intelligent function module.
Function name
CITL_DisableYInt
CITL_DisableYInt_ISR
CITL_EnableYInt
CITL_EnableYInt_ISR
CITL_EntryYInt
CITL_WaitYEvent
Interrupt procedure
Executing interrupt routines
CPU module
Sequence program
1.
By using the C intelligent function module dedicated function (CITL_EntryYInt), register a routine (user program) to be
called as an interrupt routine (interrupt program) when an output signal (Y) of a C intelligent function module turns ON.
2.
Enable the registered interrupt routine (interrupt program) by using the C intelligent function module dedicated function
(CITL_EnableYInt). If it is disabled, the interrupt routine (interrupt program) will not be executed.
3.
When the output signal (Y) of a C intelligent function module turns ON, the interrupt routine (interrupt program) is
executed.
When an interrupt request is issued to the routine disabled with the C intelligent function module dedicated
function (CITL_DisableYInt), the interrupt request is ignored.
Description
To disable the routine registered with the CITL_EntryYInt function.
To enable the routine registered with the CITL_EntryYInt function.
To register a routine to be called when an output signal (Y) interrupt occurs.
To wait for the output signal (Y) interrupt event notification.
C intelligent function module
1. Execute the CITL_EntryY-
2. Execute the CITL_EnableY-
Enable a
routine.
User Interrupt Processing Table
3. Output signal (Y) is
turned ON.
User program
Int function
Register a
Int function
Interrupt routine 1
(Interrupt program)
Interrupt routine 2
(Interrupt program)
(Empty)
(Empty)
routine.
1 FUNCTION
1.1 Program Related Function
1
19

Advertisement

Table of Contents
loading

Table of Contents