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

17.6 Calculate circle data (CALCDAT)

Example
Contour elements 0 to 2 in table KTAB should be executed block-by-block.
Program code
N10 EXECTAB(KTAB[0])
N20 EXECTAB(KTAB[1])
N30 EXECTAB(KTAB[2])
17.6
Calculate circle data (CALCDAT)
Function
Using the
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>)
Meaning
CALCDAT
<status>
<circle points>[]
<number>
<result>[3]
638
Comment
; Traverse element 0 of table KTAB.
; Traverse element 1 of table KTAB.
; Traverse element 2 of table KTAB.
command, you can calculate the radius and the circle center point
CALCDAT
Command to calculate the radius and center point coordinates of
a circle from 3 or 4 points
Variable for the circle calculation status
Type:
Value:
Variable to specify the circle points
using parameters
<number>
<type>
Parameter for the number of the points used for the calculation
(3 or 4)
Variable for result:
Circle center point coordinates and radius
0
1
2
BOOL
TRUE
The specified points lie on a circle.
FALSE
The specified points do not lie on a circle.
Number of circle points (3 or 4)
Type of coordinate data,
e.g. 2 for 2-point coordinates
Circle center point coordinate: Abscissa value
Circle center point coordinate: Ordinate value
Radius
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents