
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
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: ......