Mitsubishi Electronics QnUCPU Home Theater Server User Manual


 
2 - 24
(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.27 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.27 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"