![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222204.webp)
4
Using
Tool
202
Using Custom Command
FZ4 User's Manual
Return Value
Returns the value of the double-precision type number.
The content of the value is the shortest distance between the points and straight line.
Description
Specify the points to get the distance in <X Coordinate> and <Y Coordinate>.
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.
This is mainly used to get the variance and deviation of the basic points with regard to lines gotten by the
Lsqumeth command.
Reference:
Example
Get the variance and deviation with respect to the straight lines gotten from the 4 points.(Please refer to
the Lsqumeth command for the method of determining a straight line).
Dim POSX#(3),POSY#(3),PARM#(2),DIST#(3)
'Initialize the line
For I&=0 To 3
GetUnitData I&+1,"X",POSX#(I&)
GetUnitData I&+1,"Y",POSY#(I&)
Next
'Calculate the component of line
Lsqumeth 4,POSX#(),POSY#(),PARM#()
SUMDIST#=0
For I&=0 To 3
'Calculate the shortest distance between the straight line and point.
DIST#(I&)=Dposline(POSX#(I&),POSY#(I&),PARM#())
SUMDIST#=SDIST#(I&)
Next
Erase POSX#(),POSY#(),PARM#(),DIST#()
Get the available space of the drive.
Dskf(<Drive Name>)
Parameters
<Drive Name>
The drive name (character string) to get the available space.
Return Value
Returns the value of the integer.
The content of the value is the byte expression of the amount of free space available on the drive.
Acesst 1.0 6251194
Содержание FZ4 Series
Страница 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Страница 12: ...1 Before Operation 10 Operation Flow FZ4 User s Manual Operation Flow Here describes the operation flow...
Страница 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Страница 112: ...3 Performing Test Measurement Starting Operation 110 Useful Functions for Operation FZ4 User s Manual...
Страница 326: ...4 Using Tool 324 Remotely Operating the Controller Remote Operation FZ4 User s Manual Enter the IP address...
Страница 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Страница 351: ...6 Changing the System Environment FZ4 User s Manual Setting the System Operation Environment 349 Communication...
Страница 566: ......
Страница 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Страница 654: ...652 FZ4 User s Manual...
Страница 655: ......