14 - 3
14.2 Event Notification
14
COMMUNICATIONS BETWEEN CPU MODULES
14.2 Event Notification
(1) Event notification
This function issues an interrupt event notification to a user program waiting for an
interrupt event in the C Controller module to resume the user program.
An interrupt event is issued by either of the following.
• User program of the C Controller module
• Sequence program of the programmable controller CPU
Use the bus interface functions to create the user program of the C Controller module.
(2) Event notification processing
1) The user program calls the QBF_WaitEvent function.
2) Step 1) places the user program in an interrupt event waiting status.
3) Either of the following is executed in the status 2).
• User program (QBF_GINT function) of the C Controller module (another
CPU)
• Sequence program (S.GINT instruction) of the programmable controller CPU
4) Step 3) restores the user program from the interrupt event waiting status.
Figure 14.2 Interrupt by Event notification
S.GINT H3E1 K0
User program
in execution
2) User program in
interrupt event
waiting status
4) User program
resumed
1) QBF_WaitEvent
function executed
3) S.GINT
instruction
executed
C Controller module
(Another CPU)
(User program)
3) QBF_GINT
function
executed
/* Issues an interrupt */
ret = QBF_GINT(path,
sCpuNo, sEventNo);
Programmable
controller CPU
(Sequence program)
C Controller module
(User program)