93
2
3
4
5
6
7
8
3.3
Indexing
(a) Example of specifing the range of index registers for use of 32-bit indexing.
1) Each index register can be set between -2147483648 and 2147483647.
An example of indexing is shown below.
2) Specification method
For indexing with a 32-bit index register, specify the head number of an index register to be used on the Device
tab of the Q parameter setting screen.
Fig. 3.8 Setting windows for ZR device indexing setting parameter
When the head number of the index register used is changed on the Device tab of the Q parameter setting screen, do not
change the parameters only or do not write only the parameters into the programmable controller. Be sure to write the
parameter into the programmable controller with the program.
When the parameter is forced to be written into the programmable controller, an error of CAN'T EXE. PRG. occurs. (Error
code: 2500)
3) Device that indexing can be used
Indexing can be used only for the device shown below.
4) Usable range of index registers
The following table shows the usable range of index registers for indexing with 32-bit index registers.
For indexing with 32-bit index registers, the specified index register (Zn) and the next index register of the
specified register (Zn+1) are used. Be sure not to overlap index registers to be used.
Device
Meaning
ZR
Serial number access format file register
D
Extended data register (D)
W
Extended link register (W)
Setting Value
Index Registers to be Used
Setting Value
Index Registers to be Used
Z0
Z0, Z1
Z10
Z10, Z11
Z1
Z1, Z2
Z11
Z11, Z12
Z2
Z2, Z3
Z12
Z12, Z13
Z3
Z3, Z4
Z13
Z13, Z14
Z4
Z4, Z5
Z14
Z14, Z15
Z5
Z5, Z6
Z15
Z15, Z16
Z6
Z6, Z7
Z16
Z16, Z17
Z7
Z7, Z8
Z17
Z17, Z18
Z8
Z8, Z9
Z18
Z18, Z19
Z9
Z9, Z10
Z19
Cannot be specified
MOV
ZR10Z0
D0
Indexing
DMOV
X0
X0
K40000
Z0
Stores 40000 at Z0.
Stores the data of ZR10Z0=
ZR{10+40000}=ZR40010 at D0.
GX D
e
v
e
lo
per
8
.
68
R o
r
ear
li
er
GX D
e
v
e
io
per
8
.
68
W o
r
l
ater