Meaning
CALCDAT: Predefined function to calculate the radius and center point coordinates
of a circle from three or four points
<Status>: Variable for the circle calculation status
Type: BOOL
Value: TRUE The specified points lie on a circle.
FALSE The specified points do not lie on a circle.
<circle points>[]: Variable to specify the circle points
using parameters
<number>: Number of circle points (3 or 4)
<type>: Type of coordinate data,
e.g. 2 for 2-point coordinates
<number>: Parameter for the number of the points used for the calculation (3 or 4)
<result>[3]: Variable for result:
Circle center point coordinates and radius
0 Circle center point coordinate: Abscissa value
1 Circle center point coordinate: Ordinate value
2 Radius
Note
Please note that the variables must be defined before they are used.
Example
Using three points it should be determined as to whether they are located on a circle segment.
ERG [2]
X
70
(65, 20)
(50, 40)
(20, 50)
Y
10
ERG [0]
ERG [1]
20 30 40 50 60
10
20
30
40
50
60
Work preparation
3.24 User stock removal programs
NC programming
1022 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0