7 APPLICATION INSTRUCTION
7.18 Indirect address read instruction
577
7
7.18 Indirect address read instruction
Reading the indirect address
ADRSET(P)
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.
■Descriptions, ranges, and data types
■Applicable devices
*1 T, ST, C cannot be used.
• 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.
• The nibble of a bit device, and the bit of a word device cannot be specified in (s).
Ladder diagram Structured text
ENO:=ADRSET(EN,s,d);
ENO:=ADRSETP(EN,s,d);
Operand Description Range Data type Data type (label)
(s) Device number for reading the indirect address Device name ANY16
(d) Device number for storing the indirect address of the device
specified by (s)
32-bit signed binary ANY32
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s)
*1
(d)
(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
D1
D101
D100
W100
1234
ADRSET
W100 D100 (1)
(3)
(2)
MOV K1234 @D100
Device area
Address of
W100