
B–61863E/15
2. SEQUENCE PROGRAMPMC SEQUENCE PROGRAM
47
operated under the undivided system.
C
B
A
Functional
instruction
Functional
instruction
Functional
instruction
The ladder program is divided if all functional instructions are
executed regardless of execution of an actual ladder program.
Fig. 2.3 (d) Divisions in the divided system
C
B
A
Functional
instruction
Functional
instruction
Functional
instruction
Execution of an actual ladder program when A = 0, B = 1, and C = 0.
Fig. 2.3 (e) Execution of a ladder program
(a) Example of effective use of the undivided system
Example 1)
Many M codes are usually used. Since more than one M code
is not used in the same block, the decoded M code is divided
into several parts. Machine instructions are used as these
decoded parts.
The M code is divided into M codes having two digits such
as M21, M22, M24, M28, and so on.
Example 2)
To reduce the number of ROM types using the same ladder
program for multiple machines, a PMC parameter must be
specified so that any of the following ladder program run.
(Ladders dedicated
to each machine)
(Selected by a PMC parameter)
Ladder A
Ladder B2Ladder B1 Ladder B3
(Ladder common to all machines)
Fig. 2.3 (f)