SINUMERIK 828D Tool Management NC-PLC Interface Explained: DB4300, Three Tables and the Drum-Magazine Wrong-Tool Case

The previous page gave a quick reference table of the 828D tool management DB interface – addresses, step numbers and bit fields in one place. This page explains the logic behind it: why a tool change is a handshake rather than "the PLC changing tools on its own", how job and acknowledgment bits trade questions and answers, what each of the three transfer tables governs, and why a drum magazine picks the wrong tool on the second change. Understand that thread and the DB address table stops being rote memorization. All bit definitions and step numbers are subject to the official manual for your version and your machine's magazine type; field claims such as DBX33.6 are flagged as such.

Sister article: SINUMERIK 828D / 840D sl Tool Management DB Interface Quick Reference; related: 828D PLC Programming Tool: FB1/FB2/OB100, 828D Extended User Alarms: DB9913, 828D User Alarm Bits: DB1600.

20.1 First: who decides in tool management

NCK and PLC handshake

A tool change is a handshake in which the NCK’s tool management (TOOLMAN) issues the job and the PLC performs the motion and returns an acknowledgment – the PLC does not change tools by itself. The NCK knows “which tool is in which pocket”; the PLC knows “how to rotate the magazine and how the gripper grabs” – they exchange information through the DB interface. Understand this and every DB falls into place:

广告
  • NCK to PLC: write the job bit, command bits, new-tool source location and old-tool target location in DB43xx;
  • PLC to NC: after motion completes, write the actual pocket number into the DB9901 variable table and set an acknowledgment bit telling TOOLMAN “this step is done”;
  • TOOLMAN updates the magazine view and tool state, then decides the next step.

20.2 NC-to-PLC job interface DB4300: job bit and command bits

DB43xx is numbered by channel/magazine (DB4300 is the first group). Key fields (from the 828D commissioning manual section 9.8 tool-change example):

Table 1 DB4300 job-side key fields (per your manual)

FieldMeaningRole
DBX0.0Job bitNCK sets 1 to issue a tool-change job
DBX1.2Prepare changePrepare bit in the command byte DBB1
DBX1.1Execute changeExecution job triggered by M206
DBW6 to DBW20New-tool source / old-tool target locationsOfficial 9.8: DBW8 = new-tool source location, DBW20 = old-tool target location
DBX1.3Remove active tool (T0)Whether the old tool in the spindle must be removed

Warning: DBW8 and DBW20 are easily mixed up on drum magazines (see 20.6 recap): field sources describe DBW8 as the “new tool number”, differing from the official 9.8 “location number” wording – confirm against your manual and the online monitor.

20.3 1:1 exchange versus two-step change: criterion is source equals target

1:1 versus two-step change
  • 1:1 direct exchange: new-tool source location equals old-tool target location – the old tool is set back at the new tool’s pocket, done in one step (common on gripper magazines).
  • Two-step change: source differs from target – the magazine first positions the old-tool pocket at the change point and sets the old tool down, then brings the new tool to the spindle (common on drum/umbrella magazines).
  • DBX33.6: field notes call it the 1:1 exchange request flag; drum magazines are reported to require it Low throughout. This bit was not directly verified in the original manual – treat it as field reference only, per your manual.

Criterion priority: first check whether source equals target, then the DBX33.6 state, then the flow defined for your magazine type – do not start by changing MD22550.

20.4 PLC-to-NC acknowledgment: the three transfer tables and step numbers

Three tables and step numbers

All three tables live on the PLC side and define all states of tools or magazines:

Table 2 DB9900 / DB9901 / DB9902 roles and step numbers

TableNameWhat it governs
DB9900Constant transfer tableFixed pocket mapping, steps 1-64
DB9901Variable transfer tableVariable pockets during a change, steps 101-164; DBW0 = step number, DBW2 = actual location written for that step
DB9902Response tableStep number + new/old step to acknowledge + status

Step numbers come in pairs: in the example, request steps 101 (new tool positioned at change point) and 204 (old-tool related), with acknowledgment step 4 given by DB4200.DBX0.4. The PLC writes the actual pocket number into DB9901.DBW2 and TOOLMAN updates the magazine view. ★ In DB9901 it is DBW0 that is the step number and DBW2 the written-back location – treating DBW2 as the step number is a common misread. Example step values are subject to your manual.

