![Mitsubishi Electric MELSEC iQ-R C R12CCPU-V User Manual Download Page 48](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-r-c-r12ccpu-v/melsec-iq-r-c-r12ccpu-v_user-manual_239137048.webp)
46
4 BASIC FUNCTIONS
4.5 Interrupt Function to C Controller Module
4.5
Interrupt Function to C Controller Module
This function executes a routine (user program) registered by using the C Controller module dedicated function
(CCPU_EntryInt) as an interrupt routine (interrupt program) when an interrupt request is issued to a C Controller module from
an input module, interrupt module, intelligent function module, and another CPU module.
A user program in a state of waiting for an interrupt event notification from a module can be restarted by using the C Controller
module dedicated function (CCPU_WaitUnitEvent).
When executing an interrupt request, module parameters of each module need to be set.
For details on the setting, refer to the user's manual of each module.
Function list
The following table shows the functions used for interrupting a C Controller module.
Factor of interrupt pointer number
The following shows the interrupt factors for each interrupt pointer number.
Interrupt priority
The priority has been set to each interrupt pointer. If the priority of an interrupt program of which execution conditions have
been satisfied is higher than that of an interrupt program that is currently being executed, the program is executed in
accordance with the priority. If the priority of an interrupt of which execution conditions have been satisfied is lower, it will be in
a wait state until an interrupt program that is currently being executed is completed.
Function name
Description
CCPU_EntryInt
To register a routine to be called when an interrupt occurs.
CCPU_EnableInt
To enable the routine registered with the CCPU_EntryInt function.
CCPU_EnableInt_ISR
CCPU_DisableInt
To disable the routine registered with the CCPU_EntryInt function.
CCPU_DisableInt_ISR
CCPU_WaitUnitEvent
To wait for an interrupt event notification from a module.
Factor
Interrupt pointer number
Description
Interrupt from module
I0 to I15
A pointer used in the module which has an interrupt function.
Inter-module synchronous interrupt
I44
A fixed cycle interrupt pointer used for the inter-module synchronization
function.
Multiple CPU synchronous interrupt
I45
A fixed cycle interrupt pointer used for the multiple CPU synchronization
function.
Interrupt from module
I50 to I1023
A pointer used in the module which has an Interrupt function.
Interrupt priority
Interrupt pointer
Execution order at simultaneous
occurrence
High
3
Inter-module synchronous interrupt (I44), multiple CPU synchronous interrupt
(I45)
I45
→
I44
Low
8
Interrupt from module (I0 to I15, I50 to I1023)
I0
→
I1
→
I2
→
to
→
I1021
→
I1022
→
I1023
Summary of Contents for MELSEC iQ-R C R12CCPU-V
Page 1: ...MELSEC iQ R C Controller Module User s Manual Application R12CCPU V ...
Page 2: ......
Page 23: ...1 EXECUTING PROGRAMS 1 3 I O Access Timing 21 1 MEMO ...
Page 32: ...30 3 MEMORY CONFIGURATION OF C Controller Module 3 4 Files MEMO ...
Page 257: ...I 255 MEMO ...
Page 261: ......