3-26
3.7 Index Setting
3) Devices that can be used for index settings
Only the following devices can be used for index settings.
4) Usage range of index registers
The following table shows the usage range of index registers when setting
indexes in 32-bit range.
Since the specified index register (Zn) and next index register (Zn+1) are used
for index setting in 32-bit range, make sure not to overlap index registers being
used.
5) The following figure shows the examples of index setting and their actual
processing devices.
(With the setting of Z0 (32 bits) =100000 and Z2 (16 bits) =-20)
Figure 3.7-3 Ladder examples and actual processing devices
(b) Specifying a 32-bit index setting using 'ZZ'
1) A 32-bit index can be specified to the index register by specifying an index
using 'ZZ', for instance, 'ZR0ZZ4'.
The following figure shows the 32-bit index setting using 'ZZ'.
Device
Description
ZR
Serial number access file register
D
Extended data register
W
Extended link register
Setting value
Index register
Setting value
Index register
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
Not applicable
Ladder example
Actual processing device
Descri
p
tion
ZR
1
000Z0...ZR (
1
000+
1
00000) = ZR
1
0
1
000
D30Z
2
...D (30-
2
0) = D
1
0
Set 100000 to Z4 and Z5.
Set 32‑bit (Z4, Z5) index to ZR.
ZR(0+100000) indicates ZR100000.
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......