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

Process cpu module
Hide thumbs Also See for MELSEC iQ-R Series:
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 493 Specification method for the local
devices).
Program 1
CALL #P0
CALL #P1
FEND
#P0
RET
#P1
RET
(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.
Program 2
#P0
#P1
(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
RET
RET
Program C
P299 is used
in the program.
Three-hundred points of
The total of
P0 to P299 are occupied.
600 points are used.
When P0 is used,
one point is occupied.
27
27 DEVICES
485
27.12 Pointer (P)

Advertisement

Table of Contents
loading

Table of Contents