EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

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
Page #1118 background imageLoading...
Page #1118 background image
3. Instructions
1080
CS/CJ/NSJ Series Instructions Reference Manual (W474)
LOOP/LEND/LEND NOT
Applicable Program Areas
*1 LOOP(809), LEND(810), and LEND(810) NOT must be used in block programming regions even within subroutines and
interrupt tasks.
Operands
z Operand Specifications
*1 CJ2 CPU Units only.
Flags
Instruction Mnemonic Variations
Function
code
Function
Loop Control
LOOP --- 809 Indicates the beginning of the loop (LOOP to LEND).
LEND --- 810
Indicates the end of the loop (LOOP to LEND). LOOP to
LEND is repeated until the execution condition (when an
operand is not specified) or the specified bit (when an
operand is specified) turns ON.
LEND NOT --- 810
Indicates the end of the loop (LOOP to LEND NOT). LOOP
to LEND NOT is repeated until the specified bit turns OFF.
Symbol
LOOP LEND (LEND NOT)
Operation without an operand (operation by execution condition)
Operation with an operand
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage Not allowed OK OK
OK*
1
OK*
1
Not allowed
Operand Description Data type Size
B Bit operand BOOL 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
B OKOKOKOKOKOK
OK*
1
OK*
1
--- --- --- --- --- OK OK OK OK ---
Name Label Operation
Error Flag ER • ON if a Loop Control Instruction is not in a block program.
• OFF in all other cases.
LOOP(809)
Execution condition LEND(810)
LEND(810)
LEND(810) NOT B
B
B: Bit operand
B: Bit operand

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals