Switching From The Scan Execution Type To The Interrupt/Fixed Scan Execution Type Program - Mitsubishi Electric MELSEC-Q00U(J)CPU User Manual

Table of Contents

Advertisement

4.6.3
Switching from the scan execution type to the interrupt/fixed
scan execution type program
The CPU module performs the following when switching from the scan execution type program to the interrupt/fixed
scan execution type program.
• Saving and restoring the index register data
• Saving and restoring block numbers of the file register
(1) Setting for saving and restoration
Saving and restoration setting can be enabled in the PLC system tab of the PLC parameter dialog box.
To disable writing to the index register in the interrupt/fixed scan execution type program, select "High Speed
Execution" in the Interrupt Program/Fixed Scan Program Setting area.
If this setting is enabled, the program will switch faster than before.
Selecting this
saves or restores
index register data.
(2) Processing of the index register
(a) When "High-speed execution" is not selected
• 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.
• 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.
Execution program
Index register value
Save area of index register
for scan execution
type program
*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.
388
Interrupt/fixed scan
Switching
Scan execution
execution type
type program
program
Passed
Z0=1
Saved
Z0=1
Z0=0
Scan execution
Restored
type program
Z0=1
Z0=3
*1
Restored
Z0=1
Z0=1
Z0=1
Z0=1

Advertisement

Table of Contents
loading

Table of Contents