Omron FZ4 Series User Manual page 269

Vision sensor
Table of Contents

Advertisement

<Case statement within the
block>
<Case Else statement
within the block>
Return Value
None.
Description
Branching to each statement is done in accordance with the result of the <Expression>.
An integer value or a formula can be specified in the <Expression>.Processing will branch to the
<Value> of Case that matches the result.
When no formula matches, processing branches to that defined by Case Else.
Multiple Case statements can be used.
The Case statement and Case Else statement can be omitted.
The End Select statement can be omitted.
When multiple expression results exist that match the Case statement <Value>, only the first Case
statement from among them 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
Distribute the processing according to the judge result of latest unit.
RESULT&=UnitJudge(Unitnum&-1)
Select RESULT&
Case 0
   Print "UnMeasured"
Case 1
   Print "Judge OK"
Case -1
   Print "Judge NG"
END SELECT
Send data
SendData <ioIdent>, <outputData()>, <outputSize>[, <parameter()>, <parameterSize>]
Parameters
<ioIdent>
<outputData()>
<outputSize>
<parameter()>
<parameterSize>
FZ4 User's Manual
The statement to be executed (statement) when the result of the <Expression> is
equal to the <Value>.
The statement to be executed (statement) when the result of the <Expression> is not
equal to the <Value>.
Identification name (string) of I/O module that executes send processing
Data to be output (string)
The size of data which is to be output (integer)
Parameter of send processing (integer array type)
Size of send processing parameter (integer)
Using Custom Command
4
267

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents