EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R-R6SFM - Index Register (Z;LZ); 16-Bit Index Modification

Mitsubishi Electric MELSEC iQ-R-R6SFM
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
21 DEVICES
21.8 Index Register (Z/LZ)
353
21
21.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.
Ex.
Modifying D0 with Z0
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.
Ex.
Modifying D0 with LZ0
In addition, 32-bit index modification with ZZ expression using two index registers is also available.
(1) Access D0Z0 = D100.
(1) Access D0LZ0 = D100000.
D100Z10
Index register number for modification
Modified target device
MOV K100 Z0
INC Z0
MOV W0 D0Z0
SM402
M10
(1)
D100LZ1
Index register number for modification
Modified target device
DMOV K100000 LZ0
DINC LZ0
MOV W0 D0LZ0
SM402
M10
(1)

Table of Contents

Related product manuals