Mitsubishi 00JCPU User Manual page 34

Q series programmable controller
Table of Contents

Advertisement

(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.
Program A
M0
0
Program B
M10
0
1 - 9
Calling P1000
CALLP
P1000
Calling P1000
CALLP
P1000
Figure 1.16 Subroutine program sharing
Program C
Common pointer
Subroutine program
SM400
P1000
Always
on
M0
MOV
K4X0
R0
M0
MOV
K4X20
R0
RET

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents