Resolving Fanuc DS1512 Excess Velocity Alarm on CNC Lathes
Clear the Fanuc DS1512 Excess Velocity alarm. Troubleshoot polar interpolation G12.1, plane parameters 5460/5461, and mathematical singularities at the center.
Introduction
When the cutting tool approaches the center of rotation during a high-speed facing or slotting pass in polar coordinate interpolation, a severe mathematical singularity forces the physical linear axis to accelerate exponentially. If the programmed feedrate demands a linear velocity that exceeds the controller's safety threshold, the system immediately triggers a DS1512 Excess Velocity Alarm, halting all tool path movements instantly. This sudden interruption stops the workpiece mid-cut, leaving a tool mark on the surface and risking catastrophic tool breakage or turret damage due to high deceleration forces. Resolving this fault requires managing interpolation feedrates and plane parameter structures.
Technical Summary
| Signal / Code | Modal Group / Type | Applicable Brands | Critical Parameters | Primary Constraint |
|---|---|---|---|---|
| G12.1 / G13.1 (Polar Coordinate Interpolation) | Group 15 / Modal | Fanuc | No. 5460 (Linear Axis) No. 5461 (Rotary Axis) No. 1430 / No. 1432 (Max Feedrate) | Cutter compensation must be canceled with G40 before entering polar mode. Only G01, G02, G03 are permitted. |
Quick Read
- Cancel Cutter Compensation: Always execute a G40 command before initiating polar coordinate interpolation with G12.1 to prevent secondary sequence errors and Alarm 0145.
- Restrict G-Code Commands: Ensure only axis movement commands from the 01 G-code group (G01, G02, and G03) are commanded while G12.1 mode is active; do not use forbidden codes such as G27, G28, G53, or G68.
- Manage Pole Center Feedrate: Manually reduce the programmed feedrate (F-code) when the tool path crosses near the center of the workpiece (the pole) to avoid exceeding maximum cutting speed parameters.
- Verify Axis Binding Parameters: Confirm that Parameter No. 5460 (linear axis definition) and Parameter No. 5461 (rotary axis definition) are mapped to valid controlled axes from 1 to the total axes count.
- Inspect Maximum Speed Limits: Audit Parameter No. 1430 (maximum cutting feedrate for each axis) and No. 1432 (maximum feedrate with look-ahead acceleration enabled) to establish proper hardware feed limits.
- Understand Turret Mode Limits: Avoid commanding tool length offset commands like G43 or G43.1 if the machine's parameters specify the turret tool change method, preventing Alarm 0366.
Basic Concepts
In standard lathe operations with live tooling, polar coordinate interpolation represents a sophisticated coordinate plane conversion where Cartesian programming coordinates are dynamically transformed into physical linear (X-axis) and rotary (C-axis) axis movements. The system mathematically binds the linear axis and the rotary axis via plane selection parameters prior to complex interpolation, creating a virtual coordinate system. This allowed programmers to command straight lines or circular contours on the workpiece face as if they were working on a standard milling machine, avoiding manual trigonometric calculation. To ensure recovery can always be performed safely without loss of custom configurations, refer to Fanuc SYS ALM195 196 197 System Alarms.
However, the physics of rotation introduce a significant mathematical constraint as the tool path approaches the center of the workpiece. Because the linear distance per rotation decreases rapidly near the pole center, the linear axis must accelerate aggressively to maintain the programmed surface feedrate. If a programmer commands a constant feedrate across the center, the resulting speed calculation will eventually exceed the machine's physical limits, prompting the servo drive to halt motion to protect the physical ballscrews and guide rails. High axis acceleration and coordinate tracking problems can also be checked in SV0411 Servo Deviation Alarm.
Command Structure
The syntax for activating and canceling polar coordinate interpolation is defined by a modal command pair from G-code Group 15. The G12.1 command initiates the Cartesian-to-polar coordinate transformation, establishing the virtual machining plane where the linear axis represents the virtual X-axis and the rotary axis represents the virtual C-axis. To return the controller to the normal coordinate system, the programmer must command G13.1 in a separate block, canceling all active polar calculations.
Before G12.1 can be commanded, cutter compensation must be completely inactive. Programming G12.1 while cutter compensation is active will cause the NCK to reject the block immediately. Once in G12.1 mode, the tool paths are restricted to linear interpolation G01 and circular interpolation G02 or G03. Any attempt to command rapid traverse movements or coordinate rotations will result in an immediate syntax error and safety shutdown.
The control syntax and software interface commands are structured as follows:
G40: Cancel tool radius compensation (mandatory prior to entering polar mode).G12.1: Activate polar coordinate interpolation mode.G01 X... C... F...: Linear interpolation using Cartesian-to-polar conversion.G13.1: Cancel polar coordinate interpolation mode.
The critical machine parameters that control the coordinate planes and cutting feedrate limits are outlined below:
Parameter No. 5460: Plane selection parameter defining the linear axis (Value range: 1 to total controlled axes).Parameter No. 5461: Plane selection parameter defining the rotary axis (Value range: 1 to total controlled axes).Parameter No. 1430: Maximum cutting feedrate per axis when look-ahead acceleration/deceleration is disabled (Machine dependent).Parameter No. 1432: Maximum cutting feedrate per axis when look-ahead acceleration/deceleration is enabled (Machine dependent).
Brand Applications
Fanuc
Fanuc controls utilize a highly rigid parameter architecture to manage polar coordinate interpolation. The linear axis is defined using parameter 5460, while the rotary axis is bound via parameter 5461. The system requires that G40 be active prior to commanding G12.1, or the controller will immediately issue Alarm 0145. When the polar coordinate mode is active, the controller maps the physical axes to the virtual coordinate plane, allowing G01, G02, and G03. If the tool path enters a restricted zone under hypothetical axis direction compensation, the system will trigger Alarm DS1514 to halt motion.
Brand Comparison
| Series / Version | Configuration Method | Alarm Behavior & Severity |
|---|---|---|
| Fanuc Series 16i / 18i / 21i | Configured via parameters No. 5460 and No. 5461; axis indices range from 1 to controlled axes limit. | Issues Alarm DS1512 if feedrate calculation near the pole center exceeds parameter 1430 limits. |
| Fanuc Series 0i (0i-TD / 0i-TF) | Configured similarly using 5460/5461, but standard maximum feedrate limits are tightly coupled with look-ahead parameters (No. 1432). | Triggers Alarm 0145 if plane selection is command-mismatched or cutter compensation is active. |
| Fanuc Series 15i / 15 | Utilizes older, dedicated parameters for axis binding, requiring system reset after modifications. | Displays Alarm 014 for turning controls (Illegal Lead Command) vs milling controls (Can Not Command G95) for identical error categories. |
Technical Analysis
An analytical review of Fanuc's polar coordinate interpolation architecture highlights key differences in how the system manages axis binding and error categorization across various model series and application types. In high-performance Fanuc Series 16i, 18i, and 21i CNCs, plane selection parameters 5460 and 5461 are used to exclusively bind the linear and rotary axes prior to complex interpolation, ensuring consistent coordinate transformation. In the compact Fanuc Series 0i controllers, feedrate control is heavily dependent on whether look-ahead acceleration is enabled in the parameters. If look-ahead is enabled, Parameter No. 1432 dictates the maximum cutting feedrate, whereas standard interpolation defaults to Parameter No. 1430, requiring careful parameter tuning to avoid speed spikes near the center of rotation. Troubleshooting complicated digital loop responses can be further referenced in SV0414 Digital Servo System Alarm.
Beyond model-specific speed scaling, Fanuc's internal system architecture enforces a strict separation of turning (T-series) and milling (M-series) error definitions. This separation is clearly illustrated by how identical alarm codes are parsed; for example, Alarm 014 represents an 'ILLEGAL LEAD COMMAND' on turning controls but represents a 'CAN NOT COMMAND G95' error on milling controls. Separate safety interlocks dictate how the machine responds to programming errors. If a programmer incorrectly commands a tool length offset like G43 or G43.1 when the machine uses the turret tool change method, the NCK immediately triggers Alarm 0366 to prevent a dangerous physical shift of the indexing turret.
Program Examples
; Fanuc: Polar Coordinate Interpolation and Safe Retract Sequence
N10 G40 ; Cancel tool radius compensation before entering polar mode
N20 G12.1 ; Activate polar coordinate interpolation mode
N30 G01 X50.0 C15.0 F200.0 ; Linear interpolation using Cartesian-to-polar conversion
N40 G13.1 ; Cancel polar coordinate interpolation mode
N50 M30 ; End of program and reset modal states
Dry Run Execution Procedure
Performing a dry run of the polar coordinate interpolation routine prevents unexpected high-speed axis acceleration and tool breakage. Follow this step-by-step verification procedure:
- Confirm Parameter Settings: Verify that Parameter No. 5460 and No. 5461 are set to valid axis indices, and ensure the maximum feedrate parameters (No. 1430 or No. 1432) match the machine's physical limits.
- De-activate Cutter Compensation (Block N10): Ensure G40 is commanded before G12.1 is read. In a dry run, verify that the controller's active compensation registers drop to zero.
- Enter Polar Mode (Block N20): Execute the G12.1 command. The system will switch to the virtual X-C plane without physical axis movement.
- Monitor the Center Pass (Block N30): Execute the interpolation block. Watch the axis speed indicators closely on the HMI. If the path passes near the pole center (X0, C0), ensure that the feedrate does not spike abnormally or trigger the DS1512 Excess Velocity Alarm.
- Cancel Polar Mode (Block N40): Command G13.1 to safely return the controller to the standard Cartesian coordinate system before ending the program.
Error Analysis
| Alarm Code | Trigger Condition | Operator Symptom | Root Cause & Practical Resolution |
|---|---|---|---|
| DS1512 EXCESS VELOCITY | Feedrate of the linear axis during polar coordinate interpolation mathematically exceeded the maximum cutting feedrate. | Tool path immediately halts; motion stops mid-cut, potentially leaving a surface mark. | Programmed feedrate (F-code) is too high as the tool passes near the rotation center (the pole). Reduce the F-code feedrate manually in this zone, or increase Parameter 1430/1432 if safe. |
| DS1514 ILLEGAL MOTION | Attempt was made to travel into a restricted area during hypothetical axis direction compensation while in G12.1 mode. | Axis motion is disabled immediately, preventing turret travel. | Tool path coordinates entered a restricted interference zone. Check tool path coordinates and adjust boundary limits in parameters. |
| 0145 ILLEGAL CONDITIONS | G12.1 or G13.1 commanded while cutter compensation was active, or plane selection parameters No. 5460 and No. 5461 were incorrectly configured. | NCK issues a program syntax alarm and rejects block execution. | Failing to command G40 before G12.1/G13.1, or setting invalid axis indices in parameters 5460/5461. Ensure G40 is active and audit parameter values. |
| 0366 IMPROPER G-CODE | G43 or G43.1 commanded while turret tool change method is selected. | The turret stops executing, blocking the tool shift operation. | Incorrectly commanding tool length offsets on a machine with a parameter-configured turret tool change method. Correct the G-code program to omit G43/G43.1. |
Application Note
A catastrophic turret collision and severe ball screw deformation is the direct consequence of failing to cancel tool radius compensation before engaging polar coordinate interpolation on Fanuc systems. When an operator initiates a virtual slotting pass using live tooling without commanding G40, the system immediately locks up and issues Alarm 0145, halting all active program blocks. Similarly, if the tool path crosses the center of rotation (the pole) at a high constant feedrate, the mathematical Cartesian-to-polar translation demands an infinite speed from the linear axis, triggering the DS1512 Excess Velocity Alarm and freezing the axes mid-cut. To prevent leaving a permanent gouge on a high-value turning workpiece, programmers must manually reduce the F-code feedrate when approaching the center, and technicians must verify that parameters 5460 and 5461 are correctly bound to the physical linear and rotary axes.
Related Command Network
- G12.1: Activates polar coordinate interpolation, shifting the control into the virtual X-C coordinate plane.
- G13.1: Cancels the polar coordinate interpolation mode and returns the machine to standard Cartesian programming coordinates.
- G40: Cancels active tool radius compensation, which is an absolute prerequisite command before G12.1 can be activated without triggering Alarm 0145.
- G01: Executes linear axis interpolation and is one of the only motion commands permitted while in G12.1 mode.
- G43 / G43.1: Commands tool length offset compensation, which will trigger Alarm 0366 if specified on machines using the turret tool change method.
Conclusion
Eliminating the DS1512 Excess Velocity alarm requires strict adherence to polar feedrate constraints and a precise configuration of plane selection parameters. Manually reducing programmed feedrates when tool paths cross the workpiece center protects ball screws from exponential acceleration. Keeping cutter compensation disabled prior to G12.1 activation ensures clean transitions, allowing the CNC to maintain safe, uninterrupted production during live tool milling operations.
Frequently Asked Questions
Why does my Fanuc CNC trigger a DS1512 Excess Velocity Alarm only when the tool gets close to the center of the workpiece?
This behavior is caused by a mathematical singularity inherent to polar coordinate interpolation. As the tool approaches the center of rotation (the pole), the rotary axis (C-axis) and the linear axis (X-axis) must move extremely fast to maintain the programmed surface feedrate (F-code) over a shrinking radius. To resolve this, you must manually program a lower feedrate (F-code) for segments crossing the center of the workpiece, ensuring the calculated speed does not exceed Parameter No. 1430 or No. 1432 limits.
What is the difference between Alarm 014 on Fanuc Turning and Milling series controls?
Fanuc separates its error definitions based on the control type (T series for turning and M series for milling). For identical error numbers, Alarm 014 represents an 'ILLEGAL LEAD COMMAND' on turning systems but indicates a 'CAN NOT COMMAND G95' (feed per revolution) error on milling systems. When troubleshooting Alarm 014, check the active programming mode and refer specifically to the manual of your exact controller type to take the correct diagnostic action.
How do I correct an Alarm 0145 Illegal Conditions in Polar Coordinate Interpolation on my Fanuc control?
This alarm is triggered when G12.1 or G13.1 is commanded while cutter compensation is active (G41 or G42), or when plane selection parameters No. 5460 and No. 5461 are incorrectly configured. Ensure you program a G40 command to fully cancel cutter compensation before the G12.1 command block. If the alarm persists, access your system parameters and verify that Parameter No. 5460 and Parameter No. 5461 are set to valid controlled axis indices corresponding to your linear and rotary axes.
Still not resolved?
Ask our AI assistant about this topic in natural language. Grounded in verified sources, no hallucinations.

