94
5) An example of indexing and the actual process device are as follows.
(When Z0 (32-bit) 100000 and Z2 (16-bit) -20)
Fig. 3.9 Ladder Example and Actual Process Device
(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.
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.
Ladder Example Actual Process Device
Device Meaning
ZR Serial number access format file register
D Extended data register (D)
W Extended link register (W)
X0
DMOV K100000 Z0
MOV ZR1000Z0 D30Z2
MOV K-20 Z2
X1
MOV
Description
ZR101000 D10
X1
ZR1000Z0 ZR(1000+100000)=ZR101000
D30Z2 D(30-20)=D10
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