Program Sequence
Figure 4-6
Ex.4: Use multiple PROGRAMS to form an infinite loop
Set PROG #1 to NEXT TO PROG NO =3, RUN COUNT=1
PROG #3 to NEXT TO PROG NO =4, RUN COUNT=1
PROG #4 to NEXT TO PROG NO =6, RUN COUNT=1
PROG #6 to NEXT TO PROG NO =1, RUN COUNT=1
The program execution flow is shown in Figure 4-7.
A4: Execution steps:
(1) When all PROG #1 SEQUENCES are done, skip PROG #2 and jump to PROG
#3.
(2) When all PROG #3 SEQUENCES are done, jump to PROG #4.
(3) When all PROG #4 SEQUENCES are done, skip PROG #5 and jump to
PROG #6.
(4) When all PROG #6 SEQUENCES are done, skip PROG #7 - PROG #10 and
jump to PROG #1.
(5) Rerun step (1) - step (4).
(6) Form an infinite loop.
PROG #1
PROG CHAIN NO. = 1
SEQ 1_1 ~ SEQ 1_10
START