Trigonometric functions

You can use these functions to calculate trigonometric functions for purposes such as programming variable triangular contours.

The control provides the following functions:

Syntax

Meaning

D06

Sine

Calculate and assign the sine of an angle in degrees

D07

Cosine

Calculate and assign the cosine of an angle in degrees

D08

Root of the sum of squares

Calculate and assign the length based on two values (e.g., to calculate the third side of a triangle).

D13

Angle

Calculate and assign the angle from the opposite side and the adjacent side using arctan or from the sine and cosine of the angle (0 < angle < 360°)

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

  • Change the following contents as needed:
  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions, e.g. with M91
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

N110 D06 Q20 P01 –Q5

; Sine, Q20 = sin(–Q5)

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

  • Change the following contents as needed:
  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions, e.g. with M91
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

N110 D07 Q21 P01 –Q5

; Cosine, Q21 = cos(–Q5)

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

  • Change the following contents as needed:
  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions, e.g. with M91
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

N110 D08 Q10 P01 +5 P02 +4

; Root of the sum of squares, Q10 = (52+42)

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

  • Change the following contents as needed:
  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions, e.g. with M91
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

N110 D13 Q20 P01 +10 P02 –Q1

; Angle, Q20 = arctan(25/–Q1)

D corresponds to the FN Klartext syntax.

The numbers of the ISO syntax correspond to the numbers of the Klartext syntax.

P01, P02 etc. are considered as placeholders (e.g., for arithmetic operators included in the Klartext syntax).

Trigonometric functions folder

 
Tip

HEIDENHAIN recommends direct formula input, as this allows you to program multiple arithmetic operations in one NC block.

Formulas in the NC program