HEIDENHAIN Presets and Work Zero: PRESET.PR, CYCL DEF 247 vs CYCL DEF 7, M91/M92 and How to Set the Work Zero

On a HEIDENHAIN control, "zero" is not one thing. The most costly mistakes on the shop floor come from treating the machine builder's datum as a workpiece zero, or from mixing CYCL DEF 247 preset selection with a CYCL DEF 7 datum shift and then watching the whole job shift mid-program. This guide covers the structure of PRESET.PR, the boundary between the three zero-selection mechanisms, the real scope of M91/M92, and both manual and probe-based setup. All numeric criteria follow your own machine manual and trial cutting; nothing here is copied from another machine's setup.

Sister article: HEIDENHAIN presets and work zero – the Chinese guide; related: HEIDENHAIN touch probe calibration: iTNC 530 uses MP, TNC 640/TNC7 uses Cfg, TCH PROBE 31 / 481 tool measurement, HEIDENHAIN conversational programming for beginners, iTNC 530 vs TNC 620 / 640 / TNC7, HEIDENHAIN TNC block quick reference, iTNC 530 manuals: NC software numbers versus document IDs.

8.1 First separate the coordinate systems

Four reference systems
NameDefined byCan you change itActivated by
Scale datumReference marks on the scaleNoReference-point approach
Machine datum / additional machine datumMachine builder, in machine parametersNormally noM91 / M92
Workpiece presetOperator, stored in PRESET.PRYesCYCL DEF 247
Datum shiftOperator, an offset in the programYesCYCL DEF 7
广告

Table 1. The reference systems at a glance (terminology varies by TNC generation; check your manual)

One sentence to keep: M91/M92 refer to the builder’s datums, PRESET.PR holds your own datums, and CYCL DEF 7 just shifts your own datum a little further. Mixing the three is the number one source of dimensional drift.

8.2 Structure of the PRESET.PR table

Preset table structure

One row is one preset: X / Y / Z columns (plus basic rotation and 3D basic rotation columns on machines with rotary axes). The last zero you set by hand is written into row 0 – activating row 0 activates the last manually set datum.

  • The table lives in the table folder of the TNC drive (TNC:/table/) and can be copied for backup; do not add or delete rows casually – maintain it the way your manual prescribes.
  • For safety, append rows at the end rather than inserting in the middle.
  • On machines with rotary or tilting axes, a preset row can carry basic rotation, which a datum cannot (see 8.5).

Table 2. PRESET.PR row essentials (column count varies by machine; check your manual)

8.3 Where presets can be edited

This is the wall beginners hit: the preset table is editable only in Manual Operation and the electronic handwheel modes. Programming mode can open it for viewing but not editing. To write a measured value into a row from a program, use the FN 17 system write described in 8.4 rather than typing in the edit screen.

8.4 Do not mix the three mechanisms

Three mechanisms compared

This is the most valuable point in this guide, repeated in English references and almost absent from Chinese material:

What you want to doUse thisEffect on PRESET.PR
Pick one preset row as the active zeroCYCL DEF 247 ... Q339=rowDoes not write the table; only activates that row
Add an offset on top of the active zeroCYCL DEF 7 DATUM SHIFT with X/Y/ZLeaves the table untouched; temporary shift only
Write a measured value into a rowFN 17 system write (ID / index check your manual)Rewrites that row in the table

Table 3. Boundaries of the three mechanisms (FN 17 parameters follow your manual)

The trap: activating a preset makes the control reset any datum shift previously set with CYCL DEF 7, along with mirroring, rotation and scaling (CYCL DEF 19 tilted working plane is the exception). So “switch preset first, then shift” is correct; “shift first, then another CYCL DEF 247 later” wipes the shift.

Program-order rule: place the datum shift after the last preset switch, or store that offset as a separate preset row instead of using CYCL DEF 7.

8.5 Why presets beat datums for multi-fixture work

  • Multiple stations or fixtures: one preset row per fixture, each an absolute datum that does not interfere with the others – changing preset 5 does not affect preset 6.
  • Small offsets inside one part: use a datum (CYCL DEF 7) without touching the preset table.
  • With a tilting rotary table, a 3+2 head or five-axis kinematics, the preset table is the only practical option: a preset row can carry basic rotation and 3D basic rotation; a datum cannot.

8.6 Three manual setup methods

  1. Touch off with a tool: with a known shim thickness d, touch the surface and enter Z = d, not 0 – entering 0 bakes the shim thickness into the size and risks marking the part.
  2. Edge finder or dial indicator: collect each position manually on machines without a probe.
  3. 3-D touch probe: MOD -> probe -> preset any axis / corner / circle center / centerline, using the built-in cycles. Probe calibration parameters live in MP on iTNC 530 and in Cfg on TNC 640/TNC7; see HEIDENHAIN touch probe calibration and TCH PROBE 31 / 481 tool measurement.

8.7 Setting Z when tool length is known

Z = tool length L + surface position d, where d is the known shim thickness between tool and part. Do not enter 0. The formula is the official one, but the definition of L (tool tip versus holder reference) varies by machine and tool-offset method – check your manual.

广告

8.8 What M91 and M92 really do

M91 M92 blockwise effect

