
9. SEQUENCE PROGRAM
STRUCTURING
B–61863E/15
PMC SEQUENCE PROGRAM
384
Ladder coding
Sub Program P6 (=B)
SP B
SPE
Move the pallet.
ȣ
Ȧ
Ȥ
(1) Main program
The main program is the Ladder program consisting of the first- and
second-level Ladder programs. One, but only one, main program can
be created. A subprogram cannot be called from the first-level
Ladder program. Any number of subprograms however, can be
called from the second-level Ladder program. The functional
instructions JMP and COM must be completed within each main
program or subprogram.
(2) Subprogram
A subprogram is a program called by the second-level Ladder
program. It is a program unit starting with the functional instruction
SP and ending with the functional instruction SPE. Up to 512
subprograms can be created for one PMC.
(3) Nesting
A subprogram can call another subprogram. The maximum nesting
depth is eight levels. Recursive calls are not allowed.
9.1.3
Specifications