Exit/Exit Not - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

EXIT/EXIT NOT

Instruction
Mnemonic
CONDITIONAL
EXIT
BLOCK EXIT
CONDITIONAL
EXIT NOT
BLOCK EXIT NOT
Operation without an operand (operation by execution condition)
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
Not allowed
*1 EXIT(806) and EXIT NOT(806) must be used in block programming regions even within subroutines and interrupt tasks.
Operands
Operand
B
Bit operand
Operand Specifications
Word addresses
Area
CIO
WR
HR
AR
B
OK
OK
OK
OK
*1 CJ2 CPU Units only.
Flags
Name
Error Flag
Function
Operation without an Operand
EXIT(806) can be executed without an
operand. If it is, then an execution condition
must be created for it starting with LD. If the
execution condition is OFF, the rest of the
block program will be executed normally. If the
execution condition is ON, the rest of the
instructions in the block program through
BEND(801) will not be executed.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
Variations
code
When the execution condition is ON (when an operand is not specified), or
when the specified bit is ON (when an operand is specified), the instructions
---
806
from the EXIT instruction to the BEND instruction are not executed and the
block program is exited.
When the specified bit is OFF, the instructions from the EXIT NOT instruction
---
806
to the BEND instruction are not executed and the block program is exited.
Execution condition
EXIT(806)
Block program areas
Step program areas
OK
OK
Description
Indirect DM/EM
@DM
T
C
DM
EM
@EM
1
1
OK
OK
OK*
OK*
Label
ER
Function
Operation with an operand
EXIT(806)
EXIT NOT(806)
Subroutines
1
OK*
Registers
addresses
Con-
stants
*DM
DR
*EM
---
---
---
---
• ON if EXIT(806) or EXIT NOT(806) is not in a block program.
• OFF in all other cases.
Execution condition
3. Instructions
B: Bit operand
B
B
B: Bit operand
SFC action or transition
Interrupt tasks
programs
1
Not allowed
OK*
Data type
Size
BOOL
1
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
OK
OK
OK
Operation
Execution
Execution
condition
condition
OFF
ON
"A" executed. "A" executed.
"B" executed.
Block ended.
3
TR
bits
---
1045

Advertisement

Table of Contents
loading

Table of Contents