The official manuals are explicit: M91/M92 are effective only in the blocks in which they are programmed, taking effect at the start of the block – they are not modal until the end of the program. That corrects a lot of shop-floor hearsay.

  • M91: program in the machine datum (older manuals call it machine zero). Coordinates appear with REF on the display.
  • M92: program in the additional machine datum / machine preset defined by the builder in parameters; its exact meaning is in the machine manual.
  • In both, tool length is not compensated, while tool radius compensation stays as programmed.

⚠️ Generation difference: older manuals (TNC 407 / 426) define M91 as machine zero and M92 as machine datum; newer manuals (TNC 620 / 640) define M91 as machine datum and M92 as the additional machine datum / machine preset. Verify M91/M92 against the manual for the machine before reusing an old program across generations.

8.9 MP versus Cfg activation behaviour

Following iTNC 530 vs TNC 620 / 640 / TNC7: on an iTNC 530, whether an MP change needs an NC restart (RUN) or a PLC restart (PLC RUN) depends on the “activation behaviour” column in the manual. “All MPs need a full restart” and “MP changes take effect immediately” are both myths. Back up .PHA first, and cross-check the generation cross-reference.

8.10 Status display and common misreads

After a preset is activated, the status display shows the active preset number next to the preset symbol; a manually set row 0 has its own marker. When dimensions shift as a whole, check which preset row is active before touching tool offsets or pitch compensation – reversing that order wastes hours.

For a minimal program template, see HEIDENHAIN conversational programming and the TNC block quick reference; for manual sources, see iTNC 530 manuals and the HEIDENHAIN error-code reference.

Frequently Asked Questions

What is the difference between a HEIDENHAIN preset and a workpiece datum, and when should I use each?

A preset is one absolute row in PRESET.PR, suited to multiple fixtures and the only workable option with a tilting axis. A datum (CYCL DEF 7 DATUM SHIFT) is a temporary shift on the active zero that leaves the preset table untouched. Use a datum for offsets inside one part and a preset for a whole fixture change.

Can CYCL DEF 247 and CYCL DEF 7 be used together? Why does switching presets wipe the datum shift?

Yes, but order matters: activating a preset resets any previous datum shift, mirroring, rotation and scaling (tilted working plane excluded). Put the datum shift after the last preset switch, or save that offset as its own preset row.

How do I set the Z zero with a known tool length, and will touching off damage the part?

Use Z = tool length L + surface position d, where d is a known shim thickness – never enter 0. Touching off directly can mark the part, so use a thin shim, an edge finder, a dial indicator or a 3-D probe. The definition of L and the exact procedure follow your machine manual.

Last updated: 2026-11-19

Where to go next

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

Also available in Chinese: 海德汉 TNC 预设(PRESET.PR)与工件零点怎么用?CYCL DEF 247 / 7 / DATUM SET 三种机制边界 + M91 / M92 + 手动与测头找正
The original Chinese version — same procedure, with the full field notes.
© 版权声明
THE END
喜欢就支持一下吧
点赞6赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容

CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
SINUMERIK Servo Alarms 25000, 25010 and 25201: Which Layer to Troubleshoot First-CNCShare | 数控电气技术中心
828D / 840D sl 伺服报警 25000 / 25010 / 25201 怎么分层?先看 NC 报警还是 F 码-CNCShare | 数控电气技术中心
Mitsubishi MT Works2 / MR Configurator2: Official Download Path, Modules and Servo Parameters-CNCShare | 数控电气技术中心
三菱 MT Works2 / MR Configurator2 哪里下载?伺服调参上位机三大模块、怎么连 MR-J4/J5、能改哪些参数与三大下载坑-CNCShare | 数控电气技术中心
SINUMERIK 828D Tool Management NC-PLC Interface Explained: DB4300, Three Tables and the Drum-Magazine Wrong-Tool Case-CNCShare | 数控电气技术中心
SINUMERIK 828D 刀具管理 NC-PLC 接口详解:DB4300 任务/应答 + 三张表 + 换刀步骤与圆盘刀库取错刀号复盘-CNCShare | 数控电气技术中心
SINUMERIK 828D / 840D sl Tool Management DB Quick Reference: DB4300 Bits, DB9900/9901/9902 Tables and Transfer/Ack Steps-CNCShare | 数控电气技术中心
SINUMERIK 828D / 840D sl 刀具管理 DB 接口速查表:DB4300 位域 × DB9900/9901/9902 三表 × 传输/应答步骤号-CNCShare | 数控电气技术中心
FANUC M98 / M99 Subprogram Calls: P Numbers, Nesting Limits and How to Troubleshoot Alarms 076 / 077 / 078-CNCShare | 数控电气技术中心
FANUC M98 / M99 子程序怎么调用?P 号规则、嵌套上限与 076 / 077 / 078 三个报警怎么查-CNCShare | 数控电气技术中心
Inductive Proximity Switches for CNC Machines: NPN vs PNP vs NAMUR and Their Roles as Hard Limits, Reference Switches and Tool Presence Sensors-CNCShare | 数控电气技术中心
接近开关 NPN / PNP / NAMUR 到底怎么选怎么接?机床三大角色(硬限位 / 原点 / 刀位检测)的不同选法 + 常闭优先的失效安全 + 误动作四查-CNCShare | 数控电气技术中心
文章精选
专心做好一件事
打造更优雅的WordPress主题-CNCShare | 数控电气技术中心
专心做好一件事
打造更优雅的WordPress主题