Mitsubishi Q00JCPU User Manual page 708

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

10
DEVICE EXPLANATION
10.10.1 Local
Basic
Note10.26
(1) Definition
(2) Number of local pointer points
Note28
Basic
Note10.26
10
- 93
10.10 Pointer (P)
10.10.1 Local pointer
pointerNote28
Local pointers are pointers which can be used independently in program jump
instructions and subroutine call instructions.
The same pointer No. can be used in each of the programs.
Program A
P0
Figure 10.85 Use of the same pointer in each program (Local pointer)
Local pointers can be divided among all the programs stored in the program memory.
The local pointer No. ranges from P0 to the highest No. of the local pointer in use.
(The CPU module OS computes the number of points used.)
Even if only P99 is used in a program, for example, the number of points used will be
counted as 100 between P0 and P99.
When local pointers are used at several programs, the pointer settings should begin
from P0.
Example
If the local pointer points are used as follows, the total is 600 points.
Program A
P0 to P99 used in
program
P0 to P99 occupy
100 points
Figure 10.86 Concept of the number of local pointer points
Since the Basic model QCPU cannot execute multiple programs, it is irrelevant to the difference
between local pointers and common pointers.
When the Basic model QCPU is used, it is not necessary to be conscious of the description in
this section.
CALL P0
FEND
P0
RET
END
Program B
P100 to P199
used in program
P0 to P199 occupy
200 points
If P0 to P99 are used,
If P0 is used, the
the number of occupied
number of occupied
points is 100.
points is 1.
Program B
CALL P0
FEND
RET
END
Program C
Only P299 is
used in program
P0 to P299 occupy
300 points
Same pointer
is used.
Total of 600
points used.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents