Local Pointer - Mitsubishi 00JCPU User Manual

Q series programmable controller
Table of Contents

Advertisement

9.9.1 Local pointer

(1) Definition
The local pointer is a pointer that can be used independently in jump instructions and subroutine call instructions
in each program.
The same pointer number can be used in respective programs.
P0
(2) Number of local pointer points
The local pointer can be divided for use of all the programs stored in the program memory.
The local pointer number ranges from P0 to the highest number of the local pointer in use. (The CPU module's
system computes the number of points used.)
Even if only P99 is used in a program, for example, the number of points used will be 100, which is from P0 to
P99.
For using the local pointer for several programs, use the pointers in ascending order starting from P0 in each
program.
The total is 600 points when the pointer is used as shown below.
Example
Program A
Using P0 to P99
100 points of
P0 to P99 occupied
Note12
Note9.12
Basic
The Basic model QCPU is irrelevant to the difference between local pointers and common pointers.
9 - 79
Note12
Note9.12
Program A
CALL P0
FEND
RET
END
Figure 9.85 Using the same pointer in respective programs (local pointer)
Program B
Using P100 to
P199
200 points of
P0 to P199 occupied
Use of P0 to P99
occupies 100
points.
Figure 9.86 Concept of the local pointer points
Program B
CALL P0
FEND
P0
RET
END
Program C
Using P299 only
300 points of
P0 to P299 occupied
Use of P0
occupies 1 points.
The same pointer
No. can be used.
Total of 600 points are used.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents