Omron 3G3MX2 Series User Manual page 119

Drive programming
Hide thumbs Also See for 3G3MX2 Series:
Table of Contents

Advertisement

6 Drive Programming Commands
For/Next
Command
Executes <command set> repeatedly until <vari-
able> started with <start value> reaches <end
value>. In every time of execution, <incremental
value> is added to <variable>. When the "next"
command is executed, a judgment with <end
value> is executed and <incremental value> is
added to <variable>.
 Example
Block number
1 to 4
Assigns 1 to U(01) and the value of U(01) to U(00). Waits for 1.00 second with the "wait" com-
mand. If U(01) is less than 8, 1 is added to U(01) and the next command after "for" is executed.
Goes to the next step after the "next" command if U(01) is equal to or greater than 8.
6 - 18
Description
Flowchart method
Flowchart
Variable: any variable
Start value: initial value. This is the value
assigned to the variable in the first loop.
Constant (range 128 to 127)
End value: a value to exit the loop.
Constant (range 128 to 127)
Incremental value: the variable is incremented
by this value in each loop.
Constant (range 128 to 127)
Command set: one or more commands until
the "next" command. It can contain nested com-
mands (up to eight levels).
Format
Text language method
for <variable> : <start value> to <end value>
step <incremental value>
<command set>
next
Operation
Drive Programming User's Manual (I580-E2)
Argument
Text

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

3g3rx series3g3lx series

Table of Contents