Local Pointer - Mitsubishi Electric L02SCPU User's Manual And Reference

Melsec-l series, cpu module
Table of Contents

Advertisement

5.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
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.
Ex.
The total is 600 points when the pointer is used as shown below.
Program A
Using P0 to P99
100 points of P0 to
P99 occupied
● When the program where the local pointer is described, the program cannot jump in from another program is not allowed.
Use the ECALL instruction from another program when calling a subroutine program in a program file that contains any
local pointer.
● If the total number of pointers (in all programs) exceeds 4096 points, a "CAN'T SET (P)" (error code: 4020) occurs.
Program B
Program C
Using P100 to P199
Using P299 only
200 points of P0 to
300 points of P0 to
P199 occupied
P299 occupied
Use of P0 to
Use of P0
P99 occupies
occupies 1 point.
100 points.
Program B
The same pointer
No. can be used.
Total of 600 points
are used.
CHAPTER 5 DEVICES
5
337

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents