Mitsubishi Electronics QnUCPU Home Theater Server User Manual


 
9 - 50
(2) Processing of the index register
(a) When "High-speed execution" is not selected
1) When switching from the scan execution type program to the interrupt/fixed scan
execution type program
The CPU module saves index register values in the scan execution type program, and passes them to the
interrupt/fixed scan execution type program.
2) When switching from the interrupt/fixed scan execution type program to the scan
execution type program
The CPU module restores the saved index register values.
*1: The Z0 value is changed to 3 in the interrupt program.
To pass index register values from the interrupt/fixed scan execution type program to the scan execution type program, use
word devices.
Figure 9.63 Saving and restoring index register data (when "High speed execution" is not selected)
Execution program
Z0=1 Z0=1 Z0=3
*1
Z0=0
Z0=1
Passed
Switching
Saved
Restored
Restored
Z0=1 Z0=1 Z0=1
Z0=1
Save area of index register
Index register value
Scan execution
type program
Scan execution
type program
Interrupt/fixed scan
execution type
program
for scan execution
type program