- CNC CARE Co-Founder (May 2025 - Present)
- Mitsubishi Electric NC Sales & Service Section Manager (2008 - 2025)
- Reis CNC Service Engineer (2003 - 2005)
- Ö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
G73 and G83 Peck Drilling Cycles: High-Speed and Deep-Hole Milling
Program G73 and G83 peck drilling cycles on Fanuc, Siemens, and Mitsubishi CNCs. Learn parameters, clear alarms, and optimize high-speed deep-hole milling.
G50.2 and G51.2 Polygon Turning: Synchronized Lathe Machining
Learn how to program G50.2 and G51.2 polygon turning on Fanuc, Siemens, and Mitsubishi CNC controls. Master spindle synchronization parameters, alarms, and G-code examples.
G31 Skip Function and CNC Probe Programming: Fanuc, Siemens, Mitsubishi
Master G31 skip function and probe programming on Fanuc, Siemens, and Mitsubishi CNCs. Prevent crashes, resolve alarms, and configure servo lag parameters.
G07.1 Cylindrical Interpolation: Guide for Fanuc, Siemens, Mitsubishi
Master G07.1 cylindrical interpolation on Fanuc, Siemens, and Mitsubishi CNCs. Learn axis mapping parameters, alarm fixes, and syntax rules to prevent crashes.