2-155

2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)

Increment/Decrement

Instructions
2

++B/++BL

Operation of @++B(594)/@++BL(595)

The up-differentiated variation is used in the following example, so the content of D100 will be incre-

mented by 1 only when CIO 0.00 has gone from OFF to ON.

The up-differentiated variation is used in the following example, so the BCD content of D101 and D100

will be incremented by 1 only when CIO 0.00 has gone from OFF to ON.

0 0 1 9
Wd: D100
0 0 2 0
Incremented only for
up-differentiation.
Wd: D100
@++B
D100
+1
0.00
0.00
Wd+1: D101 Wd: D100 Wd+1: D101 Wd: D100
Increment Increment
: Execution of @++B(594) or @++BL(595)
Incremented only for
up-differentiation.
+1
@++BL
D100
0.00
0000 9999 0001 0000