Omron FZ4 Series User Manual page 204

Vision sensor
Table of Contents

Advertisement

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.
4
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#=SUMDIST#+DIST#(I&)
Next
Erase POSX#(),POSY#(),PARM#(),DIST#()
Get the available space of the drive.
Dskf(<Drive Name>)
Parameters
<Drive Name>
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.
202
Using Custom Command
Lsqumeth command (p.238)
The drive name (character string) to get the available space.
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents