Relays, Memory Areas and Constants
1-64
Modification of memory area numbers specified by high−level instructions
Address = Base address + value in I0 through ID (K constant)
Example: Modifying DT11
I0DT11
Base address I0 value Target address
11 + K0 = DT11
11 + K10 = DT21
11 + K−10 = DT1
Example 1: Modifying a destination address
F0 MV, DT 0, I0
X0
F0 MV, K100, I0DT100
I0 setting
The value of DT0 determines the DT address where K100 is
written.
When the DT0 value is K10, K100 is written to DT110.
I0 DT100 → DT110
↓
K10
↓
10 + 100 = 110
Example 2: Modifying a source address
F0 MV, DT 1, I0
X0
F0 MV, I0DT100, DT 0
I0 setting
The value of DT1 determines the DT address for transferring a
value to DT0.
When the DT1 value is K9, the value in DT109 is transferred to
DT0.
I0 DT100 → DT109
↓
K9
↓
9 + 100 = 109