Until / Loop - Omron MX2 Series User Manual

Hide thumbs Also See for MX2 Series:
Table of Contents

Advertisement

Drive Programming
Command
Executes <instruction set> until a
<condition> is met.
Until <condition>
<instruction set>
Loop
Example
Flowchart
This code will increment while the digital input is closed. If it is open, then it will stay in the until-loop
portion. The check of the input is every second because of this structure. Digital input has to be
configured in the multifunction input.

Until / Loop

Description
Format
Arguments
• Condition: A comparison between two
variables or constants with the format
<Left hand value><Comparison><Right
Hand Value>
-Left hand value: any variable or constant
(range -128 to 127)
-Comparison: =,<,>,<=,>=,<>
-Right hand value: any variable or
constant (range -128 to 127)
• Instruction set: One or more
instructions, until Loop instruction. It can
contain nested instructions (up to 8 levels)
Text
45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lx seriesRx series

Table of Contents