Relays, Memory Areas and Constants
1-66
Modification of relay numbers specified by basic instructions
Number = Base number + value in I0 through ID (K constant / H constant)
Example: Modifying X10
IAX10
Base number IA value Target number
10 + H0 = X10
10 + HF = X1F
10 + H−10 = X0
19 + K7 = X20
19 + K−11 = XE
Example 1: Modifying a trigger
F0 MV, DT 0, I0
R0
F35 +1, DT100
I0 setting
I0X0
The trigger of the F35 (+1) instruction is determined by the
DT0 value.
When the value of DT0 is K10, the F35 (+1) instruction is
executed when XA goes on.
I0 X0 → XA
↓
K10
↓
10 + 0 = 10 (decimal) → A (hexadecimal)
Example 2: Modifying an output destination
F0 MV, DT 2, I0
R0
I0 setting
I0Y10
X0
The value of DT2 determines the output destination when X0
goes on.
When the value of DT0 is HF and X0 goes on, Y1F goes on.
I0 Y10 → Y1F
↓
HF
↓
F + 10 = 1F