Function
++
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.
+ +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.
Example Programming
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.
0.00
D100
In the following example, the content of D100 will be incremented by 1 every cycle as long as CIO 0.00
is ON.
0.00
D100
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Incremented every cycle
while CIO 0.00 is ON.
Wd:
D100
Wd:
D100
0 0 1 9
0 0 1 A
Incremented every cycle
while CIO 0.00 is ON.
Wd+1:
D101
Wd:
D100
: Execution of ++(590) or ++L(591)
0.00
Increment Increment
Wd
Wd+1
Wd
Wd+1:
D101
Wd:
D100
Increment Increment
3. Instructions
Wd
Wd+1
Wd
337
3
Need help?
Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?