Pointer (P) - Mitsubishi Electric melsec q00ujcpu User Manual

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

9.10 Pointer (P)

(1) Definition
The pointer (P) is a device used in jump instructions (CJ, SCJ, or JMP) or subroutine call instructions (such as
CALL).
(2) Applications
Pointers can be used in the following applications.
• Specification of the jump destination in a jump instruction (CJ, SCJ, or JMP) and a label (start address of the
jump destination)
• Specification of the call destination of a subroutine call instruction (CALL or CALLP) and a label (start
address of the subroutine program)
(3) Pointer types
There are the following two different pointer types.
• Local pointer (
The pointer used independently in each program
• Common pointer (
The pointer that can be called in all running programs by the subroutine call instruction.
(4) Number of available pointer points
The number of points available for the pointer is 4096.
Remark
For the jump instructions and subroutine call instructions, refer to the following.
QCPU Programming Manual (Common Instructions)
P0
Figure 9.84 Program using a pointer
Section 9.10.1):
Section 9.10.2):
CALL P0
FEND
RET
END
CHAPTER9 DEVICES
9
2
3
4
5
6
7
8
9 - 71

Advertisement

Table of Contents
loading

Table of Contents