10
DEVICE EXPLANATION
10.6 Index Register(Z) / Standard Device Resister(Z)
10.6.4 Switching scan/low speed exec. to Interrupt/fixed scan exec.
10 - 66
9
Parameters
10
Device Explanation
11
CPU Module Processing
Time
12
Procedure for Writing
Program to CPU ModuleAppendicesIndex
(2) Index register processing
(a) When "High-speed execution" is not selected
1) When switching from scan/low speed execution type program to
interrupt/fixed scan execution type program
The CPU module saves the index register value of the scan/low speed
execution type program and passes it to the interrupt/fixed scan execution
type program.
2) When switching from interrupt/fixed scan execution type program to
scan/low speed execution type program
The CPU module restores the saved index register value.
POINT
Word devices should be used to transfer index register data from an interrupt or
fixed scan execution type program to a scan or low speed execution type
program.
Figure 10.62 Index register saving (protection)/restoration (When "High-speed execution" is not selected)
Execution program
Index register value
Index register storage
area
For scan/low speed
execution type program
Z0=1
Z0=0 Z0=1
Transferred
Switching
Scan/low speed
execution type
program
Saved
Interrupt
program/Fixed
scan execution
type program
Reset
Scan/low speed
execution type
program
Reset
Z0=1 Z0=1 Z0=1
Z0=1Z0=1 to Z0=3
: For interrupt program, Z0 is changed to 3.