HEIDENHAIN TNC Block Quick Reference: BEGIN/BLK FORM/TOOL CALL/L/C/CR/APPR/CYCL DEF

This page compresses the most-used HEIDENHAIN TNC (Klartext) program blocks into lookup tables: match when writing a program, match when reading someone else's. The full line-by-line explanation is in the main article "HEIDENHAIN TNC Conversational Programming for Beginners".

Based on the common TNC 620 / 320 / 128 syntax; soft keys and cycle numbers vary by model/software version – follow your machine’s manual.

1. Program structure: the recommended 8-step layout

  1. Call tool, define tool axis
  2. Retract the tool (to a safe height)
  3. Pre-position in the working plane near the contour start
  4. Move along the tool axis above the part or to depth (switch on spindle/coolant if needed)
  5. Approach the contour (APPR)
  6. Machine the contour
  7. Depart the contour (DEP)
  8. Retract, end program (END PGM)
广告
HEIDENHAIN TNC skeleton and elements: program skeleton from BEGIN to END on the left, motion elements and common M codes on the right

2. Most-used blocks

BlockExamplePurpose
BEGIN PGMBEGIN PGM NAME MMProgram start, name, unit
BLK FORM 0.1BLK FORM 0.1 Z X+0 Y+0 Z-40Blank: spindle axis + MIN point
BLK FORM 0.2BLK FORM 0.2 X+100 Y+100 Z+0Blank: MAX point
TOOL CALLTOOL CALL 5 Z S5000Call tool 5, axis Z, 5000 rpm
LL X+90 Y+90 R0 F200Straight line to target
CCCC X+50 Y+50Arc centre / polar pole
CC X+.. Y+.. DR+Arc: end point + centre
CRCR X+.. Y+.. R+10 DR+Arc: end point + radius
CTCT X+.. Y+..Tangential arc
RND / CHFRND R5 / CHF 2Corner rounding / chamfer
APPRAPPR LT ... / APPR LCT ...Approach the contour
DEPDEP LT ...Depart the contour
CYCL DEFCYCL DEF 200 DRILLINGDefine a fixed cycle
CYCL CALLCYCL CALL / CYCL CALL PATCall a cycle / at a pattern
PATTERN DEFPATTERN DEF POS1(...)Define a hole pattern
LBL / CALL LBLLBL 1 / CALL LBL 1Label / call a subprogram or repeat
END PGMEND PGM NAME MMProgram end (name must match)

3. Motion element reference

ElementValueMeaning
Radius comp.R0 / RL / RRNone / left / right
Arc directionDR+ / DR-Clockwise / counter-clockwise
FeedF200 / FMAXFeed per minute / rapid
IncrementalIX / IY / IZMove this much from the current point
Spindle/coolantM13 / M9Spindle+coolant on / coolant off

4. Common M codes

MFunction
M0Program stop (unconditional pause)
M2Program end
M3 / M5Spindle clockwise / spindle stop
M13Spindle clockwise + coolant on
M9Coolant off
M30Program end and reset

Exact M meanings follow the machine builder/model; some M codes are builder-defined (tool change, clamping) – do not copy blindly.

Frequently Asked Questions

广告

How does this page relate to the main article?

This page is a lookup: quickly check how a block is written or what an element means while writing/reading. The main article “HEIDENHAIN TNC Conversational Programming for Beginners” walks a full 13-line program line by line and explains why, including common mistakes – better for systematic learning.

Why must the BEGIN and END names match?

The name in BEGIN PGM NAME MM and END PGM NAME MM identifies the program, and the control pairs them by it. If they differ, or you rename Begin but not End, the program structure is incomplete and errors or simulation problems follow. Change both together.

In the table, how do I choose R0 vs RL/RR?

The table only gives the values; the choice depends on the job: use R0 on the tool centre line for practice or drilling positions; for milling contours/pockets that must offset by the tool radius, use RL (tool left of contour) or RR (tool right). The wrong pick is a one-tool-radius dimensional error.

Last updated: 2026-11-01

HEIDENHAIN TNC conversational programming (full)

Cross-generation cycle compatibility and program migration checklist

Where to go next

  • FANUC Troubleshooting — the full guide library: alarms, diagnosis numbers, servo, spindle, PMC and electrical faults, organised by symptom.
  • CNC Repair Tools — which instrument measures what: multimeters, clamp meters, insulation testers and oscilloscopes, with the specification that actually matters.
  • Remote Technical Support — have the readings reviewed with you: alarm reverse lookup, PMC ladder analysis and servo tuning advice by call. Repair companies and integrators welcome.

Read the guide, get the right instrument, or walk the diagnosis through with someone — pick whichever you need.

Also available in Chinese: 海德汉 TNC 基本程序段速查表:BEGIN/BLK FORM/TOOL CALL/L/C/CR/APPR/CYCL DEF 一页对照
The original Chinese version — same procedure, with the full field notes.
© 版权声明
THE END
喜欢就支持一下吧
点赞8赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容

CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
HEIDENHAIN iTNC 530 vs TNC 620 / 640 / TNC7: Differences, MP vs Cfg, and Program Migration-CNCShare | 数控电气技术中心
海德汉 iTNC530 / TNC620 / TNC640 / TNC7 怎么区分与迁移?参数体系 MP→Cfg、循环兼容性与程序转换清单-CNCShare | 数控电气技术中心
FANUC Acceleration/Deceleration and Corner Slowdown: 1620 Rapid, 1622 Cutting, and the Trade-offs-CNCShare | 数控电气技术中心
FANUC 加减速时间常数与拐角减速怎么调?1620 快移 / 1622 切削进给 + 拐角过冲与圆角变钝的平衡-CNCShare | 数控电气技术中心
SINUMERIK 828D Cycle Alarms 61000 / 62000 / 65xxx: How to Read and Fix Them-CNCShare | 数控电气技术中心
SINUMERIK 828D 循环报警 61000/62000/65xxx 怎么查?六位号段判定 + 61000 无刀补 + 循环参数校验排错-CNCShare | 数控电气技术中心
数控机床集中润滑报警怎么查?打油时序 + PMC 定时器 + 压力开关 X 点 + 油泵过载 + A 地址反查-CNCShare | 数控电气技术中心
FANUC AICC / Nano Smoothing Setup: G05.1 Q1, Parameter-Side Enable, and Six Reasons It Does Nothing-CNCShare | 数控电气技术中心
FANUC 高速高精度 AICC / 纳米平滑怎么开?G05.1 Q1 指令 + 参数侧使能 + 开了没效果的 6 个原因-CNCShare | 数控电气技术中心
FANUC Parameter Write Protect (PWE): How to Unlock Parameters, SW0100, and the 3210/3211 vs 3202#4 NE9 Mix-Up-CNCShare | 数控电气技术中心
FANUC 参数改不了/写不进去怎么解除?PWE 参数写入开关 + SW0100 + 3210/3211 与 3202#4 NE9 混淆纠正-CNCShare | 数控电气技术中心
SINUMERIK 828D External Programs / DNC: EXTCALL Syntax, Running from CF/USB, Network Online-CNCShare | 数控电气技术中心
文章精选
专心做好一件事
打造更优雅的WordPress主题-CNCShare | 数控电气技术中心
专心做好一件事
打造更优雅的WordPress主题