3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
3.3 Settings for Creation and Execution of Multiple Sequence Programs
3.3.4 Stand-by type program
3 - 47
1
Overview
2
Performance
Specification
3
Sequence Program
Configuration and
Execution Conditions
4
I/O Nunber Assignment
5
Memories and Files
Handled by CPU Module
6
Functions
7
Communication using
built-in Ethernet ports of
CPU module
8
Communication with
Intelligent Function
Module
1) Example of changing the execution type in scan execution type program
• Set programs "ABC" and "GHI" as scan execution type programs.
Set program "DEF" as a stand-by type program.
• When the condition is satisfied (the internal relay (M0) in Figure 3.41 turns
ON), "DEF" is changed into a scan execution type program and "ABC" into
a stand-by type program.
[Before execution of PSCAN and PSTOP instructions]
[After execution of PSCAN and PSTOP instructions]
Scan execution type program: ABC
• PSCAN is the instruction that changes the
specified program (DEF) into a scan
execution type.
• PSTOP is the instruction that changes the
specified program (ABC) into a stand-by
type.
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 3.41 Example of changing the execution type in scan execution type program
PSCAN "DEF"
PSTOP "ABC"
M0
PSCAN "GHI"
PSTOP "DEF"
PSCAN "ABC"
PSTOP "GHI"
When M0 is
turned ON
PSCAN
M0
"DEF"
PSTOP "ABC"
PSCAN "GHI"
PSTOP "DEF"
PSCAN "ABC"
PSTOP "GHI"