97
2
3
4
5
6
7
8
3.3 Indexing
2) Index modification where the device number crosses over the boundary among the file register (ZR), extended
data register (D), and extended link register (W)
Index modification where the device number crosses over the boundary among the file register (ZR), extended
data register (D), and extended link register (W) will not cause an error.
However, an error occurs if the index modification result of file register (ZR), extended data register (D), and
extended link register exceeds the file register range (error code: 4101).
(5) Other index modifications
(a) Bit data
Device numbers can be index modified when performing digit designation. However, Indexing is not possible by
digit designation.
(b) Both I/O numbers and buffer memory number can be performed indexing with intelligent function module devices*
1
.
MOV K1234
User Program
Z0=0
Z0=10000
Index modification where the device
number crosses over the boundary
among the file register (ZR), extended
data register (D) will not cause an error.
ZR100
D14196
File register files
File
register
(8k)
MOV K1234 Z20000Z1
Z1=0
Z1=4000
D20000
W2DC0
Extended data
register (D)
(8k)
D12288~
Extended link
register (W)
(8k)
W2000~
Z1=10000
Index modification where the device number
crosses over the boundary among the
extended data register (D), and extended
link register (W) will not cause an error.
Extended link register exceeds
the file register range.
BIN K4Z3X0 D0
BIN K4X0Z2
D0
Setting is possible since this indicates
Indexing for device number.
If Z2=3, then (X0+3)=X3
Setting is not possible since this indicates
Indexing by digit designation.
MOVU10Z1\G0Z2 D0
If Z1=2 and Z2=8,
then U(10+2)\G(0+8)=U12\G8