
3-16
(b) Example of specifing 32-bit indexing with “ZZ” specification.
1) One index register can specify 32-bit indexing by using “ZZ” specification such
as “ZR0ZZ4”.
The 32-bit indexing with “ZZ” specification is as follows.
2) Specification method
To perform 32-bit indexing by using “ZZ” specification, select “Use of ZZ” in
“Indexing Setting for ZR Device” in PC parameter for GX Developer.
Fig. 3.10 Setting window for indexing setting parameter for ZR device
3) Device that indexing can be used
The following device is available for indexing.
4) Usable range of index registers
The following table shows the usable range of index registers in 32-bit indexing
used “ZZ” specification.
The 32-bit indexing with “ZZ” specification is specified as the format ZRmZZn.
Specifying ZRmZZn enables Zn and Zn+1 of 32-bit values to index the device
number, ZRm,
Device Meaning
ZR Serial number access format file register
D Extended data register (D)
W Extended link register (W)
“ZZ”
specification*1 Index Registers Used “ZZ”
specification*1 Index Registers Used
ZZ0 Z0, Z1 ZZ10 Z10, Z11
ZZ1 Z1, Z2 ZZ11 Z11, Z12
ZZ2 Z2, Z3 ZZ12 Z12, Z13
ZZ3 Z3, Z4 ZZ13 Z13, Z14
ZZ4 Z4, Z5 ZZ14 Z14, Z15
ZZ5 Z5, Z6 ZZ15 Z15, Z16
ZZ6 Z6, Z7 ZZ16 Z16, Z17
ZZ7 Z7, Z8 ZZ17 Z17, Z18
ZZ8 Z8, Z9 ZZ18 Z18, Z19
ZZ9 Z9, Z10 ZZ19 Not available
*1: refers to device name (ZR) for indexing target.
M0
MOVP K100
DMOVP K100000 Z4
ZR0ZZ4
M0
Stores 100000 at Z4 and Z5.
Indexing ZR device with 32-bit
index registers (Z4 and Z5)
ZR (0+100000) =ZR100000