Interrupt From Another Cpu - Mitsubishi Electric MELSEC Q Series User Manual

Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

14.2

Interrupt from Another CPU

An interrupt from another CPU (programmable controller CPU or C Controller module) can restart the user program
that is waiting for an interrupt event by the bus interface function (QBF_WaitEvent).
Described below is the procedure to restart the user program that is waiting for an interrupt event.
1) In the user program, call the bus interface function (QBF_WaitEvent).
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)
• Sequence program of a programmable controller CPU (another CPU)
(S.GINT or D.GINT instruction)
4) The user program is restarted by 3).
(1) Functions
The following shows the functions used for interrupt from another CPU.
Function name
QBF_WaitEvent
274
Programmable controller CPU
(sequence program)
(for S.GINT instruction)
[S.GINT H3E1 KO]
C Controller module
(user program)
User program
1) QBF_WaitEvent
executing
function executing
2) User program
interrupt event
waiting status
4) User program
restarting
Waits for an interrupt event notified in the event of any interrupt from another CPU.
Q24DHC-V
Q24DHC-VG
C Controller module
(user program)
User program
executing
1) QBF_WaitEvent
function
executing
2) User program
interrupt event
waiting status
4) User program
3) S.GINT instruction
restarting
execution
C Controller module
(user program)
/*Issue an interrupt*/
ret=QBF_GINT( ) ;
3) QBF_GINT
function
executing
Function
Q24DHC-LS
Q26DHC-LS
Q12DC-V

Advertisement

Table of Contents
loading

Table of Contents