Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 452

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents