Interrupt/Fixed Scan Execution Type Program - Mitsubishi 00JCPU User Manual

Q series programmable controller
Table of Contents

Advertisement

(b) When "High-speed execution" is selected
1) When switching from the scan execution type/low-speed execution type program
to the interrupt/fixed scan execution type program
The CPU module does not save/restore any index register values.
2) When switching from the interrupt/fixed scan execution type program to the scan
execution type/low-speed execution type program
If data are written to the index register by the interrupt/fixed scan execution type program, the values of the
index register used in the scan execution type/low-speed execution type program will be corrupted.
Execution program
Index register value
Save area of index
register
for scan/low-speed
execution type program
Figure 9.67 Saving and restoring index register data (when "High speed execution" is selected)
*1: The Z0 value is changed to 3 in the interrupt program.
When writing data to the index register by the interrupt/fixed scan execution type program, use the ZPUSH or
ZPOP instruction to save and restore the data.
SM400
I0
SM400
Figure 9.68 Writing data to the index register in the interrupt/fixed scan execution type program
Scan/low-speed
Interrupt/fixed scan
Switching
execution type
execution type
program
program
Passed
Z0=1
Z0=1
Z0=0
Z0=0
ZPUSH
ZPOP
IRET
Scan/low-speed
Restored
execution type
program
Passed
*
Z0=3
Z0=3
Z0=0
Z0=0
Z0=0
Data in Z0 to Z15 are
D0
stored in the area
addressed from D0.
Data in the area
D0
addressed from D0 are
stored in Z0 to Z15.
CHAPTER9 DEVICES
9
9 - 62

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents