Siemens CYCLE800 G-Code: Swivel Planes & Tool Alignment
Master Siemens CYCLE800 for 3+2 axis machining. Learn plane swiveling, tool alignment, parameter setup, and how to troubleshoot Alarm 61190 and 61153.
Introduction to Siemens CYCLE800 Swiveling
When approaching a programmed machining operation in a swiveled plane, a misconfigured retraction path or an unmodeled clamp risks driving a high-speed tool holder or spindle directly into a vise jaw, chuck, or fixture. If the cycle violates software limit switches below the retraction plane, the SINUMERIK control instantly halts axis travel with Alarm 61190 or Alarm 61153, leaving the tool trapped in the workpiece. However, if the violation occurs above the retraction plane, the controller attempts to travel along the software limit switch boundaries, potentially dragging the cutting tool across raw material and scrapping the part. Avoiding these costly machine crashes requires a rigorous setup of retraction coordinates, precise kinematic direction configuration, and proactive parameter auditing.
Technical Summary of Plane Transformations
| Technical Attribute | Specification / Value |
|---|---|
| Command Code | CYCLE800 |
| Modal Group | Plane swiveling / Swivel plane / Swivel tool / Align tool (3+2 axis) |
| Applicable Brand | Siemens |
| Critical Parameters | _FR (Retraction), _TC (Swivel data block), _MODE (Swivel mode), _DIR (Preferred direction) |
| Primary Constraint | Negative retraction path is not permitted; no direct swivel possible when no tool or cutting edge is active, or if a rotation is active in a settable work offset G54. |
Quick Read: High-Priority Operational Constraints
- Pre-Position the Tool: Always jog the tool in the X/Y plane as close to the target feature as possible before invoking CYCLE800 to avoid traveling along limit switch boundaries.
- Reset Active Frames: Deselect the active swivel data record and delete active swivel frames by programming the _TC parameter as "0".
- Choose Kinematic Direction: Define the _DIR parameter to select the preferred rotary axis combination, using -1 for the smaller value, +1 for the larger value, or 0 for calculation only.
- Enforce Positive Retraction: Check that retraction mode _FR uses a positive value, as negative paths in maximum or incremental retraction modes will halt the machine.
- Check Mirroring State: Confirm the Work Coordinate System is not mirrored, since retraction in the tool direction is prohibited under mirrored states.
- Activate Cutting Edge: Ensure a valid tool cutting edge, such as D1, is active before calling direct rotary axis swivel modes.
- Clear Offsets Prior to Blanking: Execute a swivel to zero before defining the workpiece blank, because raw stock definitions always refer to the active, unswiveled work offset.
Basic Concepts of Swivel Frames and Coordinate Transformations
The Siemens CYCLE800 function provides robust 3+2 axis positioning by establishing an active swivel frame that seamlessly converts active workpiece zeros and tool offsets into any inclined plane. The practical programming effect is massive: programmers can define 2D or 3D contour paths using standard X, Y, and Z geometry coordinates perpendicular to the angled surface, completely absolving them from manually calculating compound angles or tracking the physical orientation of the machine. However, programmers and operators must maintain strict discipline over retraction planes when applying this cycle. Because CYCLE800 dynamically positions the axes based on the machine's kinematic chain, swiveling blindly can cause a heavy collision with unmodeled fixtures. If the cycle is programmed to approach a new swiveled plane but violates software limit switches, it will attempt to travel along the limit boundaries above the retraction plane. If a violation happens below this plane, the control issues an alarm code and halts. To avoid this, operators are advised to safely pre-position the tool in the X/Y plane as close to the target feature as possible before invoking the swivel sequence.
Siemens handles kinematic transformations with unique architectural traits that distinguish it from competitors. First, Siemens relies on a distinct separation between "Swivel Plane" and "Align Tool." While "Swivel Plane" rotates the entire workpiece coordinate system (WCS) for milling oblique features, the "Align Tool" mode specifically angles the tool spindle (such as a B-axis on a turning machine) without rotating the active WCS, keeping the programmer's offsets intact while altering the tool's relief angle against the chuck or counterspindle. Second, Siemens provides deterministic control over ambiguous kinematic solutions via the _DIR parameter. Because a swivel table or swivel head can typically reach a target plane using two different physical axis combinations (differing by 180 degrees), the programmer forces the control to choose the "plus" (higher axis value) or "minus" (lower axis value) solution, directly impacting machine clearance and avoiding a hard collision. Third, Siemens delegates the physical execution of the swivel—such as applying or releasing a damping brake or moving the turret safely—to a customizable manufacturer cycle named CUST_800.SPF. This highly distinguished behavior allows machine builders to insert exact hardware logic without the end-user ever having to alter the standard CYCLE800 block in their part program.
Command Structure and Parameter Interface
The SINUMERIK CYCLE800 command structure accepts sixteen parameters to control retraction, data record selection, angle calculation, and axis travel. It serves as the primary system function for establishing static plane transformations. When configuring this cycle, the programmer must specify the name of the swivel data block and define the specific rotation angles. The system evaluates these angles using Solid, Projection, Axis-by-axis, or Direct Swivel modes depending on the bit-coded configuration.
To avoid programming errors, parameters must be configured according to the machine's mechanical limits. The retraction parameters must be aligned with the workspace geometry, and the direction parameters must be chosen based on fixture clearance. Programmers must ensure that all geometry axes are referenced prior to calling cycles that rely on absolute coordinate evaluation.
The complete syntax structure of the command is as follows:
CYCLE800(_FR, _TC, _ST, _MODE, _X0, _Y0, _Z0, _A, _B, _C, _X1, _Y1, _Z1, _DIR, _FR_I, _DMODE)
The individual parameters and their valid range configurations are detailed in the table below:
| Parameter | Data Type | Description | Value Range / Options |
|---|---|---|---|
_FR | INT | Retraction mode prior to swiveling. | 0 (No retraction), 1 (Retract Z), 2 (Retract Z, then X, Y), 4 (Maximum retraction in tool direction), 5 (Incremental retraction in tool direction) |
_TC | STRING | Name of the swivel data block configuration. | String (e.g., "TABLE", "HEAD 1"). A value of "0" deselects the swivel data record and deletes active swivel frames. |
_ST | INT | Swivel plane configuration bits. | Integer value for plane configuration. |
_MODE | INT | Swivel mode for evaluating the angles. | Bit-coded: 00 (Axis-by-axis), 01 (Solid angle), 10 (Projection angle), 11 (Direct rotary axis mode) |
_X0, _Y0, _Z0 | REAL | Reference point coordinates prior to rotation. | Real coordinate values. |
_A, _B, _C | REAL | Rotation values around the coordinate axes. | Real angles in degrees. Evaluated according to selected swivel mode. |
_X1, _Y1, _Z1 | REAL | Workpiece reference points after rotation. | Real coordinate offsets. |
_DIR | INT | Preferred kinematic direction and rotary axis travel option. | -1 (Position at smaller rotary axis value), +1 (Position at larger rotary axis value), 0 (Calculate swivel frame only, do not travel) |
_FR_I | REAL | Incremental retraction value in tool direction. | Real incremental distance (used when _FR = 5). |
_DMODE | INT | Display mode for swiveling. | Integer display format. |
Brand Applications: Siemens SINUMERIK Integration
Siemens
On Siemens SINUMERIK CNC controls, plane swiveling and tool alignment are managed by a dedicated kinematic transformation engine. The CYCLE800 cycle converts active workpiece zeros and tool offsets dynamically, allowing multi-axis operations to be programmed with standard G-code coordinates. Retraction behavior is configured through parameter bits to move the tool spindle to a safe clearance plane before the rotary axes are traversed.
To execute the physical movements, SINUMERIK controls run the manufacturer-defined cycle CUST_800.SPF. This custom file handles the activation of hydraulic axis clamps, releasing damping brakes, and coordinating turret indexing, which isolates the machine tool builder's hardware details from the operator's part program. Once a safe coordinate plane is established using CYCLE800, programmers can apply specialized milling routines such as those described in the guide on slot1 slot2 slot milling cycles. If the machining process requires complex contours on swiveled planes, operators can utilize cycle72 contour milling, or on multi-tasking turning-milling centers, the coordinates can be pre-positioned prior to executing cycle952 contour turning.
Brand Comparison: SINUMERIK Controller Versions and Series
Because this article is filtered specifically for the Siemens brand, we compare how different SINUMERIK controller versions, software releases, and machine data configurations handle swivel simulations and kinematic alignments.
| SINUMERIK Series / Option | Swivel and Alignment Features | Key Technical Differences |
|---|---|---|
| Software Version up to 4.4 vs SW 4.4+ | Workpiece simulation support for compile cycles. | Up to software version 4.4, compile cycles were entirely unsupported during simulation. From SW 4.4 and higher, selected compile cycles can be simulated. Machine data is aligned once during control power-up rather than at the start of simulation. |
| B-axis kinematics on turning machines (TCOABS vs TCOFRY) | Tool orientation alignment calculations. | Newer systems are recommended to set bit 5 of MD55221 to 1 to align the tool absolutely (TCOABS) using absolute coordinate references. This prevents coordinate tracking errors from accumulated frame calculations (TCOFRY). |
| SINUMERIK 840D sl vs 828D vs 808D Advanced | Swivel cycle alarm handling and configuration depth. | The 840D sl supports full compile cycle simulation and multi-channel kinematic chains. The 828D provides robust ShopMill/ShopTurn integration for standard swivel heads/tables. The 808D Advanced supports cycle alarms like Alarm 61190 for basic tool alignment and B-axis kinematics. |
Technical Analysis of Swivel Frame Logic
An analytical review of the SINUMERIK swiveling logic shows a clear transition from hardware-dependent configurations to software-simulated absolute kinematics. In software versions prior to SW 4.4, compile cycles could not be executed within the control's simulation engine. This limitation meant that operators could only verify multi-axis kinematic trajectories on the physical machine, increasing the risk of an unexpected crash. Modern software editions (SW 4.4+) resolve this by simulating selected compile cycles. To optimize performance, the system aligns the machine data of these compile cycles once when the control powers up, instead of re-aligning the values at every simulation start.
Tool alignment for B-axis kinematics on turning-milling machines has also evolved. Historically, systems relied on the TCOFRY frame calculation to orient the tool spindle relative to the G18 turning plane. In modern setups, setting bit 5 of machine data MD55221 to 1 forces the control to use TCOABS. This absolute calculation method ensures that the physical cutting-edge position, holder angle, and cut direction are tracked using absolute coordinates, preventing indexing errors when working near the main chuck or counterspindle.
Program Examples and Dry Run Verification
The following SINUMERIK G-code blocks demonstrate the correct application of CYCLE800 on different machine configurations. These G-code cycles must be configured with correct retraction parameters to ensure tool clearance.
1. Swiveling plane on a table-type machine kinematics
; Swivel plane: retract Z axis, select TABLE record, rotate Z=-45 and X=54.736 deg
N185 T="INDEX_ENDMILL_D32" D1 ; Activate tool and cutting edge
N187 S6000 M3 ; Start spindle
N188 G54 G0 X0 Y0 M8 ; Select work offset and move to coordinates
N190 CYCLE800(1,"TABLE",200000,39,0,0,25,-45,54.736,0,0,0,0,1,) ; Execute swivel
G0 X0 Y0 Z10 ; Move relative to the new swiveled workpiece coordinate system
2. Swiveling tool head with incremental retraction
; Swivel head: no retraction, select HEAD 1 record, position at smaller rotary axis value
N50 CYCLE800(0,"HEAD 1",100000,57,0,0,0,0,0,0,0,0,0,-1,100,1) ;
3. Deselecting active swivel data records and frames
; Deselect swivel record to restore basic coordinate settings
N300 CYCLE800(0,"0",200000,57,20,30,40,-20,0,0,0,0,0,1,,2) ;
Dry Run Verification Procedure
Before running a program containing CYCLE800 on raw workpiece stock, execute a dry run using this verification procedure:
- Verify Startup Settings: Ensure the program starts in the basic machine configuration. The tool must be pre-positioned in the X/Y plane close to the target coordinates.
- Confirm Active Tool Offsets: Verify that a valid tool length offset and cutting edge (e.g., D1) are active in the control.
- Select JOG Mode Swivel: Switch to the JOG operating area and press the Swivel softkey. Enter the target angles to verify that the physical axes travel smoothly without limit switch violations.
- Execute Program in Single Block: Switch to AUTO mode, select Single Block, and execute the CYCLE800 block. Observe the coordinate display on the screen to confirm the workpiece coordinate system (WCS) shifts and rotates according to the programmed angles.
- Monitor Retraction Path: Confirm that the tool retracts in the specified direction (Z or tool direction) and that the rotary axes orient without mechanical interference with clamps or fixtures.
- Deselect and Verify: Execute the block containing the deselected swivel data record (_TC = "0"). Confirm that the WCS returns to its basic unswiveled coordinate settings.
Error Analysis and Fault Diagnostics
The table below details the most common cycle alarms associated with CYCLE800, their triggers, symptoms, and practical resolutions.
| Alarm Code | Trigger Condition | Operator Symptom | Root Cause & Practical Resolution |
|---|---|---|---|
| Alarm 61190 Unable to retract prior to swiveling | Retraction parameters conflict with machine limits or setup. Occurs when a negative retraction path is programmed (modes 4 or 5), when attempting to retract towards a counterspindle in G18, or if axes are not referenced prior to the CALCPOSI function. | Program execution stops immediately; NC Start is disabled; screen displays Alarm 61190 with an error code (A to R). | Check retraction settings in CYCLE800. Ensure the incremental retraction path is positive. Verify that the Work Coordinate System is not mirrored. Reference all axes prior to start, and check machine data MD20700. |
| Alarm 61186 Invalid rotary axis vectors | Swivel setup contains missing or incorrect entries for the rotary axis vectors (V1 or V2). | Interpreter stop occurs; alarm is displayed on screen; axis travel is blocked. | Correct the configuration of rotary axis vectors (V1 and V2) in the active swivel data record. Check system parameters $TC_CARR30[n] to $TC_CARR33[n]. |
| Alarm 61153 No 'Rotary axes direct' swivel mode possible | Severe state conflicts prevent direct swiveling. Triggered if no tool or cutting edge is active, or if a rotation is active in a settable work offset (e.g., G54), basic reference, or basic active frame. | NC Start is blocked; alarm screen displays Alarm 61153 with error code (A to K). | Activate a valid tool and cutting edge (e.g., D1) before swiveling. Clear active rotations in G54 or basic frames, or reprogram using axis-by-axis swivel mode. |
Application Note: Safe Retraction and Fixture Clearance
A negative retraction path programmed in the maximum retraction or incremental retraction mode will immediately block execution, triggering Alarm 61190 and halting the machine before any swiveling occurs. This strict boundary condition is designed to prevent driving the tool carrier into the counterspindle or the chuck during G18 turning setups. To guarantee safe clearance, operators must verify that all axes are properly referenced prior to calling the CALCPOSI function, especially on systems with machine data MD20700 active. Furthermore, they must confirm that the Work Coordinate System is not mirrored, since a mirrored WCS disables tool-direction retraction entirely, locking the system and forcing a manual recovery. In case of emergency or recovery, operators must manually clear active swivel frames using the deselection block before executing any manual jog operations near raw stock or clamps.
Related Command Network
- TRAORI: Active 5-axis orientation transformation used to track the tool tip dynamically during inclined machining operations.
- TCARR: Tool carrier selection command used to activate the specific swivel data record defining the machine's physical kinematic chain.
- CUST_800: Manufacturer integration cycle called by CYCLE800 to handle mechanical axis clamping, brakes, and turret positioning.
- CUTMOD: Tool orientation command used to calculate cutting edge positions, holder angles, and cut directions for turning tools on B-axis kinematics.
Conclusion and Practical Takeaways
Safeguarding multi-axis machinery during CYCLE800 execution requires matching retraction planes to the physical kinematic boundaries of the setup. Enforcing safe X/Y pre-positioning and using the correct _DIR direction parameter prevents software limit switch violations and ensures predictable rotary axis movements. Maintaining absolute tool carrier configurations via machine data prevents coordinate tracking errors, keeping the CNC system safe and productive.
Frequently Asked Questions
Why does CYCLE800 trigger Alarm 61190 when attempting to retract in the tool direction?
This alarm occurs when a negative retraction path is generated or if the coordinate system is mirrored. Mirroring the Work Coordinate System (WCS) disables tool-direction retraction for safety. Check if mirroring is active in your work offset, and ensure your incremental retraction path is positive.
How does the _DIR parameter prevent collisions on machines with ambiguous kinematic solutions?
Swivel heads and tables can reach most coordinate planes using two physical angle combinations that are 180 degrees apart. The _DIR parameter tells the control which solution to use: -1 chooses the smaller rotary axis value, while +1 chooses the larger value. Select the value that provides the greatest clearance from your clamps, fixtures, and chuck.
Can I define a raw blank (WORKPIECE) after calling CYCLE800 in a part program?
No, because the blank definition always refers to the active work offset. If a swivel frame is active, the blank dimensions will be distorted. You must program a swivel to zero (deselecting the swivel data record using _TC = "0") before defining your workpiece blank.
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
Siemens CYCLE72 Contour Milling: Guide to Sinumerik Path Milling
Master Siemens CYCLE72 for contour milling on Sinumerik CNC controls. Learn parameter setup, avoid simulation alarm 61123, and prevent machine collisions.
Siemens CYCLE952 Contour Turning Cycle Programming Guide
Master Siemens CYCLE952 contour turning on Sinumerik CNC controls. Learn parameter lists, resolve Alarm 61051, and configure balance cutting.
Siemens SLOT1 and SLOT2 Slot Milling Cycles Programming Guide
Master slot milling on Siemens Sinumerik controls using SLOT1 and SLOT2 cycles. Learn parameter configurations, alarm 61000 prevention, and optimal tool paths.
Sinumerik POCKET3 and POCKET4 Milling Cycles: Siemens Guide
Master Siemens POCKET3 and POCKET4 pocket milling cycles. Learn parameters, avoid Alarm 61000 & Alarm 61105, and optimize toolpath insertion strategies.