Specifications

4.6 Index Setting
4-43
4
PROGRAM
CONFIGURATION
4.6 Index Setting
(1) Overview of the index setting
(a) The index setting is an indirect setting that uses index registers.
When the index setting is used in a sequence program, the device consists of ‘directly
specified device number’ + ‘content of index register’.
For example, when D2Z2 is specified and the value of Z2 is 3, D(2+3)=D5 is set as the
target.
(b) For Universal model QCPU, LCPU, and FXCPU, indexes can be set in 32-bit range in
addition to 16-bit range.
(2) 16-bit index setting
(a) Setting an index in 16-bit range
Values from -32768 to 32767 can be set to index registers
*1
.
The following shows how the index is set.
*1 For the index setting, refer to the user's manual (function explanation, program
fundamentals) for the CPU module used.
(b) Devices that can be used for the index setting (for QCPU (Q mode), LCPU)
The index setting can be applied to devices used by contacts, coils, basic instructions,
and application instructions except for the restrictions listed in the tables below. The
index setting cannot be applied to labels.
1) Devices that cannot be used for the index setting
*2: SFC transition devices and SFC block devices are devices
for SFC programs. For details, refer to the following manual.
MELSEC-Q/L/QnA Programming Manual (SFC)
*3: The SFC block devices (BL) and step relays (S) of a High-speed Universal model QCPU can be used for
the index setting under the following ranges.
SFC block device (BL): BL0 to BL319
Step relay (S): Within the range set in the parameter
When the step relays (S) in an SFC block device are selected, S0 to S511 can be used for the index
setting.
Device Description
E Floating-point data
$ Character string data
. (D0.1 etc.)
Bit-specified word device
FX, FY, FD Function devices
P Pointers used as labels
I Interrupt pointers used as labels
Z Index registers
S
Step relays
*3
TR
SFC transition devices
*2
BL
SFC block devices
*3
X0
MOV
EN ENO
ds
Z0-1
X0
MOV
EN ENO
ds
D0D10Z0
Index setting
Stores -1 at Z0.
Stores the data of D10Z0=
D{10+(-1)} = D9 to D0.