1
-
9
(4) Flexible management of subroutine programs
(a) Subroutine program sharing
The number of steps in a program can be reduced by sharing subroutine programs.
In addition, creating and managing programs become easier.
Subroutine programs can be created within the same program and called. Subroutine programs in other pro-
grams can also be called by using the common pointer.
Figure 1.16 Subroutine program sharing
R0
K4X20
MOV
SM400
R0
K4X0
MOV
RET
M0
M0
P1000
M10
P1000
CALLP
0
M0
P1000
CALLP
0
Program A
Program B
Calling P1000
Calling P1000
Common pointer
Always
on
Program C
Subroutine program
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......