EasyManua.ls Logo

Omron 3G3RX2 Series - Page 114

Omron 3G3RX2 Series
176 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
Loading...
6 DriveProgramming Commands
6 - 18
DriveProgramming User’s Manual (I622-E1)
Example
For/Next
Command Description Argument
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>.
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
Flowchart method Text language method
for <variable> : = <start value> to <end value>
step <incremental value>
<command set>
next
Flowchart Text
Block number
Operation
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.

Table of Contents

Other manuals for Omron 3G3RX2 Series

Related product manuals