Loop Control-Loop<009>/Lend<010 - Omron SYSMAC CV Series Operation Manual

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Block Programming Instructions
Execution Flow Examples
0000
00
5-38-6
Loop Control–LOOP<009>/LEND<010>
Ladder Symbol
LOOP<009>
LEND<010>
LEND<010>
LEND<010> NOT
Description
Precautions
When using EXIT<006> without an bit operand, the instructions used to create
the execution condition for EXIT<006> must begin with LD.
When CIO 000000 is OFF, the block program is executed as normal. If
CIO 000001 turns ON, however, A is executed and then B is skipped and
program control jumps to BEND<001>. Section B of the program will contin-
ue to be skipped until CIO 000001 turns OFF again.
(250)
BPRG
EXIT<006> 000001
BEND<001>
C
B
B
LOOP<009> and LEND<010> are used to create a loop that is repeatedly
executed until the LOOP END condition becomes YES. LOOP<009> desig-
nates the beginning of the loop program, and a LEND<010> or LEND<010>
NOT instruction specifies the end of the loop. When LEND<010> or
LEND<010> NOT is reached, program execution will loop back to the next
previous LOOP<009> an exit condition is attained.
A YES LOOP END condition is produced by an ON execution condition for
LEND<010> without an operand, by an ON bit for LEND<010> with an oper-
and bit, or by an OFF bit for LEND<010> NOT with an operand bit.
LD, possibly in combination with AND or OR, must be used to create an
execution condition for LEND<010> when used without an operand bit.
Note Execution inside a loop does not refresh I/O data. If I/O data must be re-
freshed during the loop, use IORF(184).
Conditional block branching can be used within a loop, but the entire
branch operation must be within the loop.
Correct:
LOOP<009>
IF<002>
IF<002>
Address Instruction
00
000000
000001
A
000100
B
000200
Operand Data Area
B: Bit
CIO, G, A, T/C
Incorrect:
LOOP<009>
IF<002>
IF<002>
Section 5-38
Operands
LD
000000
BPRG(250)
A
EXIT<006>
000001
B
BEND<001>
C
(CVM1 V2)
00
445

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents