112
8 RUNNING A PROGRAM
8.5 Program Execution Type
Execution type change
This section describes how to change the execution type of programs.
Using parameter settings
"Program Setting" can be used to specify the execution type of programs.
[CPU Parameter] [Program Setting] [Detailed Setting]
Using an instruction
Use the following instructions.
• PSCAN
• PSTOP
•POFF
■Change timing
The execution type change timing is shown below.
*1 This instruction stops the execution of the program at END processing after instruction execution.
■Precautions
The following lists the precautions when changing the execution type.
• If a fixed scan execution type program or event execution type program is changed to another execution type, it cannot be
restored to the original execution type.
• If an instruction is executed multiple times in a single scan for a single program, the program operates for the instruction
executed last.
• For details on operation if an SFC program is specified, refer to the following.
MELSEC iQ-R Programming Manual (Program Design)
"Program Setting" window
1. Click "Detailed Setting" on the "Program
Setting" window.
"Detailed Setting" window
2. For each program, select the execution
type in "Type" of "Execution Type".
Execution type
before change
Execution instruction
PSCAN PSTOP POFF
Initial Switches to "Scan" at the next scan. Switches to "Standby" at the next
scan.
Turns off the output at the next scan and
switches to "Standby" at the scan after that.
Scan Non-processing (does not change from "Scan")
Fixed scan/event Switches to "Scan" at the next scan. Turns off the output at the next scan and
switches to "Standby" at the scan after that.
*1
Standby Non-processing (does not change
from "Standby")
Non-processing (does not change from
"Standby")
Initial execution type program
Standby type program
Event execution type/Fixed scan
execution type program
Scan execution type program
PSCAN instruction
PSCAN instruction
PSCAN instructionPSTOP or POFF
instruction
PSTOP or POFF instruction
PSTOP or POFF
instruction