EasyManua.ls Logo

Mitsubishi Q02CPU

Mitsubishi Q02CPU
692 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
9
DEVICE EXPLANATION
9.6 Index Register (Z)
9.6.2 Switching scan/low speed exec. to Interrupt/fixed scan exec.
9
- 60
9
Device Explanation
10
CPU Module Processing
Time
11
Procedure for Writing
Program to CPU Module
AppendicesIndex
(b) When "High-speed execution" is selected
1) When switching from scan/low speed execution type program to
interrupt/fixed scan execution type program
The CPU module does not save/restore the index register value.
2) When switching from interrupt/fixed scan execution type program to
scan/low speed execution type program
If data is written to index registers by using an interrupt program/fixed scan
execution type program, the values of index registers used for an scan/low
speed execution type program will be corrupted.
Before writing data to index registers by using an interrupt program/fixed scan
execution type program, use the ZPUSH/ZPOP instruction to save/restore the
data.
Diagram 9.62 Index register saving (protection)/restoration (When "High-speed execution" is selected)
Diagram 9.63 When data is written to index register by interrupt/fixed scan execution type program
Execution program
Index register value
Index register storage
area
For scan/low speed
execution type program
Scan/low speed
execution type
program
Z0=1
Z0=0
Switching Reset
Scan/low speed
execution type
program
Interrupt
program/Fixed
scan execution
type program
Transferred Transferred
Z0=1
Z0=1 to Z0=3
Z0=0 Z0=0
Z0=0
Z0=3
: For interrupt program, Z0 is changed to 3.
SM400
ZPOP
SM400
IRET
I0
The points after D0 stores
the data (Z0 to 15).
The data after D0 is stored
in points (Z0 to 15).
ZPUSH D0
D0

Table of Contents

Other manuals for Mitsubishi Q02CPU

Related product manuals