Skip to main content
CNC.wiki

G63 Tapping with Compensating Chuck on Siemens SINUMERIK Controls

Learn how to program G63 and CYCLE840 tapping with a compensating chuck on Siemens SINUMERIK CNC controls. Avoid Alarm 61102 and tool collision hazards.

Hakan Gündoğdu
Hakan Gündoğdu

CNC CARE Co-founder

Introduction

Running an uncompensated travel path or executing a coordinate calculation error during tapping setup will drive the cutting tool on the indexing turret directly into table-mounted fixture clamps, a workpiece vise jaw, or the rotating jaws of a spindle chuck, causing a catastrophic hard collision. This sudden impact shatters the cutting tool, damages the axis ball screws, generates a high-current axis overload alarm (such as Alarm 14800), and turns the raw stock into a completely ruined scrap part. To prevent such mechanical failures, setup operators must physically locate and clamp the raw stock securely and properly calibrate safety parameters for chuck and tailstock barriers.

In tension-compression compensating chuck tapping, coordinates of feedrate and spindle speed must be precisely synchronized to establish a stable, asynchronous tapping operation. When programming native G63 or CYCLE840 tapping cycles, the tool must not pause or hesitate when transitioning from the downward feeding block to the upward retracting block. Siemens controls resolve this by disabling exact stop checks and deceleration ramps at block joints. This continuous axis motion ensures that the tap does not linger at the bottom of the hole while the spindle rotates, preventing the tap from instantly stripping the newly cut thread.

Technical Summary

Technical SpecificationDetails
Command CodeG63 / CYCLE840
Modal GroupGroup 2 (Non-modal in native Siemens mode)
Supported BrandsSiemens
Critical ParametersPIT (Thread pitch value: 0.001 to 2000.000 mm), ENC (Tapping mode)
Main ConstraintSpindle override must be set to 100%; tool radius compensation (G40) must be cancelled.

Quick Read

  • Select Tapping Method: Program G63 directly for manual calculations, or use CYCLE840 for automated cycle-specific settings.
  • Calculate Feedrate: Direct G63 programming requires Feedrate = Spindle Speed × Thread Pitch (F = S × pitch).
  • Handle Non-Modal Behavior: Explicitly program G63 in both the downward feeding block and the upward retraction block to avoid accidental modal reactivation of G1 or G0.
  • Configure Spindle Direction: Pre-program M3 or M4 before initiating CYCLE840 to avoid Alarm 61102.
  • Deactivate Cutter Compensation: Program G40 before calling CYCLE840 to prevent Alarm 61815.
  • Lock Override Knob: Keep the spindle override strictly at 100% during the tapping operation to prevent tracking errors.

Basic Concepts

Practical programming of the G63 or CYCLE840 tapping commands on Siemens controls coordinates feedrate and spindle speed relationships to establish a stable, asynchronous tapping operation. Because G63 disables exact stop checks and deceleration ramps at block joints, the tool does not pause or hesitate when transitioning from the downward feeding block to the upward retracting block. This continuous, uninterrupted axis motion is vital when utilizing a tension-compression compensating chuck to tap threads. By ensuring the axis continues moving smoothly at the bottom of the hole, G63 prevents the tap from lingering while the spindle rotates, which would otherwise instantly strip the newly cut thread, damage the tool, and turn the workpiece into a completely ruined scrap part.

Unlike standard G-code setups where the G63 tapping mode is modal, Siemens treats G63 as non-modal. The tension-compression chuck accommodates small synchronization errors between the axis feed and the spindle rotation. The programmed feedrate must match the speed-to-pitch ratio exactly, ensuring the tap enters the material and retracts without exceeding the chuck's mechanical travel limits. Standard motion blocks often default to check systems like G61 exact stop mode, but G63 suppresses these positioning checks to enable fluid reversal at the depth limit.

Command Structure

On Siemens SINUMERIK controls, tapping with a compensating chuck can be programmed using the native G63 command block or through the high-level cycle CYCLE840. The direct G63 block is programmed as a non-modal movement, meaning it is only active for the specific block in which it is written. Following the G63 tapping block, the control automatically restores the previously active Group 1 motion command, such as G0 or G1, which ensures that standard override switches and positioning checks are re-applied immediately.

Alternatively, the technological cycle CYCLE840 offers a comprehensive method that automatically manages depth calculations, retraction clearances, and spindle reversals. Using CYCLE840, programmers can define parameters like RTP for the retraction plane, RFP for the reference plane, and SDIS for the safety clearance. The cycle automatically decides whether to perform G63-style asynchronous tapping or G33-style encoder-driven tapping based on the active value of the ENC parameter.

Syntax

G63 Block Syntax:

G63 X__ Y__ Z__ F__ ;

CYCLE840 Syntax:

CYCLE840 (RTP, RFP, SDIS, DP, DPR, DTB, SDR, SDAC, ENC, MPIT, PIT, _AXN, PTAB, TECHNO)

