CNC Controllers

Heidenhain Post Processor Development

Heidenhain TNC controls use Klartext, a conversational programming language that looks nothing like ISO G-code. Posts for Heidenhain must be written specifically for it.

What Klartext looks like

0  BEGIN PGM BRACKET MM
1  BLK FORM 0.1 Z X+0 Y+0 Z-20
2  BLK FORM 0.2 X+100 Y+80 Z+0
3  TOOL CALL 5 Z S8000 F2000
4  L Z+100 R0 FMAX M3
5  L X-10 Y+10 R0 FMAX M8
6  L Z-2 R0 F500
7  L X+110 R0 F2000
8  CC X+110 Y+30
9  C X+110 Y+50 DR+
10 L Z+100 R0 FMAX
11 M30
12 END PGM BRACKET MM

Linear moves use L, arcs use a circle centre CC and C with direction DR+/DR-, and R0/RL/RR control radius compensation.

Heidenhain features used by posts

FeatureSyntax
Tool callTOOL CALL 5 Z S8000
Drilling cyclesCYCL DEF 200 DRILLING with Q parameters, CYCL CALL or M99
Tolerance / smoothingCYCL DEF 32 TOLERANCE
Tilted working planePLANE SPATIAL, PLANE VECTOR, PLANE RESET
Tool centre pointM128 or FUNCTION TCPM
SubprogramsLBL 1 ... LBL 0, CALL LBL 1

Example: drilling cycle

CYCL DEF 200 DRILLING ~
  Q200=2    ;SET-UP CLEARANCE ~
  Q201=-25  ;DEPTH ~
  Q206=150  ;FEED RATE FOR PLNGNG ~
  Q202=5    ;PLUNGING DEPTH ~
  Q210=0    ;DWELL TIME AT TOP ~
  Q203=+0   ;SURFACE COORDINATE ~
  Q204=50   ;2ND SET-UP CLEARANCE ~
  Q211=0    ;DWELL TIME AT DEPTH
L X+20 Y+20 R0 FMAX M99
L X+60 Y+20 R0 FMAX M99

Klartext or ISO?

Many TNC controls can also run ISO (DIN/ISO) programs, but most Heidenhain users prefer Klartext because operators can read and edit it easily, and advanced functions are best supported there.

Versions matter

TNC 426/430, iTNC 530, TNC 620/640 and TNC7 differ in available functions and cycles. The post must match the control version and options on the machine.

A Heidenhain post should produce Klartext that looks like a skilled operator wrote it.

Heidenhain post development

See our CNC post processor development service and SolidCAM 5-axis output for Heidenhain.

EM
ENGIMANDI CNC Team

We develop, customise and commission CNC post processors for Fusion, NX CAM, Mastercam, SolidCAM and other CAM systems.