Mitsubishi Electric melsec q00ujcpu User Manual page 34

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
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
programs can also be called by using the common pointer.
Program A
M0
0
CALLP
Program B
M10
0
CALLP
Common pointer
Calling P1000
P1000
Calling P1000
P1000
Figure 1.16 Subroutine program sharing
Program C
Subroutine program
SM400
M0
P1000
Always
on
M0
CHAPTER1 OVERVIEW
MOV
K4X0
R0
MOV
K4X20
R0
RET
1 - 9
1
2
3
4
5
6
7
8

Advertisement

Table of Contents
loading

Table of Contents