14
12.98 User Stock Removal Programs
14.6 Calculate circle data: CALCDAT
14
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
14-479
14.6 Calculate circle data: CALCDAT
Programming
VARIB = CALCDAT(PT[n,2],NO,RES)
Explanation of the parameters
VARIB
Variable for status
TRUE = circle, FALSE = no circle
PT[n,2]
Points for calculation
n = number of points (3 or 4); 2 = point coordinates
NO.
Number of points used for calculation: 3 or 4
RES[3]
Variable for result: specification of circle center point coordinates and
radius;
0 = abscissa, 1 = ordinate of circle center point; 2 = radius
Function
Calculation of radius and circle center point coordinates
from three or four known circle points.
The specified points must be different.
Where 4 points do not lie directly on the circle an
average value is taken for the circle center point and
the radius.