A SERVICE OF

logo

CHAPTER1 OVERVIEW
1
2
3
4
5
6
7
8
1.4 Devices and Instructions Useful for Programming
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
programs can also be called by using the common pointer.
Figure 1.16 Subroutine program sharing
R0K4X20
MOV
SM400
R0
K4X0MOV
RET
M0
M0
P1000
M10
P1000CALLP
0
M0
P1000CALLP
0
Program A
Program B
Calling P1000
Calling P1000
Common pointer
Always
on
Program C
Subroutine program