Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 1062

Table of Contents

Advertisement

3. Instructions
• If execution is to wait until for a specified count has been reached (e.g., for step progressions with
counters), then CNTW(814)/CNTWX(818) is used.
• If execution is to be repeated within part of a block program until a condition is met, then LOOP(809)
and LEND(810) are used.
• If execution of the block program is to be ended in the middle based on an execution condition, the
EXIT(806) is used.
• If another block program that is being executed is to be paused or restarted from within a block
program, then BPPS(811) and BPRS(812) are used.
Instructions Taking Execution Conditions within Block Programs
The following instruction can take execution conditions within a block program.
Instruction type
Block programming instructions
Ladder diagram instructions
Instructions with Application Restrictions within Block Programs
The instructions listed in the following table can be used only to create execution conditions for IF(802),
WAIT(805), EXIT(806), LEND(810), CJP(510, or CJPN(511) and cannot be used by themselves. The
execution of these instructions may be unpredictable if used by themselves or in combination with any
other instructions.
Instructions with usage restrictions
(Instructions used only as execution conditions IF, WAIT, EXIT, and LEND)
Mnemonic
LD/LD NOT
AND/AND NOT
OR/OR NOT
UP/DOWN
>, <,=, >=, <=, <> (S) (L)
LD TST/TST NOT
AND TST/TST NOT
OR TST/TST NOT
>$, <$,=$, >=$, <=$, <>$
Good Example
0.00
1.00
D1
1024
Instruction name
IF (NOT)
ONE CYCLE AND WAIT (NOT)
EXIT
LOOP END
CONDITIONAL JUMP
CONDITIONAL JUMP NOT
LOAD/LOAD NOT
AND/AND NOT
OR/OR NOT
CONDITION ON/CONDITION OFF
Symbol Comparison Instruction (not right-hand instructions)
LOAD Bit Test Instructions
AND Bit Test Instructions
OR Bit Test Instructions
Text String Comparison Instruction
Bad Example
0.00
Used as
1.00
execution
D1
condition
for IF.
IF(802) (NOT)
WAIT(805) (NOT)
EXIT(806) NOT
LEND(810) NOT
CJP(510)
CJPN(511)
Name
Cannot be
used as
execution
10
condition
for
MOV(021).
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic

Advertisement

Table of Contents
loading

Table of Contents