13
COMMUNICATIONS BETWEEN CPU MODULES
13.2 Interrupt from Another CPU
13 - 5
9
DEVICE DESCRIPTION
10
MULTIPLE CPU SYSTEM
OVERVIEW
11
MULTIPLE CPU SYSTEM
CONFIGURATION
12
CONCEPT OF MULTIPLE
CPU SYSTEM
13
COMMUNICATIONS
BETWEEN CPU
MODULES
14
PARAMETERS ADDED
FOR MULTIPLE CPU
SYSTEMS
15
STARTING A MULTIPLE
CPU SYSTEM
16
TROUBLESHOOTING
(b) How to resume the user program
This section explains how to resume the user program that is waiting for an
interrupt event by the QBF_WaitEvent function.
1) In the user program, call the QBF_WaitEvent function.
2) By 1), the user program is placed into the interrupt event waiting status.
3) In the above 2) status, execute either of the following.
• User program of the other C Controller module (another CPU) (QBF_GINT
function)
• Sequence program of a programmable controller CPU (another CPU)
(S.GINT or D.GINT instruction)
4) The user program is restored from the event waiting status.
1) For the bus interface functions, refer to the following.
C Controller Module User's Manual (Utility Operation, Programming)
2) The QBF_GINT function can issue an interrupt to a Motion CPU.
( Page
13-44, Section 13.6)
Figure 13.3 Interrupt by the event notification function
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)