Common Pointer - Mitsubishi Electric Q01UCPU User Manual

Hide thumbs Also See for Q01UCPU:
Table of Contents

Advertisement

4.10.2

Common pointer

The common pointer is used to call subroutine programs from all programs that are being executed.
(1) Common pointer range
In the PLC system tab of the PLC parameter dialog box, set the start number for the common pointer.
The common pointer range is from the specified pointer number to P4095.
However, the pointer number that can be entered here is a number higher than the total points used for the local
pointer.
Set the start number for
the common pointer.
If a total of 400 points are used in three programs (100 points in each of Program A and Program B, and
Ex.
200 points in Program C), for example, P400 and higher numbers can be set for the common pointer.
(2) Precautions
• The same pointer number cannot be used as a label. Doing so will result in a "Pointer configuration error"
(error code: 4021).
• If the total number of the local pointer points used in several programs exceeds the start number of the
common pointer, a "Pointer configuration error (error code: 4020) will occur.
Program A
Using P0 to P99
100 points of
P0 to P99 occupied
The jump instructions are not capable of executing a jump to the common pointer in other programs.
Use the common pointer with subroutine call instructions only.
Program A
CALL P204
FEND
Program B
CALL P205
FEND
Program B
Using P0 to P99
100 points of
P0 to P99 occupied
Total of 400 points
are used.
Program C
P204
CALL P0
RET
P205
RET
END
Label
Program C
Using
P0 to P199
200 points of
P0 to P199 occupied
P400 and higher numbers
can be used for the common pointer.
CHAPTER 4 DEVICES
4
407

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents