![Mitsubishi Electric MELSEC iQ-R-R00CPU Скачать руководство пользователя страница 82](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-r-r00cpu/melsec-iq-r-r00cpu_user-manual_239139082.webp)
80
1 RUNNING A PROGRAM
1.7 Interrupt Program
If the value of the index register used for the interrupt program is continuously used for the next interrupt
program, the value of the index register for the interrupt program must be saved or restored. Create a program
to add the MOV instruction and the ZPUSH/ZPOP instruction.
(1)This value can be used as a value specific to the main routine program.
(2)This value can be used as a value specific to the interrupt program. (This value can be used continuously.)
Z0=0
Z0=3
*3
D0=0
D0=3
D0=3
D0=3
-
Z0=0
Z0=3
*4
D0=3
Z0=0
Z0=0
Z0=0
Z0=0
Z0=0
MOV D0 Z0
I50
MOV K3 Z0
IRET
MOV Z0 D0
FEND
Ò
Ó
Ò
Ó
(1)
(2)
Value of the index
register
Save area of the index
register
(for scan execution
type programs)
Save
Return
Without change
Without change
Save
Interrupt program
Execution program
Main routine
program
Switch
Main routine
program
Switch
Interrupt program
Return
Value of D0
Program example
Main routine program
*3 A value in Z0 changes at MOV D0 Z0.
*4 Z is zero when the program
Ò
and
Ó
are not added.
Содержание MELSEC iQ-R-R00CPU
Страница 2: ......
Страница 151: ...9 MONITOR FUNCTION 9 1 Real Time Monitor Function 149 9 MEMO ...
Страница 323: ...18 SEQUENCE SCAN SYNCHRONIZATION SAMPLING FUNCTION 321 18 MEMO ...
Страница 330: ...328 20 ROUTING SETTING 20 3 Precautions MEMO ...
Страница 423: ...26 BASIC CONCEPT 26 8 State Transition of the Redundant System 421 26 MEMO ...
Страница 524: ...522 30 MAINTENANCE AND INSPECTION FOR A REDUNDANT SYSTEM 30 1 Module Replacement in the Redundant System MEMO ...
Страница 1009: ...APPX Appendix 14 List of Available SQL Commands for CPU Module Database Access Function 1007 A MEMO ...
Страница 1014: ...1012 APPX Appendix 15 Added and Enhanced Functions MEMO ...
Страница 1027: ......