2
-
34
CHAPTER2 SEQUENCE PROGRAMS
2
3
2.3 Settings When Progr
am is Divided
2.3.4 Sta
nd-by type progr
am
(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)
PSCAN "DEF"
PSTOP "ABC"
MO
PSCAN
"GHI"
PSTOP
"DEF"
PSCAN "ABC"
PSTOP
"GHI"
When M0 turns on
PSCAN
MO
"DEF"
PSTOP
"ABC"
PSCAN
"GHI"
PSTOP
"DEF"
PSCAN "ABC"
PSTOP
"GHI"
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......