Index Register (Z/Lz); 16-Bit Index Modification - 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.8

Index Register (Z/LZ)

This device is used for the index modification of the device. The index modification is the indirect specification using the index
register.
Specify the device with the number obtained from "Device number of device targeted for modification" + "Contents of index
register".

16-bit index modification

The device number is modified using the index register (Z). The modification range for the device in the case of the 16-bit
index modification is -32768 to 32767.
D100Z10
Index register number for modification
Modified target device
Ex.
Modifying D0 with Z0
SM402
M10
(1) Access D0Z0 = D100.
32-bit index modification
The device number is modified using the long index register (LZ). The modification range for the device in the case of the 32-
bit index modification is -2147483648 to 2147483647.
D100LZ1
Index register number for modification
Modified target device
Ex.
Modifying D0 with LZ0
SM402
M10
(1) Access D0LZ0 = D100000.
In addition, 32-bit index modification with ZZ expression using two index registers is also available.
27 DEVICES
476
27.8 Index Register (Z/LZ)
MOV
K100
Z0
MOV
W0
D0Z0
INC
Z0
DMOV
K100000
LZ0
MOV
W0
D0LZ0
DINC
LZ0
(1)
(1)

Advertisement

Table of Contents
loading

Table of Contents