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

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

Advertisement

15.6

Calculate circle data (CALCDAT)

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.
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
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
The specified points lie on a circle.
FALSE 
The specified points do not lie on a
circle.
Variable to specify the circle points
using parameters
Number of circle points (3 or 4)
<number>
Type of coordinate data,
<type>
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
User stock removal programs
15.6 Calculate circle data (CALCDAT)
739

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents