![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222203.webp)
4
Using
Tool
FZ4 User's Manual
Using Custom Command
201
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>
The logical expression (Boolean expression) for controlling processing.
<Do statement within the block>
Statement to be repeatedly executed (statement).
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:
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>
X coordinate of the points to get the distance (double-precision).
<Y Coordinate>
Y coordinate of the points to get the distance (double-precision).
<Straight Line
Component>
Parameter array of the straight line to get the distance (double-precision type array).
Acesst 1.0 6251194
Содержание FZ4 Series
Страница 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Страница 12: ...1 Before Operation 10 Operation Flow FZ4 User s Manual Operation Flow Here describes the operation flow...
Страница 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Страница 112: ...3 Performing Test Measurement Starting Operation 110 Useful Functions for Operation FZ4 User s Manual...
Страница 326: ...4 Using Tool 324 Remotely Operating the Controller Remote Operation FZ4 User s Manual Enter the IP address...
Страница 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Страница 351: ...6 Changing the System Environment FZ4 User s Manual Setting the System Operation Environment 349 Communication...
Страница 566: ......
Страница 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Страница 654: ...652 FZ4 User s Manual...
Страница 655: ......