9
-
79
9.9.1 Local pointer
Note12
(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.
(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.
Note12
Figure 9.85 Using the same pointer in respective programs (local pointer)
Figure 9.86 Concept of the local pointer points
Note9.12
The Basic model QCPU is irrelevant to the difference between local pointers and common pointers.
Basic
Program B
Program A
P0
P0
CALL P0
FEND
RET
END
CALL P0
FEND
RET
END
The same pointer
No. can be used.
Example
Program A
Using P0 to P99
100 points of
P0 to P99 occupied
Use of P0 to P99
occupies 100
points.
Use of P0
occupies 1 points.
300 points of
P0 to P299 occupied
200 points of
P0 to P199 occupied
Program B
Using P100 to
P199
Program C
Using P299 only
Total of 600 points are used.
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......