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

  • Advanced Functions Set 2 software option (#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

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

TX, TY, TZ

Components of the tool vector

Optional syntax element

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.
  • The NC syntax of LN blocks must always indicate all of the coordinates and all of the surface-normal vectors, even if the values have not changed 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.