Calculate Circle Data (Calcdat) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

14.6

Calculate circle data (CALCDAT)

14.6
Function
Calculation of radius and circle center point coordinates from three or four known circle
points. The specified points must be different. Where four points do not lie directly on the
circle an average value is taken for the circle center point and the radius.
Programming
VARIB = CALCDAT (PT[n,2], NUM, RES)
Note
Please note that variables must be defined before they are used.
The specified status indicates whether the three or four known points are on a circle
(VARIB = TRUE) or not (VARIB = FALSE).
Parameters
CALCDAT
VARIB
PT [n,2]
NUM
RES [3]
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Calculate the radiuses and centers of a circle that consists of 3
or 4 points.
Variable for status
TRUE = circle, FALSE = no circle
Points for calculation
n = number of points (3 or 4);
2 = point coordinates
Number of points used for calculation: 3 or 4
Variable for result: specification of circle center point
coordinates and radius;
0 = abscissa, 1 = ordinate of circle center point; 2 = radius
User stock removal programs
14.6 Calculate circle data (CALCDAT)
14-15

Advertisement

Table of Contents
loading

Table of Contents