Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
2 Instructions
2-154
CP1E CPU Unit Instructions Reference Manual(W483)
Function
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.
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.
++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 execution condi-
tion 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 speci-
fied words will be incremented by 1 every cycle as
long as the execution condition of ++BL(595) is ON.
When the up-differentiated variation of this instruc-
tion (@++BL(595)) is used, the content of the speci-
fied words is incremented only when the execution
condition has gone from OFF to ON.
+1
Wd Wd
WdWd+1 Wd+1 Wd
+1
0 0 1 9
Wd: D100
0 0 2 0
Incremented every cycle
while CIO 0.00 is ON.
Wd: D100
++B
D100
+1
0.00
0.00
Wd+1: D101 Wd: D100 Wd+1: D101 Wd: D100
Increment Increment Increment Increment
: Execution of ++B(594) / ++BL(595)
Incremented every cycle
while CIO 0.00 is ON.
+1
++BL
D100
0.00
0000
9999 0001 0000