Parameters

ParameterDescriptionValue Range
PITThread pitch value0.001 to 2000.000 mm
MPITMetric thread pitch size3 to 48 (Metric threads M3 to M48)
SDRRetraction rotation direction0 (auto reversal), 3 (M3), 4 (M4)
SDACSpindle rotation direction after cycle3 (M3), 4 (M4), 5 (M5)
ENCTapping mode selection0 (encoder), 1 (no encoder, program feed), 11 (no encoder, calc feed), 20 (encoder, dwell)
_AXNActive tool axis1 (1st geom axis), 2 (2nd geom axis), 3 (3rd geom axis)
PTABPitch evaluation unit0 (system), 1 (mm), 2 (TPI), 3 (in/rev)
TECHNOTechnological settings (exact stop, feed-forward, acceleration, spindle)Multi-digit integer

Brand Applications

Siemens

On Siemens SINUMERIK controls running in native mode (G290), G63 is strictly non-modal. This means the controller reactivates the previous Group 1 motion command (like G0 or G1) in the very next block, which protects the compensating chuck from unintended modal feed movements. Siemens cycles also integrate tapping directly into the unified CYCLE840 cycle. By adjusting the ENC parameter within this cycle, the operator can switch between encoder-based tapping (setting ENC to 0 or 20) and encoderless compensating chuck tapping (setting ENC to 1 or 11).

Siemens also provides a dedicated technological parameter, TECHNO, to tune cycle-specific motions. This parameter allows the programmer to specify exact stop block-step criteria, activate feed-forward control, and select axis acceleration characteristics such as SOFT, BRISK, or DRIVE exclusively during the tapping operation.

Brand Comparison

Tapping behaviors and system customization options differ depending on the specific SINUMERIK hardware series and the active interpreter mode:

Siemens Controller / ModeMachine Data CustomizationInterpreter & Execution CharacteristicsAdvanced Features & Motion Controls
SINUMERIK 802D slMD 10604 and MD 10706 are hard-locked and cannot be modified by the operator.Executes standard native cycles and G63 movements without advanced multi-axis geometry changes.Standard execution; does not support high-end collision monitoring or widescreen interfaces.
SINUMERIK 840D slAll machine data (MD) parameters are fully configurable.Supports high-performance execution of CYCLE840 with cycle-specific optimization.Supports exclusive features like advanced Collision Avoidance, multi-edge G51.2/G50.2 codes, and widescreen panel layouts.
ISO Dialect Mode (G291)Configured via machine data MD 18800 to enable external dialect translation.Compiles and runs G63 under external ISO G-code group structures rather than native Siemens logic.Switches the interpreter behavior to mimic Fanuc-style modal and group structures.

Technical Analysis

The SINUMERIK architecture handles geometry axis switches and block skip functions differently depending on the controller version. On the compact SINUMERIK 802D sl control, crucial configuration parameters like MD 10604 (Working area limitation during switchover of geometry axes) and MD 10706 (Activation of block skip function) are locked at the factory and cannot be altered by the user. On the high-end SINUMERIK 840D sl, these machine data parameters are fully accessible, allowing programmers to customize stroke limits and block skip logic. The 840D sl also supports advanced hardware options, including collision avoidance algorithms that actively monitor tool pathways, and G51.2/G50.2 multi-edge turning commands for complex multi-axis milling and turning centers.

The compiler translation engine offers another key architectural distinction between modes. Under native Siemens mode (G290), G63 operates as a strictly non-modal Group 2 command, automatically returning to the previous motion mode in the subsequent block. When toggled to ISO Dialect mode (G291), the interpreter switches to ISO G-code rules, executing G63 under external group structures. This bilingual capability requires the machine data option MD 18800 to be properly configured; executing G291 when this option is inactive will immediately halt operation and trigger Alarm 61800.

Program Examples

N10 G1 X0 Y0 Z2 S200 F1000 M3 ; Approach start coordinates, activate spindle clockwise
N20 G63 Z-50 F160             ; Tap downward to Z-50 at 160 mm/min feedrate (S200 * 0.8 mm pitch)
N30 G63 Z3 M4                 ; Retract back to Z3 under G63 with reversed counterclockwise spindle rotation

Dry Run

Before executing the program on a raw workpiece, a dry run must be performed. During the dry run, the operator should remove the tap from the compensating chuck and run the program in mid-air. This verification ensures that the axis speeds and spindle rotation directions reverse correctly at Z-50 without triggering any axis overload or spindle direction alarms. Since G63 is non-modal, the operator must verify that the Z-axis retracts smoothly under reversed spindle rotation (M4) in block N30 and that the previous motion mode (G1) is restored in the subsequent blocks.

Error Analysis

