Mitsubishi MELSEC-Q/L Programming Manual page 103

Table of Contents

Advertisement

(3) Precautions
(a) The address for indirect specification uses two words. Therefore, to substitute indirect specification for index
modification, the addition/subtraction of 32-bit data is required. The following is the ladder used for the address
addition/subtraction of the device stored in D1 and D0 for indirect specification.
[To add "1" to the address of the device for indirect specification]
[To subtract "1" from the address of the device for indirect specification]
(b) Indirect specification of extended data register (D) and extended link register (W)
Indirect specification with indirect address can be performed in the extended data register (D) and extended link
register (W).
Note that when indirect specification is performed to the extended data register (D) and data register (D) in internal
device or to the extended link register (W) and link register (W) in internal device, the areas of the internal user
device and extended data register (D) or extended link register (W) are not treated as a sequence.
ADRSET D12000 D100
D+
K1000 D100
MOV
K1234 @D102
Since the areas of the data register and
extended data register are not sequence,
D13000 is inaccessible.
DINCP
D0
Device used for indirect specification
32-bit instruction
DDECP
D0
Device used for indirect specification
32-bit instruction
Setting an address
"D12000 h to D100 and D101
Setting the address that
is an addition of 1000 to
D102
the address of D12000 to
D102 and D103
Internal user device
D0
Data register
D12000
D12287
File register files
File register
D12288
Extended data
register(D)
D13000
D63487
Extended link
register (W)
2
3
4
5
6
7
8
101

Advertisement

Table of Contents
loading

Table of Contents