Local Pointer - Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

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).
Program 1
#P0
#P1
(1) The local pointers with the same number can be used between different programs.
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.
Program A
P0 to P99 are used
in the program.
One-hundred points of
P0 to P99 are occupied.
21 DEVICES
362
21.12 Pointer (P)
Program 2
CALL #P0
CALL #P1
FEND
RET
RET
(1)
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.
CALL #P0
CALL #P1
FEND
#P0
RET
#P1
RET
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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents