Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 374

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Function
++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.
+ +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.
Sample program
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.
0.00
D100
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.
0.00
D100
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Incremented every cycle
while CIO 0.00 is ON.
Wd:
D100
Wd:
D100
Incremented every cycle
while CIO 0.00 is ON.
Wd+1:
D101
Wd:
D100
: Execution of ++B(594)/++BL(595)
Increment Increment
Wd
Wd+1
Wd
Wd+1:
D101
Wd:
D100
Increment Increment
3. Instructions
Wd
Wd+1
Wd
337
3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents