343
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Increment/Decrement Instructions
3
--/--L
z Operation of @--(592)/@--L(593)
In the following example, the content of D100 will be decremented by 1 every cycle as long as CIO 0.00
is ON.
The up-differentiated variation is used in the following example, so the content of D101 and D100 will be
decremented by 1 only when CIO 0.00 has gone from OFF to ON.
D100
0.00
0 0 2 0 0 0 1 F
D100
D100
-1
Wd: Wd:
Decremented every cycle
while CIO 0.00 is ON.
@− −
@
-1
D101 D100 D101 D100
Decrement
Decrement
− −L
Wd+1: Wd: Wd+1: Wd:
: Execution of @- -L(593)
Decremented only
for up-differentiation.
D100
0.00