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

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

Advertisement

User stock removal programs

15.6 Calculate circle data (CALCDAT)

15.6
Calculate circle data (CALCDAT)
15.6
Function
Using the CALCDAT command, you can calculate the radius and the circle center point
coordinates from the three or four points known along the circle 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.
Syntax
<Status>=CALCDAT(<circle points>[<number>,<type>],<number>,<result>)
Significance
CALCDAT
<status>
<circle points>[]
<number>
<result>[3]
Note
Please note that the variables must be defined before they are used.
818
Command to calculate the radius and center point coordinates
of a circle from 3 or 4 points
Variable for the circle calculation status
Type:
BOOL
Value:
TRUE
FALSE
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
Parameter for the number of the points used for the calculation
(3 or 4)
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
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
The specified points lie on a circle.
The specified points do not lie on a
circle.
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents