Omron FZ4 Series User Manual page 203

Vision sensor
Table of Contents

Advertisement

The execution of the statements between Do and Loop are repeated as long as the
conditions continue to be fulfilled.
Do <Do statement within the block>
Loop While <Logical Expression>
Parameters
<Logical Expression>
<Do statement within the block>
Return Value
None.
Description
While the <Logical Expression> is true (not 0), the <Do statement within the block> is repeatedly
executed.Refer to Calculation for details on logical expressions and Boolean values.
Reference:
Calculation (p.159)
The Exit Do command is used to forcefully exit the Do - Loop While command.
Control is moved from outside the Do block to within using the Goto command, etc. Moving control from
inside the block to outside it cannot be done.
Example
NUM&=0
Do
NUM&=NUM&+1
Loop While NUM<100
Print NUM&
The result is as follows:
100
Get the shortest distance between the specified line and 2 points.
Dposline(<X Coordinate>, <Y Coordinate>, <Straight Line Component>)
Parameters
<X Coordinate>
<Y Coordinate>
<Straight Line
Component>
FZ4 User's Manual
The logical expression (Boolean expression) for controlling processing.
Statement to be repeatedly executed (statement).
X coordinate of the points to get the distance (double-precision).
Y coordinate of the points to get the distance (double-precision).
Parameter array of the straight line to get the distance (double-precision type array).
Using Custom Command
4
201

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents