339
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Increment/Decrement Instructions
3
++/++L
Function
Example Programming
z Operation of ++(590)/++L(591)
In the following example, the content of D100 will be incremented by 1 every cycle as long as CIO 0.00
is ON.
In the following example, the content of D100 will be incremented by 1 every cycle as long as CIO 0.00
is ON.
z ++
The ++(590) instruction adds 1 to the binary content of Wd.
The specified word will be incremented by 1 every cycle as
long as the execution condition of ++(590) is ON. When the
up-differentiated variation of this instruction (@++(590)) is
used, the specified word is incremented only when the exe-
cution condition has gone from OFF to ON.
z ++L
The ++L(591) instruction adds 1 to the 8-digit hexadecimal
content of Wd+1 and Wd. The content of the specified words
will be incremented by 1 every cycle as long as the execution
condition of ++L(591) is ON. When the up-differentiated vari-
ation of this instruction (@++L(591)) is used, the content of
the specified words is incremented only when the execution
condition has gone from OFF to ON.
D100 D100
0 0 1 9
0.00
D100
Wd:
0 0 1 A
Incremented every cycle
while CIO 0.00 is ON.
Wd:
D101 D100 D101 D100
0.00
D100
0.00
Wd+1: Wd: Wd+1: Wd:
Increment Increment Increment Increment
: Execution of ++(590) or ++L(591)
Incremented every cycle
while CIO 0.00 is ON.