EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q00U(J)CPU

Mitsubishi Electric MELSEC-Q00U(J)CPU
588 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
103
CHAPTER 2 APPLICATION OF PROGRAMMING
2
2.10 Settings When Program is Divided
2.10.5 Changing the program execution type
(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.
PSCAN
"ABC"
M0
PSTOP
"ABC"
M1
PSCAN
"DEF"
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.
"DEF"
PSTOP
The PSCAN instruction
changes the program "ABC" to
a scan execution type program.
The PSTOP instruction changes
the program "ABC" to a stand-
by type program.
Stand-by
type
program
:ABC
Stand-by
type
program
:DEF
Stand-by
type
program
:GHI
Stand-by
type
program
:JKL

Table of Contents

Related product manuals