![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222223.webp)
4
Using
Tool
FZ4 User's Manual
Using Custom Command
221
Controls the flow of processing in accordance with the judgement conditions of the logical expression.
If <Logical Expression> Then
<Then statement within the block>
[Elseif <Logical Expression> Then
<Elseif statement within the block>
-]
[Else
<Else statement within the block>]
Endif
Parameters
<Logical Expression>
The logical expression (Boolean expression) for controlling processing.
<Then statement within the
block>
The statement to be executed (statement) when the result of the <Expression>
after If is true.
<Elseif statement within the
block>
The statement to be executed (statement) when the result of the <Expression>
after Elseif is true.
<Else statement within the
block>
The statement to be executed (statement) when all the <Expressions> are false.
Return Value
None.
Description
Controls the flow of processing in accordance with the Logical Expression.
If the condition of the <Logical Expression after If is true (other than 0), the <Then statement within the
block> right after it is executed.Refer to Calculation for details on logical expressions and Boolean
values.
Reference:
If the condition of the <Logical Expression after Elseif is true (other than 0), the <elseifstatement within
the block> right after it is executed.
When all of the <Logical Expressions> are false, the elsestatement within the block> is executed.
Multiple Elseif clauses can be used. It is also possible to omit it.
The Else clause can be omitted.
The Endif statement cannot be omitted.
When multiple <Logical Expressions> are true, the statement within the block of the first <Logical
Expression> that is true is executed.
Moving control from outside the select block to the inside or moving control from inside it to the outside
using statements such as the goto statement is not possible.
Example
Reference the correlation value and change the message to be displayed on the monitor.
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: ......