
4
Using
Tool
238
Using Custom Command
FZ4 User's Manual
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)
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>
The number of coordinates that will be calculated for the approximate line (integer).
<X Coordinate>
X coordinate array of the point for calculating the approximate line (double-precision
array).
<Y Coordinate>
Y coordinate array of the point for calculating the approximate line (double-precision
array).
<Straight Line
Component>
Approximate straight line parameter (double-precision array).
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.
Acesst 1.0 6251194
Summary of Contents for FZ4 Series
Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Page 566: ......
Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Page 654: ...652 FZ4 User s Manual...
Page 655: ......