WWW.NNC.IR
Macro Reference
412
Vision System FH/FZ5 Series
User’s Manual (Z340)
Usage Cautions
• None.
Example
Calculates the approximate circle and getting the center coordinates and radius from each of the three points
(50, 50), (100, 100), and (150, 50).
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
Dim X&(3), Y&(3)
Rem Assign the three values of the coordinate value to the array.
X&(0) = 50
Y&(0) = 50
X&(1) = 100
Y&(1) = 100
X&(2) = 150
Y&(2) = 50
Rem Calculate the approximate circle and get the center coordinates and the radius.
ApproximationCircle 3, X&(), Y&(), CENTERX#, CENTERY#, RADIUS#
GetUnitData (Reference: X Details (p.552)) Lsqumeth (Reference: X Details (p.610))
UnitData (Reference: X Details (p.778))