Instruction Variations - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

General Instruction Characteristics
Variation
Instruction type
Non-
Output instructions
differentiated
(instructions requiring
an execution condi-
tion)
Input instructions
(instructions used as
execution conditions)
Upwardly
Output instructions
differentiated
(with @ prefix)
Input instructions
(instructions used as
execution conditions)
Downwardly
Output instructions
differentiated
(with % prefix)
Input instructions
(instructions used as
execution conditions)
1-1-3

Instruction Variations

4
• An upwardly differentiated instruction is executed only once after its exe-
cution condition goes from OFF to ON.
• A downwardly differentiated instruction is executed only once after its exe-
cution condition goes from ON to OFF.
Operation
The instruction is exe-
cuted every cycle while
the execution condition is
true (ON).
The bit processing (such
as read, comparison, or
test) is performed every
cycle. The execution con-
dition is true while the
result is ON.
The instruction is exe-
cuted just once when the
execution condition goes
from OFF to ON.
The bit processing (such
as read, comparison, or
test) is performed every
cycle. The execution con-
dition is true for one cycle
when the result goes
from OFF to ON.
The instruction is exe-
cuted just once when the
execution condition goes
from ON to OFF.
The bit processing (such
as read, comparison, or
test) is performed every
cycle. The execution con-
dition is true for one cycle
when the result goes
from ON to OFF.
Note The downwardly differentiated option (%) is available only for the LD, AND,
OR, and RSET instructions. To create downwardly differentiated variations of
other instructions, control the execution of the instruction with work bits con-
trolled with DIFD(014) or DOWN(522).
The variation prefixes (@, %, and !) can be added to an instruction to create a
differentiated instruction or provide immediate refreshing.
Variation
Differentiation
Upwardly dif-
ferentiated
Downwardly
differentiated
Immediate refreshing
Format
Output instruction
executed each cycle
Input instruction
executed each cycle
Instruction executed
once for upward
differentiation
Upwardly differentiated
input instruction
%Instruction
executed once for
downward
differentiation
Downwardly differentiated
input instruction
Prefix
Operation
@
Creates an upwardly differentiated instruc-
tion.
%
Creates a downwardly differentiated instruc-
tion.
!
The instruction's operand data in the I/O
Area will be refreshed when the instruction
is executed.
Section 1-1
Example
MOV
@MOV
MOV(021) executed once
for each OFF to ON transi-
tion in CIO 000102.
ON execution condition created
for one cycle only for each OFF
to ON transition in CIO 000103.
0001
02
%SET
SET executed once for
each ON to OFF transition
in CIO 000102.
0001
03
ON execution condition created
for one cycle only for each ON to
OFF transition in CIO 000103.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents