SINUMERIK 840D sl Alarm 17224: Resolving Tool Type 200 Errors

David Krause11 min read
Other TopicSiemensTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Problem Overview

On SINUMERIK 840D sl turning machines, operators routinely encounter alarm 17224 when they attempt to create a new drilling tool with type 200 in the tool list:

17224 Block 2 Tool T/D=00001/01 - tool type 200 not permitted

The same class of alarm is raised for centering tools (type 220) when the control has not been licensed or configured to permit drilling/centering operations on a lathe. The root cause is rarely a corrupted tool entry — it is a missing combination of:

  • A configured C axis on the main spindle
  • An enabled live-tool turret (driven-tool attachment)
  • The correct value in MD17540 $MN_TOOL_MANAGEMENT_MASK
  • A tool list ($TC_TP*) whose magazine permits type 200/220

This article walks through the alarm in detail, explains the tool-type taxonomy for turning, and provides a verified procedure to bring drilling and centering tools online on a 840D sl lathe.

Alarm 17224 — Channel, Reactions, and Reset Behavior

Alarm 17224 is raised by the NCK when a tool with an unsupported tool type is loaded into the spindle or referenced by a tool-change call (T/D number pair). The standard attributes are:

Attribute Value
Alarm number 17224
Display Block %1 Tool T/D=%2/%3 - tool type %4 not permitted
Reaction Interpreter stop, NC stop, NC ready-to-run cleared
Acknowledgement RESET (power-on reset required for some variants)
Cause class Configuration / option data missing

The %4 placeholder is the tool type taken from the first tool-doubling word ($TC_DP1 of the magazine entry) of the offending D-offset. For drilling it is 200; for centering it is 220. The control rejects the type because at least one of the following checks fails:

  1. The tool type requires a function (e.g., live tool, C axis, tap cycle) that is not enabled in the option set.
  2. The current spindle mode (SP / SPOS / C axis) does not match the tool requirement.
  3. The magazine definition or tool management mask excludes the type.

Tool-Type Taxonomy for Turning

Siemens distinguishes tool types by the geometry that the control expects when calculating length compensation, cutting-edge position, and approach motion. The relevant groups on a turning controller are listed below.

Range Group Typical use on a lathe
100-199 Roughing / finishing turning tools Turning, facing, grooving
200 Drilling tool Twist drill, requires live tool or C axis
220 Centering tool Center drill (Type 220 / DIN 333 Form A)
230-260 Taps / form drills Rigid tapping, floating tap holder
500-599 Special turning tools Threading, parting, profile
700-799 Slotting / sawing Cut-off saws, slot mills (requires live tool)
Tool types 200, 220, and 230 on a turning controller always imply that the spindle holding the workpiece (or the spindle holding the tool, in the case of live-tool drilling) can be commanded in C axis mode. Without a configured C axis the controller cannot perform the polar interpolation implied by the tool cycle.

Root Cause Analysis for Alarm 17224 on a Lathe

For a standard 2-axis turning machine (X, Z) the NCK has no native support for drilling into a face or a cylindrical surface. Three prerequisites must be satisfied before the controller will accept type 200/220 tools:

  1. Mechanical: the turret must carry a live-tool spindle (driven-tool attachment) OR the main spindle must be configured as a C axis so the workpiece can be indexed.
  2. Commissioning: the spindle set-point chain must include the C axis branch and MD parameters must reflect this.
  3. Tool data: the tool list and magazine allow-list must not block the type.

If any link in the chain is missing the controller suppresses the tool type at creation time, and the operator sees 17224 when the part program is started.

Machine Data Required for Drilling and Centering

Four families of machine data have to be examined. Each is available on the SINUMERIK Operate HMI under Setup → Machine data, or via the classic commissioning menu.

MD17540 $MN_TOOL_MANAGEMENT_MASK

This MD switches individual tool-management features on or off. Bit 11 controls whether the magazine allows drilling tools to be loaded:

Bit Meaning when set
Bit 0 Tool management active
Bit 1 Consider adjacent location
Bit 3 Tool life / count monitoring
Bit 5 Wear monitoring
Bit 11 Allow tools with type 200/220 in standard turning magazines
Bit 14 Allow PLC-controlled tool change

If bit 11 = 0 the tool list editor rejects drilling/centering tools even if the magazine is otherwise valid.

MD20150 $MC_GCODE_DEFAULT_VALUES (channel-specific)

Drilling cycles (CYCLE81, CYCLE82, CYCLE83, CYCLE84 tapping) operate in the active plane. On a turning controller, the default plane at reset is G18 (X/Z). Drilling into a face therefore requires the part program to switch to G17 (X/Y) for the live-tool cycle, or the controller must be configured so that SETMS / plane-switch macros fire automatically.

MD20050 $MC_AXCONF_GEOAX_ASSIGN_TAB

This 3-element array assigns the channel geometry axes. The third entry is the polar axis. For drilling with a live tool, the polar axis must be the C axis. A typical turning-machine assignment is:

MD20050[0] = 1   ; Geo axis 1 = machine axis 1 (X)
MD20050[1] = 3   ; Geo axis 2 = machine axis 3 (Z)
MD20050[2] = 4   ; Geo axis 3 = machine axis 4 (C, live tool)

Confirm by screenshot of the HMI display page. A missing C axis in this array is the most common reason alarm 17224 appears immediately after creating tool T=1 D=1.

MD35040 $MA_SPIND_ASSIGN_TO_MACHAX

Assigns a logical spindle number to the machine axis used as the spindle/C axis. If this MD points to a different axis from the one in MD20050, the controller treats the spindle as SP-only and refuses type 200 tools.

Spindle Configuration: SP vs C Axis vs Live Tool

The order of priority is:

  1. Spindle only (SP) — speed-controlled, no position control, no C axis. Drilling/centering rejected.
  2. Spindle with C axis — position-controlled spindle can be indexed (SPOS). Used when the workpiece must be oriented for cross-drilling. Centering is possible only with a live tool OR with a stationary tool and a rotating/inching spindle.
  3. Live tool (driven-tool attachment) — an additional motor in the turret disk. The tool rotates while the main spindle holds the workpiece. Required for productive drilling/tapping on a turning machine.

On machines with no live tool and no C axis, drilling and centering are mechanically possible only with a separate drill-press operation. The controller will continue to raise 17224 because the NCK cannot guarantee correct length compensation.

Tool Measurement Issues on Turning Machines

When the live tool and C axis are present, a second class of fault appears: the measured value lands in the wrong compensation memory. On a 2-axis lathe without a C axis, the operator is presented with length X and length Z; the drill has only one length, but the measuring cycle writes it to length Z because it cannot find an X reference face.

The drill length is stored as $TC_DP3 (length 1) for most turning tools and $TC_DP4 (length 2) for drilling tools oriented in the Y direction. Configure the tool entry as follows:

$TC_DP Field Drill value (live tool, G17)
$TC_DP1 Tool type 200
$TC_DP2 Cutter geometry Drill geometry (e.g., 1 = standard twist drill)
$TC_DP3 Length 1 (Z) Z reference of drill
$TC_DP4 Length 2 (X) X reference of drill (radial)
$TC_DP5 Length 3 (Y) 0 for axial drilling
$TC_DP6 Radius Drill diameter / 2
$TC_DP7 Wear length 1 0.0

The measuring cycle used on SINUMERIK Operate for live tools is Measuring → Tool → Live tool → Length X / Length Z. If only the Z screen is offered, the control has not detected a C axis — return to the spindle-configuration section above.

Step-by-Step Resolution Procedure

  1. Verify mechanical hardware: confirm the turret has a live-tool motor OR the main spindle has a C axis encoder.
  2. Backup NC data: perform an NC card backup (Setup → Backup) before any MD change.
  3. Set MD17540 bit 11: in Setup → Machine data → General MD, open MD17540 $MN_TOOL_MANAGEMENT_MASK and add bit 11 to the existing value. A typical setting for a lathe with live tool is 0x8000 + 0x0804 = 0x8804.
  4. Configure geometry axes: set MD20050 so the C axis is the third geometry axis. NCK Reset.
  5. Assign spindle: MD35040 $MA_SPIND_ASSIGN_TO_MACHAX must reference the C-axis machine axis.
  6. Create the tool: in Tools → Tool list, add T=1 with type 200. Confirm the D-offset is created without alarm.
  7. Configure the magazine: if a turret magazine is used, confirm that the location for the drill is enabled and the magazine allow-list permits type 200.
  8. Measure the tool: run the live-tool measuring cycle in G17. Both X and Z fields should appear.
  9. Program the cycle: insert CYCLE81 / CYCLE82 in the part program, preceded by G17 SPOS= if the live tool requires spindle orientation.
  10. Dry-run test: execute in single block with feed-rate override at 10 percent. Confirm no 17224 and no software-limit-switch alarm.

Verification Checklist

Check Expected result
Alarm 17224 raised Not raised after T=1 D=1 call
Tool list T=1 type 200 visible, length 1 and 2 populated
Measuring cycle Length X and Length Z both writable
Cycle test CYCLE81 completes one clean plunge
Software limit switches No 10751/10752 alarm at end of cycle
Tool change T1 picked from turret, no PLC alarm 8022

Software Limit Switch Alarms During Drilling

When the tool measurement is incorrect, the first indication in production is often an alarm from the software limit switches:

  • 10721 Software limit switch +
  • 10722 Software limit switch −

These indicate that the programmed approach distance plus the (incorrectly measured) tool length exceeds the positive area limit. Re-measure the tool with the live-tool measuring cycle and re-run.

G17, G18, G19 — Plane Selection for Drilling

