Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 687

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Processing details
• These instructions store the indirect address of the device specified by (s) to the device specified by (d). The addresses
stored in the device specified by (d)+0 and (d)+1 are used by the program to execute the indirect address of the device.
ADRSET W100
MOV
K1234
(2)
• The nibble of a bit device, and the bit of a word device cannot be specified in (s).
Precautions
• In the indirect specification, the device address used in sequence program is specified with a word device of 2 words (2-
word devices). Use the indirect specification as an index when index register is insufficient.
MOV
K50
DMOV
K10000
DMOV
D100Z0
[When the index register is used]
• In the indirect specification, the device which specify the address of the specified device is specified by "@+(word device
number)". For example, when "@D100" is specified, and the content of D101 and D100 becomes the device address.
Operation error
There is no operation error.
D100
(1)
(3)
@D100
D0
D1
D100
Address of
W100
D101
Z0
D150
D110
Specification of D(100+50) = D150
Device area
1234
W100
ADRSET D100
DMOV
K50
DMOV
K10000
D+
D0
W0
MOV
@D10
[When the indirect specification is used]
8 APPLICATION INSTRUCTION
8.23 Indirect Address Read Instruction
(1) Stores the address of W100 to D100
and D101.
(2) Specifies the content of D100 and
D101 (address of W100).
(3) Writes "1234" to W100.
D0
Stores the address
of D100 to D0.
W0
D150
D10
(Address of D100) + 50
= (Address of D150)
D110
Specification of the address of D150
8
685

Hide quick links:

Advertisement

loading