345
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Increment/Decrement Instructions
3
++B/++BL
Function
Example Programming
z Operation of ++B(594)/++BL(595)
In the following example, the BCD content of D100 will be incremented by 1 every cycle as long as CIO
0.00 is ON.
In the following example, the 8-digit BCD content of D101 and D100 will be incremented by 1 every
cycle as long as CIO 0.00 is ON.
z ++B
The ++B(594) instruction adds 1 to the BCD content of Wd.
The specified word will be incremented by 1 every cycle as
long as the execution condition of ++B(594) is ON. When the
up-differentiated variation of this instruction (@++B(594)) is
used, the specified word is incremented only when the exe-
cution condition has gone from OFF to ON.
z ++BL
The ++BL(595) instruction adds 1 to the 8-digit BCD content
of Wd+1 and Wd. The content of the specified words will be
incremented by 1 every cycle as long as the execution condi-
tion of ++BL(595) is ON. When the up-differentiated varia-
tion of this instruction (@++BL(595)) is used, the content of
the specified words is incremented only when the execution
condition has gone from OFF to ON.
D100 D100Wd: Wd:
Incremented every cycle
while CIO 0.00 is ON.
D100
0.00
D101 D100 D101 D100
Increment Increment Increment Increment
Wd+1: Wd: Wd+1: Wd:
: Execution of ++B(594)/++BL(595)
Incremented every cycle
while CIO 0.00 is ON.
D100
0.00