EasyManua.ls Logo

Omron 3G3RX2 Series - Page 115

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 - 19
6 DriveProgramming Commands
DriveProgramming User’s Manual (I622-E1)
6-4 Program Control Commands
6
Example
While/Wend
Command Description Argument
Executes <command set> while a condition is
met.
Condition
: a comparison between two variables
or constants with the format <left hand value>
<comparison operator> <right hand value>.
Left hand value: any variable or constant
(range 128 to 127)
Comparison operator: =, <, >, <=, >=, or <>
Right hand value: any variable or constant
(range 128 to 127)
Command set: one or more commands until
the “wend” command. It can contain nested
commands (up to eight levels).
Format
Flowchart method Text language method
while <condition>
<command set>
wend
Flowchart Text
Block number
Operation
1 to 4 If X(00) is 1, it adds 1 to U(01), waits for 1.00 second with the “wait” command, and jumps to the
“while” command. If X(00) is not 1, it executes the next command after the “wend” command.
5 Jumps to the block 1: loop_ unconditionally.

Table of Contents

Other manuals for Omron 3G3RX2 Series

Related product manuals