2 - 34
CHAPTER2 SEQUENCE PROGRAMS
2
3
2.3 Settings When Program is Divided
2.3.4 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.
1) Changing the execution type (in the case of scan execution type program)
• Set the programs "ABC" and "GHI" as scan execution type programs and the program "DEF" as a stand-
by type program.
• When the condition is established (the internal relay (M0) in Figure 2.36 turns on), the program "DEF" is
changed to a scan execution type program and the program "ABC" to a stand-by type program.
[Before execution of the PSCAN and PSTOP instructions]
[After execution of the PSCAN and PSTOP instructions]
Scan execution type program: ABC
• The PSCAN instruction changes the program "DEF"
to a scan execution type program.
• The PSTOP instruction changes the program "ABC"
to a stand-by type program.
Stand-by type program: DEF Scan execution type program: GHI
Stand-by type program: ABC
Scan execution type program: DEF Scan execution type program: GHI
Figure 2.36 Example of changing the execution type (in the case of scan execution type program)
When M0 turns on
PSCAN
MO
"DEF"
PSTOP "ABC"