
CHAPTER2 SEQUENCE PROGRAMS
1
2
3
4
5
6
7
8
2.3 Settings When Progr
am is Divided
2.3.3 Sta
nd-by type progr
am
2
-
23
1) Executing a subroutine program and interrupt program in a stand-by type program
After execution of the stand-by type program, the CPU module reexecutes the program that called a program
in the stand-by type program.
Figure 2.26 shows the operation when the subroutine and interrupt programs in the stand-by type program
are executed.
●
For restrictions on programming of subroutine and interrupt programs, refer to the following.
• Subroutine program:
• Interrupt program:
Section 2.3.2
●
Use common pointers. (
If local pointers are used, subroutine programs in a stand-by type program cannot be executed from any other program.
Figure 2.26 Operation when the subroutine and interrupt programs in the stand-by type program are executed
P100
RET
I0
IRET
END processing
END processing
END processing
CALL P100
instruction execution
Interrupt factor
occurrence
Subroutine program within
a stand-by type program
Interrupt program within a
stand-by type program
Main routine program
Содержание melsec q00ucpu
Страница 2: ......
Страница 3: ......
Страница 13: ...A 10 Memo ...
Страница 620: ......
Страница 621: ......