Omron FZ4 Series User Manual page 249

Vision sensor
Table of Contents

Advertisement

Open "C:\input.dat" FOR INPUT As #1
For I&=0 To 255
   DATA$ = Input$(8,#1)
   DATA$(I&)=DATA$
   If Eof(1)<>0 Then Exit For
Next
Close #1
Gets the logical sum of 2 expressions.
<Expression 1> Or <Expression 2>
Parameters
<Expression 1>
<Expression 2>
Return Value
Returns the value of the integer.
The content of the value is the logical sum of the 2 expressions.
Description
It can also be used in an If statement as an Or condition.Refer to Calculation for details on logical
expressions.
Reference:
Calculation (p.159)
Values from -2147483648 to 2147483647 can be specified for <Expression 1> and <Expression 2>.
When the values of <Expression 1> and <Expression 2> are double-precision type, the fractional part is
handled as a rounded value.
Example
Get the logical sum of Value EXP1 and Value EXP2.
EXPALL&=EXP1& Or EXP2&
The result is as follows:(When EXP1=1 and EXP2=4)
EXPALL&=5
Fetches the specified part separated by the specified character from the character string.
Piece$ (<Character String>,<Separation Character>,<Starting No.>,<Ending No.>)
Parameters
<Character String>
FZ4 User's Manual
The expression (integer type) that requests the logical sum.
The expression (integer type) that requests the logical sum.
The separated Character String (character string).
Using Custom Command
4
247

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents