WWW.NNC.IR
Macro Reference
611
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
Gets the straight line of the edge of a workpiece from four edge points.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
Dim POSX#(3), POSY#(3), PARAM#(2)
Rem Calculate the edge points from the measurement result.
For I&=0 To 3
GetUnitData I&+1, "X", POSX#(I&)
GetUnitData I&+1, "Y", POSY#(I&)
Next
Rem Get the straight line component.
Lsqumeth 4, POSX#(), POSY#(), PARAM#()
Erase POSX#(), POSY#(), PARAM#(), DIST#()
ApproximationCircle (Reference: X Details (p.411)) Crspoint (Reference: X Details (p.452))
Dposline (Reference: X Details (p.467)) Erase (Reference: X Details (p.512))
GetUnitData (Reference: X Details (p.552)) UnitData (Reference: X Details (p.778))