BrandAlarm Code & TitleTrigger ConditionRoot Cause & Resolution
SiemensAlarm 61102
No spindle direction programmed
Spindle rotation direction M3 or M4 is missing or set to an invalid value during cycle execution.Program M3 or M4 before starting the cycle to establish the spindle rotation direction.
SiemensAlarm 61101
Reference plane defined incorrectly
The reference plane (RFP) is defined incorrectly relative to the final depth parameters.Correct the RFP parameter in the CYCLE840 definition to ensure it matches the depth direction.
SiemensAlarm 61003
No feed programmed in the cycle
The tapping cycle is executed without an active feedrate programmed in the calling block or previous modal states.Program a valid feedrate (F) in the tapping block or the preceding motion blocks.
SiemensAlarm 61800
External CNC system missing
An external ISO Dialect command (such as G291 or G61) is executed while MD 18800 is disabled.Configure option bit and activate MD 18800, or remove the external dialect commands from the program.
SiemensAlarm 61815
G40 not active
Tool radius compensation is active before calling the tapping cycle.Program G40 to cancel tool radius compensation before invoking the tapping cycle.
SiemensAlarm 14011
Program CYCLE3106 not available
A rapid retract via G10.6 is commanded, but the interrupt program is missing.Load the required CYCLE3106.spf file to the part program memory.
SiemensAlarm 16748
Spindle speed/gear stage change impossible
Spindle speed monitoring is active, and a gear stage change is impossible under the active gear data record.Verify gear stage parameters and ensure correct mechanical settings are active.
SiemensAlarm 61001
Thread pitch wrong
The programmed thread pitch parameters contain conflicting or invalid pitch values.Correct the pitch parameter values (PIT/MPIT) in the CYCLE840 cycle definition.

Application Note

Attempting to adjust the spindle speed override switch during a G63 cycle will result in thread stripping and tool damage. Siemens mandates that the spindle override must be set to 100% to avoid tracking errors. When G63 is executed, the axis feedrate is mathematically linked to the spindle speed. Adjusting the override knob manually changes the feedrate or spindle speed asynchronously, exceeding the axial compression limits of the tension-compression compensating chuck. The tool nose will strip the newly formed threads, lock in the workpiece, and cause the tap to snap. This leaves a broken tool embedded in the workpiece, forcing the operator to scrap the part.

Related Command Network

  • G331 / G332: Performs rigid tapping and retraction without requiring a compensating chuck.
  • G33: Cuts threads with a constant lead by synchronizing feed and spindle rotation.
  • CYCLE84: Serves as the high-level technological cycle for rigid tapping operations.
  • G290 / G291: Toggles the compiler interpreter between Siemens native programming and ISO Dialect mode.

Conclusion

Successful tapping with a compensating chuck on Siemens controls depends on maintaining a 100% override setting and ensuring G63 is explicitly programmed for both the downward path and the upward retraction. Programmers should utilize CYCLE840 to simplify coordinate tracking and active axis parameters, while setup operators must verify axis reversal behavior through dry run tests in mid-air before engaging the cutting tool with the workpiece.

FAQ

Why does the tap pull out or break during the retraction stroke of a G63 cycle?

G63 is strictly non-modal on Siemens controls. If you omit G63 in the retraction block, the controller reactivates the previous Group 1 modal motion command (such as G1 or G0), which applies standard feedrate override checks and axis deceleration ramps. This causes the axis to lag behind the spindle rotation, pulling on the compensating chuck and snapping the tap. To prevent this, always program G63 in both the entry and retraction blocks.

Can I adjust the spindle override knob during a G63 tapping operation?

No, you must keep the spindle override switch set exactly to 100%. Adjusting the spindle override during G63 will disrupt the synchronized ratio between the spindle rotation and the linear feedrate, exceeding the mechanical limits of the tension-compression compensating chuck. If you need to adjust feed or speed, pause the program before the tapping cycle, make the changes in the block parameters, and resume with the override locked at 100%.

What causes Alarm 61800 when running a G63 cycle on a SINUMERIK control?

Alarm 61800 indicates that the control has tried to execute an ISO Dialect command (like G291) but the external language option is disabled in the machine configuration. You must verify that machine data parameter MD 18800 ($MN_MM_EXTERN_LANGUAGE) is enabled, or remove any G291/G290 toggle commands from the program to run strictly in native Siemens mode.

Still not resolved?

Ask our AI assistant about this topic in natural language. Grounded in verified sources, no hallucinations.

Ask AI Assistant
Hakan Gündoğdu
Hakan Gündoğdu
  • CNC CARE Co-Founder (May 2025 - Present)
  • Mitsubishi Electric NC Sales & Service Section Manager (2008 - 2025)
  • Reis CNC Service Engineer (2003 - 2008)
  • Ören Kalıp CNC Mold Line Team Leader (1999 - 2002)

With over 25 years of experience working in all areas of the CNC machine industry, I continue my activities as a co-founder of CNC CARE, where we offer brand-independent consulting, engineering, and original spare parts services.

Related Articles

Other articles on this topic