Local Pointer - Mitsubishi Electric Q01UCPU User Manual

Hide thumbs Also See for Q01UCPU:
Table of Contents

Advertisement

4.10.1

Local pointer

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.
Program A
P0
(1) 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.
Ex.
Program A
Using P0 to P99
100 points of
P0 to P99 occupied
CALL P0
FEND
P0
RET
END
Program B
Program C
Using P100 to
Using P299 only
P199
200 points of
300 points of
P0 to P199 occupied
P0 to P299 occupied
Use of P0 to P99
Use of P0
occupies 100
occupies 1 points.
points.
Program B
The same pointer
No. can be used.
CALL P0
FEND
RET
END
Total of 600 points are used.
CHAPTER 4 DEVICES
4
405

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents