Indirect Specification - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

3.4

Indirect Specification

(1) Indirect Specification
(a) Indirect specification is a method that specifies address of the device to be used in a sequence program using two
word devices (two points of word device). Use indirect specification as index modification when the index register is
insufficient.
MOV
DMOV
DMOV
[When index resister is used]
(b) Specify the device to be used for specifying the address as "@ + (word device number)". For example, when
@D100 is specified, the device address will be the contents of D101 and D100.
(c) The address of the device specified indirectly can be confirmed with the ADRSET instruction.
For the ADRSET instruction, refer to Page 611, Section 7.18.6.
(2) Indirect specification available devices
The following table shows that the CPU module devices can be specified indirectly.
Device Type
Internal user device
Link direct device
Intelligent function module device
Index register
File register
Extended data register (D)
Extended link register (W)
Nesting
Pointer
Constants
Other
*1:
For the device names, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/
QnPRHCPU User's Manual (Function Explanation, Program Fundamentals)
*2:
Indicates when index modification by an index register is performed.
*3:
Indirect specification is possible, but the address can not be written with the ADRSET instruction.
100
K50
Z0
K10000
D150
D100Z0
D110
Specification of
D (100 + 50) = D150
Bit device *1
Word device *1
Bit device *1
Word device *1
SFC block device
SFC transition device
Network No. specification device
I/O No. specification device
ADRSET
D100
D0
DMOV
K50
W0
DMOV
K10000
D150
D+
D0
W0
D10
MOV
@D10
D110
Specification of
address of D150
[When indirect specification is used]
Availability of Indirect
Specification
N/A
Available
N/A
Available
*3
Available
*3
N/A
Available
Available
N/A
Stores the address of
D100 to D0.
(Address of D100) + 50 =
(Address of D150)
Example of Indirect Specification
––––––––––
• @D100
• @D100Z2 *2
––––––––––
• @J1\W10
• @J1Z1\W10Z2 *2
• @U10\G0
• @U10Z1\G0Z2 *2
––––––––––
• @R0, @ZR20000
• @R0Z1,@ZR20000Z1 *2
• @D1000
• @W1000
––––––––––
––––––––––
––––––––––
––––––––––

Advertisement

Table of Contents
loading

Table of Contents