48
4 BASIC FUNCTIONS
4.5 Interrupt Function to C Controller Module
Restarting user programs
1.
Execute the C Controller module dedicated function (CCPU_WaitUnitEvent) while executing a user program.
2.
The user program is placed into a state of waiting for an interrupt event notification from the module.
3.
When an interrupt request is issued, the user program restarts.
Precautions
The following shows the considerations when using C Controller module dedicated function (CCPU_WaitUnitEvent).
■
When an interrupt event has already been notified
When an interrupt event has already been notified at the time of executing the C Controller module dedicated function
(CCPU_WaitUnitEvent), a user program restarts from a state of waiting for an interrupt event at the same time as the
execution of the function.
In addition, when multiple interrupt events have been notified to the same interrupt event number at the time of executing the
C Controller module dedicated function (CCPU_WaitUnitEvent), a user program performs processing as a single interrupt
event notification.
■
When using the function in multiple user programs
Do not specify a same interrupt event (interrupt pointer number) in multiple user programs.
Otherwise, a user program to which a specified interrupt event (interrupt pointer number) is notified will be undefined.
C Controller Module
(User program)
1. Execute the CCPU_WaitUnitEvent function.
User program is being executed.
2. In an interrupt event wait state
Restart
Interrupt event notification
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: ......