Omron CS1G/H-CPUxxH Instructions Manual page 388

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Increment/Decrement Instructions
Flags
Precautions
Examples
specified words is incremented only when the execution condition has gone
from OFF to ON.
The Equals Flag will be turned ON if the result is 0000 0000 and the Carry
Flag will be turned ON when a digit changes from 9 to 0.
Both the Equals Flag and the Carry Flag will be turned ON when the content
of changes from 9999 9999 to 0000 0000.
Name
Error Flag
Equals Flag
Carry Flag
The content of Wd+1 and Wd must be BCD. If it isn't BCD, an error will occur
and the Error Flag will be turned ON.
Operation of ++BL(595)
In the following example, the 8-digit BCD content of D00101 and D00100 will
be incremented by 1 every cycle as long as CIO 000000 is ON.
Wd+1: D00101 Wd: D00100
Operation of @++BL(595)
The up-differentiated variation is used in the following example, so the BCD
content of D00101 and D00100 will be incremented by 1 only when
CIO 000000 has gone from OFF to ON.
@++BL
Wd+1: D00101 Wd: D00100
Wd+1
Wd
Label
ER
ON if the content of Wd+1 and Wd is not BCD.
OFF in all other cases.
=
ON if the result is 0000 0000 after execution.
OFF in all other cases.
CY
ON if a digit in Wd+1 or Wd went from 9 to 0 during exe-
cution.
OFF in all other cases.
Incremented every cycle
while CIO 000000 is ON.
: Execution of ++BL(595)
Increment Increment
Incremented only for
up-differentiation.
: Execution of @++BL(595)
Increment
Section 3-10
Wd+1
Wd
Operation
Wd+1: D00101 Wd: D00100
Increment Increment
Wd+1: D00101 Wd: D00100
Increment
367

Advertisement

Table of Contents
loading

Table of Contents