3-23
1
2
3
4
2
6
7
8
3.4 Indirect Specification
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.
(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 Section 7.18.6.
(2) Indirect specification available devices
Table 3.3 shows that the CPU module devices can be specified indirectly.
Table 3.3 List of Indirect Specification Available Devices
*1: For the device names, refer to the QnUCPU User’s Manual
(Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall
(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.
Device Type
Availability of
Indirect
Specification
Example of Indirect Specification
Internal user device
Bit device *1
N/A
––––––––––
Word device *1
Available
• @D100
• @D100Z2 *2
Link direct device
Bit device *1
N/A
––––––––––
Word device *1
Available*3
•@J1\W10
• @J1Z1\W10Z2 *2
Intelligent function module device
Available*3
• @U10\G0
• @U10Z1\G0Z2 *2
Index register
N/A
––––––––––
File register
Available
• @R0, @ZR20000
• @R0Z1,@ZR20000Z1 *2
Extended data register (D)
Available
• @D1000
•@W1000
Extended link register (W)
Nesting
N/A
––––––––––
Pointer
––––––––––
Constants
––––––––––
Other
SFC block device
––––––––––
SFC transition device
Network No. specification
device
I/O No. specification device
D100Z0 D110
K10000
D150
K50
DMOV
DMOV
MOV
Z0
W0
D10
K10000
D150
K50
D0D+
DMOV
@D10
D110MOV
DMOV
W0
D100ADRSET
D0
Stores the address of
D100 to D0.
(Address of D100) + 50 =
(Address of D150)
Specification of
D (100 + 50) = D150
[When index resister is used][When indirect specification is used]
Specification of
address of D150