Omron SYSMAC CP Series Instruction & Reference Manual page 193

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

Sample program
Operation of --B(596)/--BL(597)
In the following example, the BCD content of D100 will be decremented by 1 every cycle as long as CIO
0.00 is ON.
0.00
--B
D100
In the following example, the 8-digit BCD content of D101 and D100 will be decremented by 1 every
cycle as long as CIO 0.00 is ON.
0.00
--BL
D100
Operation of @--B(596)/@--BL(597)
The up-differentiated variation is used in the following example, so the BCD content of D100 will be dec-
remented by 1 only when CIO 0.00 has gone from OFF to ON.
0.00
@--B
D100
The up-differentiated variation is used in the following example, so the BCD content of D101 and D100
will be decremented by 1 only when CIO 0.00 has gone from OFF to ON.
0.00
@--BL
D100
CP1E CPU Unit Instructions Reference Manual(W483)
Decremented every cycle
while CIO 0.00 is ON.
Wd: D100
Wd: D100
0 0 2 0
-1
0 0 1 9
Decremented every cycle
while CIO 0.00 is ON.
Wd+1: D101
Wd: D100
0 0 0 1
0 0 0 0
-1
: Execution of --B(596) / --BL(597)
0.00
Decrement
Decrement
Decremented only for
up-differentiation.
Wd: D100
Wd: D100
0 0 2 0
-1
0 0 1 9
Decremented only for
up-differentiation.
Wd+1: D101
Wd: D100
0 0 0 1
0 0 0 0
-1
: Execution of @--B(596) /@ --BL(597)
0.00
Decrement
Wd+1: D101
Wd: D100
0 0 0 0
9 9 9 9
Decrement Decrement
Wd+1: D101
Wd: D100
0 0 0 0
9 9 9 9
Decrement
2 Instructions
2
2-157

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents