Pointer (P); Global 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

27.12

Pointer (P)

This device is used in the jump instructions (the CJ/SCJ/JMP instruction) and/or subroutine program call instructions (such as
the CALL instruction). There are two types of pointer: the global pointer and the local pointer. Use the pointer when:
• Specifying the jump destination and label of the jump instructions (the CJ/SCJ/JMP instruction).
• Specifying the call destination and label (the head of subroutine program) of the subroutine call instructions (such as the
CALL instruction).

Global pointer

This is the pointer which enables calling by the subroutine call instruction from all the program being executed.
Program 1 (Program group A)
CALL
Program 2 (Program group B)
CALL
Effective use of number of points
The number of points for global pointers can be obtained with the following formula: "pointer number of points specified by the
parameter" - "the total point number of local pointer being used for each program".
Precautions
This section describes the precautions when the global pointer is used.
• A global pointer with the same pointer number cannot be set as a label in multiple points.
27 DEVICES
484
27.12 Pointer (P)
P1000
P1000
P1001
P1001
Program 3 (Program group C)
RET
RET

Advertisement

Table of Contents
loading

Table of Contents