Straight line LN

Application

Straight lines LN are a prerequisite for 3D compensation. Within straight lines LN, a surface normal vector defines the direction of the 3D tool compensation. An optional tool vector defines the tool angle of inclination.

Requirements

  • Software option Adv. Function Set 2 (#9 / #4-01-1)
  • NC program created with a CAM system
  • Straight lines LN cannot be programmed directly on the control, but require a CAM system.

  • CAM-generated NC programs

Description of function

As with a straight line L, a straight line LN is used to define the target point coordinates.

Straight line L

In addition, the straight lines LN contain a surface normal vector as well as an optional tool vector.

The TNC7 basic can move up to four axes simultaneously. If an NC block commands movement of more than four axes, the control displays an error message.If the axis position does not change, you can nevertheless program more than four axes.

Input

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.

LN X+31.737 Y+21.954 Z+33.165 NX+0.2637581 NY+0.0078922 NZ–0.8764339 TX+0 TY–0.8764339 TZ+0.2590319 F1000 M128

The NC function includes the following syntax elements:

Syntax element

Meaning

LN

Syntax initiator for straight line with vectors

X, Y, Z

Coordinates of the straight-line end point

NX, NY, NZ

Components of the surface normal vector

Optional syntax element

TX, TY, TZ

Components of the tool vector

Optional syntax element, only effective in combination with FUNCTION TCPM or M128

R0, RL or RR

Tool radius compensation

Tool radius compensation

Optional syntax element

F, FMAX, FZ, FU or F AUTO

Feed rate

Feed rate F

Optional syntax element

M

Additional function

Optional syntax element

Notes

  • In the NC syntax, the order must be X,Y, Z for the position and NX, NY, NZ as well as TX, TY, TZ for the vectors.
  • Make sure to always program all three vector components, as the control will not take over any values from the previous NC block.
  • HEIDENHAIN recommends using normalized vectors with at least seven decimal places. This enables you to achieve high accuracy and avoid possible drops in infeed during machining operations.
  • The 3D tool compensation using surface normal vectors is effective for the coordinate data specified for the main axes X, Y, Z.

Definition

Normalized vector
A normalized vector is a mathematical quantity possessing a magnitude of 1 and a direction. The direction is defined by the components X, Y and Z. The vector amount corresponds to the root of the sum of the squares of its components.