Omron FZ4 Series User Manual page 240

Vision sensor
Table of Contents

Advertisement

Description
The base of the natural log is e=2.71828...
The number specified in the <Expression> must be a positive number.
Specify either an integer type or double-precision type real number in the <Expression>.
Example
Get the natural log of Variable X.
XLOG#=Log(X&)
The result is as follows:(When X=25)
4
XLOG#=3.21887582487
Gets the approximate line from multiple point coordinates using the method of least squares.
Lsqumeth <No. of Coordinates>,<X Coordinate>,<Y Coordinate>,<Straight Line Component>
Parameters
<No. of Coordinates>
<X Coordinate>
<Y Coordinate>
<Straight Line
Component>
Return Value
None.
Description
Specify the array to store the point of each coordinate in the <X Coordinate> and <Y Coordinate>. When
the specified <Number of Coordinates> is less than the number of array elements, an error will occur.
The parameters a, b and c that make up the straight line ax+by+c=0 are stored in <Straight Line
Component>."a" to "c" are each stored in array elements 0 to 2.
It is necessary to specify a number greater than or equal to 2 for <Number of Coordinates>.
When all of the specified points are the same coordinate, 0 is stored in the a, b and c listed above.
This is mainly used to get the straight line expression of an edge from the edge points measured by
multiple Edge measurements.
Example
Calculate the line expression of an edge on a piece of work from 4 edge points.
238
Using Custom Command
The number of coordinates that will be calculated for the approximate line (integer).
X coordinate array of the point for calculating the approximate line (double-precision
array).
Y coordinate array of the point for calculating the approximate line (double-precision
array).
Approximate straight line parameter (double-precision array).
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents