4 BASIC FUNCTIONS
4.5 Interrupt Function to C Controller Module
47
4
Interrupt procedure
Executing interrupt routines
1.
By using the C Controller module dedicated function (CCPU_EntryInt), register a routine (user program) to be called as
an interrupt routine (interrupt program) when an interrupt is requested.
2.
Enable the registered interrupt routine (interrupt program) by using the C Controller module dedicated function
(CCPU_EnableInt). If it is disabled, the interrupt routine (interrupt program) will not be executed.
3.
When an interrupt request is issued from the module, the interrupt routine (interrupt program) is executed.
When an interrupt request is issued to the routine disabled with the C Controller module dedicated function
(CCPU_DisableInt), the interrupt request is ignored.
C Controller Module
(User program)
1. Execute the CCPU_EntryInt function.
2. Execute the CCPU_EnableInt function.
Interrupt routine (interrupt program)
registration table
Interrupt routine (interrupt program) 1
Interrupt routine (interrupt program) 2
(Empty)
Execute an interrupt routine (interrupt program).
3. Issue an interrupt.
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: ......