Trigonometric Functions - Siemens SINUMERIK 828D Commissioning Manual

Turning and milling, valid for cnc software version 4.5
Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

8.9

Trigonometric functions

Overview of the functions
The script language offers various trigonometric functions. The function names are reserved
and cannot be overloaded.
Trigonometric functions and inverse functions:
Name
sin
cos
tan
arcsin
arccos
arctan
Sine, cosine, tangent description
The function calculates the sine, cosine, tangent of the value transferred.
Programming
Designation:
Syntax:
Designation:
Syntax:
Designation:
Syntax:
Parameters:
Example
<let name= "sin_val" type="double"></let>
<function name="sin" return="sin_val"> 20.0 </function>
Turning and Milling
Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0
Function
Sine
Cosine
Tangent
Arc sine
Arc cosine
Arc tangent
sin
<function name="sin" return="<double val>"> double </function >
cos
<function name="cos" return="<double val>"> double </function >
tan
<function name="tan" return="<double val>"> double </function >
double
Angle (0° to 360°)
Easy Extend
8.9 Trigonometric functions
247

Advertisement

Table of Contents
loading

Table of Contents