Open-source · self-paced · interactive 3D practice

Learn Heidenhain Klartext programming online

Build a complete CNC milling program step by step. Each topic explains the essential blocks, then opens a checked exercise in the real TNC Sim editor and 3D simulator.

From blank to complete part

A practical Klartext learning path

Begin with program structure, tool setup and safe linear moves. Continue through arcs, corner transitions, compensation, cycles, labels, polar coordinates and a final parametric contour. The pages below are readable references; the linked exercises run inside TNC Sim.

Course contents

Klartext lessons

Choose a reference page or open its interactive exercise.

  1. 01

    Program skeleton and BLK FORM

    Learn the BEGIN PGM, END PGM and BLK FORM blocks used to define a Heidenhain Klartext program and its 3D workpiece blank.

  2. 02

    TOOL CALL, spindle speed and feed

    Learn how TOOL CALL selects a tool, working axis, spindle speed and feed in a Heidenhain Klartext program.

  3. 03

    Linear moves, FMAX and safe approach

    Learn how Heidenhain L blocks position the tool with rapid FMAX moves and controlled feed moves in Klartext.

  4. 04

    Incremental coordinates and a first slot

    Learn how IX and IY program incremental Klartext moves while cutting a simple slot in the TNC Sim 3D simulator.

  5. 05

    Circular arcs with CC, C and CR

    Learn how CC defines a circle centre and how C and CR create circular arcs in Heidenhain Klartext programming.

  6. 06

    Corner rounding with RND and chamfers with CHF

    Learn how RND creates a tangent corner radius and CHF inserts a chamfer between straight Klartext contour blocks.

  7. 07

    Radius compensation with RL, RR and R0

    Learn how RL and RR offset the tool centre from a Klartext contour and how R0 cancels radius compensation.

  8. 08

    Drilling with CYCL DEF 200

    Learn the key Q parameters of Heidenhain CYCL DEF 200 and call the drilling cycle at programmed hole positions.

  9. 09

    Subprograms, labels and Q parameters

    Learn how LBL defines a reusable Klartext program section, CALL LBL invokes it and Q parameters store values.

  10. 10

    Polar coordinates with CC and LP

    Learn how a CC pole, polar radius PR and polar angle PA define Klartext positions with LP blocks.

  11. 11

    Circular pocket milling with CYCL DEF 208

    Learn the main Q parameters for Heidenhain CYCL DEF 208 circular pocket milling and call the cycle in TNC Sim.

  12. 12

    Precision holes with drilling and Cycle 201 reaming

    Learn a spot, drill and ream sequence using Heidenhain CYCL DEF 201 for a precision hole.

  13. 13

    Thread tapping with CYCL DEF 209

    Learn how Heidenhain CYCL DEF 209 uses thread depth, pitch and chip-breaking parameters to tap a prepared hole.

  14. 14

    Chamfering with DL and DR tool offsets

    Learn how TOOL CALL DL and DR delta offsets position a countersink for programmed edge chamfering in TNC Sim.

  15. 15

    Parametric contours with Q parameters

    Learn how Q parameters drive one reusable Klartext profile through milling and chamfering passes.