97
CHAPTER 2 APPLICATION OF PROGRAMMING
2
2.10 Settings When Program is Divided
2.10.3 Stand-by type program
(b) Changing the program execution type using instructions
Use the PSCAN, PSTOP, or POFF instruction to change a program execution type. ( Page 102, Section
2.10.5)
The program execution type is changed in END processing. Therefore, the execution type will not be changed
in the middle of program execution. If different types are set to the same program in the same scan, the
program will be changed to the type specified by the last instruction executed.
*1 The programs "GHI" and "DEF" are executed in the order set in the Program tab of the PLC parameter dialog box.
(3) Precautions on programming
(a) Unavailable devices
Unavailable devices depend on the program type (subroutine program or interrupt program) or the execution
type changed by an instruction.
(b) Use of local devices
For execution of a subroutine program using a local device, refer to Page 420, Section 6.2.
• The PSCAN instruction changes the program "DEF" to a scan execution type program.
• The PSTOP instruction changes the program "ABC" to a standby type program.
END processing END processing END processing
Program name
PSTOP "ABC"
execution
PSCAN "DEF"
execution
"DEF" is changed to a scan execution type
program and "ABC" is changed to a stand-by
type program.
"GHI" "GHI" "GHI"
"GHI"
*1
"DEF"
*1
"ABC"