EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R-R00CPU - Local Pointer

Mitsubishi Electric MELSEC iQ-R-R00CPU
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
362
21 DEVICES
21.12 Pointer (P)
Local pointer
This is the pointer to be independently used in each program where the same pointer number can be used. This pointer is
specified in the following format: # (pointer number) (Example: #P0) ( Page 370 Specification method for the local
devices).
Effective use of number of points
Local pointer number of points are shared among all the programs. The range of the local pointer number of points used by
each program is from P0 to the maximum value of the local pointer being used in that program. For example, even when a
program actually uses only P99, 100 points (P0 to P99) are considered to be used. When using local pointers in multiple
programs, they can be effectively used by using them in ascending order from P0 in each program group.
(1) The local pointers with the same number can be used between different programs.
CALL #P0
CALL #P1
CALL #P0
CALL #P1
FEND FEND
RET RET
RET
RET
#P0
#P0
#P1
#P1
(1)
Program 1 Program 2
Program A
P0 to P99 are used
in the program.
One-hundred points of
P0 to P99 are occupied.
Program B
P100 to P199 are used
in the program.
Two-hundred points of
P0 to P199 are occupied.
When P100 to P199 are used,
100 points are occupied.
Program C
P299 is used
in the program.
Three-hundred points of
P0 to P299 are occupied.
When P0 is used,
one point is occupied.
The total of
600 points are used.

Table of Contents

Related product manuals