20.5 Mag_conf.mpf: when it must run, and whether to keep it

Mag_conf.mpf (some sources write MAG_CONF_MPF.mpf) is a magazine-configuration example program that writes tool management parameters and state once:

  • When it must run: first-time magazine configuration, after changing the magazine type (drum/chain/gripper), or after a tool-management state fault (see 20.6);
  • How to run: copy it to any NC program directory (MPF.DIR, etc.), select it in AUTO mode and press Cycle Start once;
  • Can be deleted: after successful execution and confirming the parameters in the tool management screens, it can be deleted – no need to keep it;
  • Division of labour: the magazine-initialization article (Chinese only, no English version) covers the entry point and pockets 9998/9999, while this page covers the interface implementation after initialization.

Warning: the file comes from the 828D Toolbox / Siemens Support – this site does not provide file downloads; obtain it through official channels.

广告

20.6 ★ Field case: wrong tool number on the second change, drum magazine

Drum magazine wrong-tool case

A field case (third-party compilation) reports: after a 611D to S120 Combi retrofit, the second change wrote both DBW8 and DBW20 with the new-tool number, DBX33.6 toggled falsely and the event was misread as a 1:1 exchange.

  • Wrong judgment: assuming MD22550 (change mode) would fix it – it will not; MD22550 does not change tool management’s internal state tracking;
  • Root cause (as reported): the NCK tool management state machine entered an unexpected state after the first change and treated the second request as 1:1;
  • Handling: run Mag_conf.mpf to reinitialize the tool management state, or verify MD18080 / MD22550 / magazine type mapping line by line;
  • Verification: run T1 – machine – T2 – machine, monitor that the first change updates DBW6/DBW20 correctly, and on the second change DBW20 retains T1’s pocket number rather than T2’s with DBX33.6 Low throughout.

Warning: this is a field-reported case to cross-check against your own manual, not an original-manufacturer conclusion; bits and step numbers are per your manual.

20.7 Related machine data (bit-coded, verify line by line in your manual)

MD22550 (change mode), MD18080 (tool management function mask, bit-coded), MD22560/22562 (change M code), MD10715/10716 (M code / subprogram name that calls the change subprogram, e.g. L6), MD20310 (channel-level tool management mask), MD52270 (tool management function mask, bit-coded) – meanings vary by magazine type; this page only lists “what it governs”, bit definitions are strictly per your manual. See the machine data index in the tool management DB quick reference.

20.8 Commissioning order and acceptance

  1. Single-step the two-step change first: watch all DB4300 bits, confirm the timing of job bit, command bits and location fields;
  2. Then run the 1:1 change: confirm the direct exchange path when source equals target;
  3. Empty buffer test and “transfer from buffer to magazine”;
  4. Repeated-change stress test: cycle multiple T commands and watch for a wrong tool from the second change onward (20.6);
  5. Throughout, use your manual and the online monitor as the authority – do not copy any single “standard value”.

Frequently Asked Questions

Which DB blocks must the PLC implement for 828D tool management, and what does each do?

The core is a DB43xx job/acknowledgment interface block (e.g. DB4300, the NCK-to-PLC handshake) plus three tables: DB9900 constant transfer table, DB9901 variable transfer table and DB9902 response table. DB4300 carries jobs and locations; the three tables carry steps and acknowledgments. Addresses and bit definitions vary by magazine type and version – check your manual.

What are DBW8 and DBW20 in DB4300, and why is the wrong tool picked?

In the official 9.8 example DBW8 is the new-tool source location and DBW20 the old-tool target location; field sources describe DBW8 as the “new tool number”, a different wording. On drum magazines, if DBW20 is written with the new-tool number on the second change (instead of retaining the old pocket), the wrong tool is picked – confirm field meanings against the online monitor and your manual.

When must Mag_conf.mpf be run once, and does it need to be kept?

It must be run once (Cycle Start in AUTO mode) on first-time magazine configuration, after changing the magazine type, or after a tool-management state fault. After successful execution and confirming the parameters in the tool management screens, it can be deleted – no need to keep it. Obtain the file through official channels (Toolbox / Siemens Support); this site does not provide downloads.

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.

© 版权声明
THE END
喜欢就支持一下吧
点赞8赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容

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主题