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)

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 | 数控电气技术中心
SINUMERIK 828D External Programs / DNC: EXTCALL Syntax, Running from CF/USB, Network Online-CNCShare | 数控电气技术中心
西门子 828D 外部程序 / DNC 在线加工:EXTCALL 语法、CF/USB 直接运行、网盘在线、RS232 的边界-CNCShare | 数控电气技术中心
HEIDENHAIN TNCremo / TNCcmd Program Transfer: Ethernet LSV2 Port 19000-CNCShare | 数控电气技术中心
海德汉 TNCremo / TNCcmd 传输程序:以太网 LSV2 端口 19000、连接设置、批量 TNCcmd-CNCShare | 数控电气技术中心
HEIDENHAIN TNC Block Quick Reference: BEGIN/BLK FORM/TOOL CALL/L/C/CR/APPR/CYCL DEF-CNCShare | 数控电气技术中心
海德汉 TNC 基本程序段速查表:BEGIN/BLK FORM/TOOL CALL/L/C/CR/APPR/CYCL DEF 一页对照-CNCShare | 数控电气技术中心
海德汉 TNC 对话式编程入门:一个最小程序看懂 BEGIN/BLK FORM/TOOL CALL/L/C/CR/APPR/循环-CNCShare | 数控电气技术中心
HEIDENHAIN TNC Conversational Programming for Beginners: One Minimal Program-CNCShare | 数控电气技术中心
Mitsubishi M80 Data Backup & Restore: MPARA Is a Password, Not a File-CNCShare | 数控电气技术中心
三菱 M80 数据备份与恢复:MPARA 是密码不是文件,整体备份 7 项 + 单文件 ALL.PRM + 电池-CNCShare | 数控电气技术中心
Mitsubishi M80 Magazine Scrambled Quick Chart: Symptom, Tool Registration Fields and R Registers-CNCShare | 数控电气技术中心
三菱 M80 刀库乱刀速查表:现象·原因·先查 + T 登录四个位置 + R 寄存器-CNCShare | 数控电气技术中心
文章精选
专心做好一件事
打造更优雅的WordPress主题-CNCShare | 数控电气技术中心
专心做好一件事
打造更优雅的WordPress主题