![Mitsubishi Electric Q06CCPU-V Скачать руководство пользователя страница 402](http://html.mh-extra.com/html/mitsubishi-electric/q06ccpu-v/q06ccpu-v_user-manual_1811831402.webp)
13
- 4
13.2 Interrupt from Another CPU
13
COMMUNICATIONS BETWEEN CPU MODULES
(2) Processing outline
(a) How to execute interrupt routines (interrupt programs)
This section explains how to execute a routine registered by the
QBF_EntryCpuInt function as an interrupt routine (interrupt program).
1) With the QBF_EntryCpuInt function, register a routine that corresponds to an
interrupt from another CPU (programmable controller CPU or C Controller
module).
2) With the QBF_EnableCpuInt or QBF_EnableCpuInt_ISR function, enable the
routine registered in step 1).
3) If any of the following is executed in status 2), the routine registered in 1) is
executed as an interrupt routine (interrupt program).
• User program of C Controller module (another CPU) (QBF_GINT function)
• Sequence program of a programmable controller CPU (another CPU)
(S.GINT or D.GINT instruction)
To disable an interrupt routine (interrupt program), perform the following.
4) With the QBF_DisableCpuIn or QBF_DisableCpuInt_ISR function, disable the
routine registered in 1).
5) Even if an interrupt is issued from another CPU (programmable controller CPU
or C Controller) after step 4), the routine registered in 1) will not be executed.
Figure 13.2 How to execute interrupt routines (interrupt programs)
C Controller module
(another CPU)
(User program)
/*Interrupt issued*/
ret = QBF_GINT(path,
sCpuNo, sEventNo);
S.GINT H3E1 K0
Programmable controller
CPU
(Sequence program)
(S.GINT instruction)
(User program)
1) QBF_EntryCpuInt function executed
2) QBF_EnableCpuInt function executed
Interrupt routine (interrupt program)
registration table
(Empty)
C Controller module
Interrupt routine (interrupt program) 1
Interrupt routine (interrupt program) 2
3) QBF_GINT function
executed
3) S.GINT instruction executed
Содержание Q06CCPU-V
Страница 2: ......
Страница 612: ...APPX 48 Appendix 11 Functions Added by Version Upgrade APPENDICES Memo ...
Страница 617: ......