M800V/M80V Series PLC Programming Manual (1/2)
6 Explanation of Instructions and Functions
6.4 Index Modification
6.4 Index Modification
Index modification is an indirect setting made by using an index register.
When an index modification is used in a sequence program, the device to be used will be [the device number designated
directly] plus [the contents of the index register].
For example, if D2Z1 has been designated, and the content of Z1 is 3, D(2+3), or D5, will be the designated device.
6.4.1 For Models with Extended Index Modification
Index register (Z0 to Z13) can be set from -32768 to 32767 with sign.
Index modification is available in most instructions. (Refer to each instruction's explanation for specification details of
instructions.)
Methods for using index register
Transferring data to index register
MOV
Kn or Hn is used.
Example of modification
X0
MOV K-1
X0
MOV D10Z0 Z0
↓
Index qualification
IB-1501667-B
MOV
Kn
Zn
Z0 to Z13
Z0
-1 is stored in Z0
"D10Z0 = D{10+(-1)} = D9"
data is stored in D0
108