Omron FZ4 Series User Manual page 211

Vision sensor
Table of Contents

Advertisement

Description
Truncates everything after the radix point for the specified value and return the value of the integer part.
For example, Fix(-1.5) would return -1.Fix(1.5) returns 1.
When an argument has been given a negative value, the int function returns an integer that does not
exceed the maximum negative of the argument and in relation to this, Fix returns the minimum negative
integer exceeding the argument.For example, if -7.2 is specified as the argument, the int function returns
-8 and the Fix function returns -7.
Example
Truncate the measurement results after the radix point and output them.
NUMBER1&=Fix(9.7)
NUMBER2&=Fix(-9.7)
NUMBER3&=Fix(-9.2)
The results are as follows:
NUMBER1&=9
NUMBER2&=-9
NUMBER3&=-9
Repeats and executes the statements between the For statement and the Next statement.
For <Variable Name>=<Initial Value> To <Ending Value>[ Step <Increment>]
-
Next [<Variable Name>]
Parameters
<Variable Name>
<Variable Name>
<Ending Value>
<Increment>
Return Value
None.
FZ4 User's Manual
Loop control counter variable name (integer).
The initial value of the loop control counter variable (integer).
The ending value of the loop control counter variable (integer).
The increment of the loop control counter variable (integer).
Using Custom Command
4
209

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents