EasyManua.ls Logo

Omron 3G3RX Series - Page 116

Omron 3G3RX Series
196 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 - 15
6 Drive Programming Commands
Drive Programming User’s Manual (I580-E2)
6-4 Program Control Commands
6
Example
If
Command Description Argument
Jumps to <label> when <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)
Label: a name that is used to identify a particu-
lar function block in the task.
Format
Flowchart method Text language method
if <condition> goto <label>
Note To set the label name in flowchart, right-click the command and select [Set Label] from the
menu. You can specify any name.
Flowchart Text
Block number
Operation
1 If U(00) is 1, it jumps to the block 3: condit. If U(00) is not 1, it goes to the next block 2.
2 Jumps to the block 1: loop_ unconditionally.
3 to 4 Adds 1 to U(01) and jumps to the block 1: loop_ unconditionally.

Table of Contents

Related product manuals