Omron CS1G/H-CPUxxH Instructions Manual page 382

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

Advertisement

Increment/Decrement Instructions
Flags
Examples
The Equals Flag will be turned ON if the result is 0000, the Carry Flag will be
turned ON when a digit changes from 0 to F, and the Negative Flag will be
turned ON if bit 15 of Wd is ON in the result.
Both the Carry Flag and the Negative Flag will be turned ON when the content
of Wd changes from 0000 to FFFF.
Name
Label
Error Flag
ER
Equals Flag
=
Carry Flag
CY
Negative Flag
N
Operation of – –(592)
In the following example, the content of D00100 will be decremented by 1
every cycle as long as CIO 000000 is ON.
− −
Operation of @– –(592)
The up-differentiated variation is used in the following example, so the content
of D00100 will be decremented by 1 only when CIO 000000 has gone from
OFF to ON.
@− −
Operation
OFF
ON if the content of Wd is 0000 after execution.
OFF in all other cases.
ON if a digit in Wd went from 0 to F during execution.
OFF in all other cases.
ON if bit 15 of Wd is ON after execution.
OFF in all other cases.
Decremented every cycle
while CIO 000000 is ON.
Wd: D00100
Wd: D00100
−1
: Execution of − −(592)
Decrement Decrement Decrement Decrement
Decremented only
for up-differentiation.
Wd: D00100
−1
: Execution of @− −(592)
Decrement
Section 3-10
Wd: D00100
Decrement
361

Advertisement

Table of Contents
loading

Table of Contents