119
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.10 Index Register [V and Z]
1
In
troduct
io
n
2
Ov
e
rv
ie
w
3
In
st
ru
ct
ion
Li
st
4
D
evi
ce
s
in
De
ta
il
5
Speci
fied t
h
e
D
evi
ce &
C
onst
a
nt
6
Bef
o
re
Pr
ogr
a
m
m
ing
7
Bas
ic
In
st
ru
cti
o
n
8
FNC0
0
-FNC0
9
P
ro
g
ra
m F
lo
w
9
FNC1
0
-FNC1
9
M
ov
e
&
C
om
par
e
10
FNC
20-
FNC
2
9
Ar
ith.
&
Logi
c
O
per
at
io
n
4.10
Index Register [V and Z]
Index registers can be used as in the case of data registers. And they are special registers since they can
change the contents of device numbers and numeric values by program when combined with another device
number or numeric value in operands of applied instructions.
4.10.1
Numbers of index registers
The table below shows numbers of index registers (V and Z). (Numbers are assigned in decimal.)
When only "V" or "Z" is specified, it is handled as "V0" or "Z0" respectively.
*1.
The characteristics related to protection against power failure cannot be changed by parameters.
4.10.2
Functions and structures
1. 16-bit type
Index registers have the same structures as data registers.
2. 32-bit type
Make sure to use Z0 to Z7 when indexing a device in a 32-bit applied instruction or handling a numeric value
outside the 16-bit range.
Index type
FX
3U
/FX
3UC
PLC
V0 (V) to V7, Z0 (Z) to Z7
16 points
*1
V
16 bits
Z
16 bits
V0 to V7:
8 points
Z0 to Z7:
8 points
V0 (high-order side)
Z0 (low-order side)
V1 (high-order side)
Z1 (low-order side)
V2 (high-order side)
Z2 (low-order side)
V3 (high-order side)
Z3 (low-order side)
V4 (high-order side)
Z4 (low-order side)
V5 (high-order side)
Z5 (low-order side)
V6 (high-order side)
Z6 (low-order side)
32 bits
V7 (high-order side)
Z7 (low-order side)
This is because FX PLCs handle Z as the low-order side of a 32-bit
register as shown in combinations of V and Z in the figure on the left.
Even if V0 to V7 on the high-order side is specified, indexing is not
executed.
When index registers are specified as a 32-bit device, both V (high-
order side) and Z (low-order side) are referred to at the same time.
If a numeric value for another purpose remains in V (high-order side),
consequently the numeric value here becomes extremely large, thus
an operation error occurs.
Example of writing to 32-bit index registers
Even if an index value in a 32-bit applied instruction does not exceed
the 16-bit numeric range, use a 32-bit operation instruction such as
DMOV instruction for writing a numeric value to Z as shown in the
figure on the left so that both V (high-order side) and Z (low-order
side) are overwritten at the same time.
FNC 12
DMOV
K300
Z2
K300
→
(V2,Z2)