Hey,
An example code of S7:
LAR2 P#66.0 // Preset Basic Adres for AR2
L MW [AR2,P#9.0] // Call MW75, offset 9.0 + preset 66.0
T MW230 // Transfer the value of MW75 in MW230
Why and when do u use this ?
Second example:
LAR1 P#10.0
A M[AR1,P#200.6] // = M210.6
= Q [AR1,P#120.4] // = M130.4
Why using this sort of indirect adressing ?
An example code of S7:
LAR2 P#66.0 // Preset Basic Adres for AR2
L MW [AR2,P#9.0] // Call MW75, offset 9.0 + preset 66.0
T MW230 // Transfer the value of MW75 in MW230
Why and when do u use this ?
Second example:
LAR1 P#10.0
A M[AR1,P#200.6] // = M210.6
= Q [AR1,P#120.4] // = M130.4
Why using this sort of indirect adressing ?