Mitsubishi 00JCPU User Manual page 79

Q series programmable controller
Table of Contents

Advertisement

(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]
Scan execution type program: ABC
MO
Stand-by type program: DEF
[After execution of the PSCAN and PSTOP instructions]
Stand-by type program: ABC
MO
Scan execution type program: DEF
Figure 2.36 Example of changing the execution type (in the case of scan execution type program)
• The PSCAN instruction changes the program "DEF"
to a scan execution type program.
• The PSTOP instruction changes the program "ABC"
PSCAN "DEF"
to a stand-by type program.
PSTOP "ABC"
Scan execution type program: GHI
PSCAN "GHI"
PSTOP "DEF"
When M0 turns on
PSCAN
"DEF"
PSTOP
"ABC"
Scan execution type program: GHI
PSCAN "GHI"
PSTOP "DEF"
CHAPTER2 SEQUENCE PROGRAMS
PSCAN "ABC"
PSTOP "GHI"
PSCAN "ABC"
PSTOP "GHI"
2 - 34
2
3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents