Mitsubishi Electric MELSEC-Q00U(J)CPU User Manual page 105

Table of Contents

Advertisement

(b)
Execution type change example
In a control program, a standby type program matching the preset condition is changed to a scan execution
type program in the course of program execution.
An unused scan execution type program can also be changed to a standby type program.
The following figure shows an example where the execution type of the standby type programs "ABC", "DEF",
"GHI", and "JKL" are changed in the control program.
When M0 turns on, the
program "ABC" is
changed from a stand-by
type to a scan execution
type program.
When M1 turns on, the
program "ABC" is
changed from a scan
execution type to a
stand-by type program.
Stand-by
program
Control program
M0
M1
Stand-by
type
type
program
:ABC
:DEF
CHAPTER 2 APPLICATION OF PROGRAMMING
The PSCAN instruction
PSCAN "ABC"
changes the program "ABC" to
a scan execution type program.
The PSTOP instruction changes
PSTOP "ABC"
the program "ABC" to a stand-
by type program.
PSCAN "DEF"
"DEF"
PSTOP
Stand-by
Stand-by
type
type
program
program
:GHI
:JKL
2
103

Advertisement

Table of Contents
loading

Table of Contents