Drilling cycles are modal and operate in the active plane. On a turning machine:

Plane Active axes Application
G17 X / Y / Z (XY infeed) Drilling into the face with live tool, tapping, milling on turned parts
G18 Z / X (default on lathes) Turning, parting
G19 Y / Z Rare on lathes; some special milling cycles

Activate G17 explicitly before the drilling cycle and deactivate with G18 at the end of the operation:

G17            ; face plane for drilling
SPOS=0         ; orient live tool
CYCLE81(10,0,2,-30,)   ; drilling cycle
G18            ; back to turning plane

For automatic plane switching, configure the cycle start via a custom macro or use MD20150 to change the default plane for specific subprograms.

Programming Example — Drilling a Center Hole on a Live-Tool Lathe

; --- Setup ---
T="DRILL_5" D1          ; type 200, live tool
M06                       ; turret index
G17                       ; switch to face plane
SPOS=0                    ; orient live spindle
G0 X0 Z2                  ; rapid to start point
; --- Drilling cycle ---
CYCLE81(2,0,2,-15,0.5)   ; RTP=2, RFP=0, SDIS=2, DP=-15, DPR=0.5
G18                       ; restore turning plane
; --- Continue turning ---
G0 X100 Z100

Comment: the parameter list uses the conventional SINUMERIK 840D sl order — reference plane, retract plane, safety distance, drilling depth, drilling depth incremental.

Comparison: Live Tool vs Workpiece-Rotating Drilling

Aspect Live tool drilling Workpiece-rotating drilling (C axis)
Hardware Turret with driven attachment C axis on main spindle
Tool type 200 / 220 / 230 200 / 220 / 230
Spindle command Live spindle speed (S) Main spindle SPOS + rotational speed
MD20050 C axis as 3rd geometry axis C axis as 3rd geometry axis
Typical cycles CYCLE81, CYCLE82, CYCLE84 CYCLE81 with SPOS orientation
Tool measurement Live tool measuring cycle Standard turning measuring cycle

Fault-Code Matrix

Alarm Meaning Likely cause on lathe Remedy
17224 Tool type not permitted No C axis / no live tool, MD17540 bit 11 = 0 Configure C axis, set bit 11
10721/10722 Software limit switch Wrong length in $TC_DP3/4 Re-measure tool
8022 PLC tool change alarm Magazine allow-list Edit magazine allow-list
61234 Measuring cycle alarm Plane = G18 during live-tool measurement Force G17 before measuring

Safety and Commissioning Notes

Always perform a dry-run in single block with reduced feed override after changing MD17540 or MD20050. A wrong C-axis assignment can drive a live tool into the chuck at full rapid speed.
  • Create an NC archive before changing MD17540.
  • After changing MD20050, perform an NCK Reset (not just Reset on the HMI).
  • Confirm option-bit set for "Drilling/centering on turning" — the option is included in most 840D sl turning packages but may be missing on retrofitted controls.

Reference Documentation

For complete parameter descriptions and option-bit maps, refer to the official SINUMERIK 840D sl Turning operating manual:

FAQ

What does SINUMERIK alarm 17224 mean on a turning machine?

Alarm 17224 "Tool T/D=… tool type … not permitted" is raised when the tool list contains a type (commonly 200 for drilling or 220 for centering) that the current NCK configuration does not support. On a lathe this almost always indicates a missing C axis or missing live-tool attachment, or MD17540 $MN_TOOL_MANAGEMENT_MASK bit 11 not set.

Can I drill or center on a 2-axis lathe without a live tool?

No. Drilling and centering cycles on a 2-axis lathe require either a live-tool turret (driven-tool attachment) or a C axis on the main spindle. Without one of these the NCK cannot satisfy the geometry required by CYCLE81/CYCLE82 and rejects tool type 200/220 with alarm 17224.

Why does my drill measurement write the value into the Z axis instead of X?

On a lathe without a C axis the controller only presents length-1 (Z) and length-2 (X) for turning tools. If only Z appears, the control has not detected the C axis. After configuring MD20050 with the C axis as the third geometry axis and enabling the live-tool measuring cycle, both X and Z fields become available.

Which machine data must be set to enable tool type 200?

Set MD17540 $MN_TOOL_MANAGEMENT_MASK bit 11 = 1, configure MD20050 $MC_AXCONF_GEOAX_ASSIGN_TAB so the third geometry axis is the C axis, and verify MD35040 $MA_SPIND_ASSIGN_TO_MACHAX points to the C-axis machine axis. An NCK Reset is required after the MD changes.

Why does the drilling cycle trip a software-limit-switch alarm?

Software-limit-switch alarms (10721 / 10722) appear when the drill depth plus the (incorrectly measured) tool length exceeds the positive area limit. Re-measure the drill using the live-tool measuring cycle, populate $TC_DP3 (length 1, Z) and $TC_DP4 (length 2, X) correctly, and re-run the cycle.

Back to blog