EasyManua.ls Logo

Omron CJ - INSTRUCTIONS - Page 380

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3. Instructions
342
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
Example Programming
z Operation of --(592)/--L(593)
The up-differentiated variation is used in the following example, so the content of D100 will be
decremented by 1 only when CIO 0.00 has gone from OFF to ON.
In the following example, the 8-digit hexadecimal content of D101 and D100 will be decremented by 1
every cycle as long as CIO 0.00 is ON.
z --
The --(592) instruction subtracts 1 from the binary content of
Wd. The specified word will be decremented by 1 every
cycle as long as the execution condition of --(592) is ON.
When the up-differentiated variation of this instruction (@ --
(592)) is used, the specified word is decremented only when
the execution condition has gone from OFF to ON.
z --L
The --L(593) instruction subtracts 1 from the 8-digit hexa-
decimal content of Wd+1 and Wd. The content of the speci-
fied words will be decremented by 1 every cycle as long as
the execution condition of --L(593) is ON. When the up-dif-
ferentiated variation of this instruction (@--L(593)) is used,
the content of the specified words is decremented only when
the execution condition has gone from OFF to ON.
Wd
Wd
Wd+1 Wd Wd+1 Wd
D100
0.00
0 0 2 0 0 0 1 F
D100
D100
1
Wd: Wd:
Decremented every cycle
while CIO 0.00 is ON.
Wd+1: Wd: Wd+1: Wd:
Decremented every cycle
while CIO 0.00 is ON.
D101 D100 D101 D100
1
D100
0.00
Decrement Decrement DecrementDecrement
: Execution of − −L(593)

Table of Contents

Related product manuals