SINUMERIK 828D Cycle Time Optimization Overview
The SINUMERIK 828D is a mid-range CNC platform used for turning, milling, and turn-mill applications. Once a process plan is locked—tools selected, cutting parameters validated, and motion paths smoothed—the remaining cycle-time budget is governed by controller-side overhead: look-ahead behavior, feed-forward control, spindle acceleration, and measuring-cycle performance. This reference documents the field-proven sequence of G-code and machine-data adjustments used to recover those final seconds without compromising surface quality or tool life.
The original target on a structural drilling-and-tapping part was 3 min 40 s, but the as-built cycle ran 7 min 48 s. After re-sequencing and CNC parameter tuning, the cycle was reduced to 4 min 7 s. The final reductions—on the order of single-digit seconds per change—are typically where the 828D's advanced surface and dynamics functions (DYNPOS, FFWON, G645, G642) deliver measurable value. Tuning these features incorrectly, however, can introduce axis vibration, contour errors, or premature spindle stall under load.
Reference material for the SINUMERIK 828D platform is published by Siemens in the 828D Die Mold and 828D Turning brochures:
Pre-Optimization Reality Check: Validating the Baseline
Before touching any G-code or machine data, profile the existing cycle in three segments and assign each segment its own percentage of total cycle time. Most 828D installations lose the majority of cycle time in one of three areas:
- Tool change and spindle ramp-up: dominant on multi-tool jobs with small-diameter drills (where S10000 takes 2–3 s to reach speed).
- Positioning moves between holes: dominant on high-feature-count drilling and tapping where G0 traverse distance dominates.
- In-cut engagement time: dominant when cutting parameters are conservative or cutter engagement is poor.
The 828D HMI provides cycle-time analysis under Diagnostics > Axis/Spindle > Service displays. Capture a representative cycle and compare the segment time against the controller's calculated ideal time. If the in-cut segment matches the calculated ideal, cutting parameters are already optimal; residual time is in motion control.
Spindle Acceleration and G94/G95 Feedrate Mode Selection
The 828D supports both G94 (feed per minute, mm/min or inch/min) and G95 (feed per revolution, mm/rev or inch/rev). For drilling, the canonical choice is G95 with a synchronous spindle because feed-per-revolution keeps chip load constant regardless of programmed rpm. However, G95 enforces a feed interlock: the axis will not start traversing until the spindle reaches the programmed speed within the tolerance window.
For small-diameter tools at high rpm (S10000 and above), this 2–3 s interlock per drill becomes the dominant cycle-time component. G94 removes the spindle-speed dependency from feed interpolation but does not remove the requirement that the spindle be at speed before cutting. In practice, the part programmer sees the following behavior on most 828D builds:
| Mode | G0 motion start | G1 motion start | Spindle interlock on G1 |
|---|---|---|---|
| G94 + spindle up to speed | Immediate, simultaneous with spindle ramp | Waits for spindle at-speed confirmation | Yes (PLC-controlled) |
| G95 + spindle up to speed | Immediate, simultaneous with spindle ramp | Waits for spindle at-speed AND speed-stable window | Yes (PLC-controlled) |
| G94 + M3 issued simultaneously with G0 | Spindle and motion overlap fully | Same as above | Yes, but motion already complete by the time interlock clears |
The field-proven pattern is to issue the spindle start in parallel with the final positioning move so that the spindle ramp is fully overlapped with rapid traverse:
N10 M6 T01 ; tool change
N20 G94 G0 X100 Y100 ; positioning starts immediately
N30 M3 S10000 ; spindle ramps during the G0, arrives at speed before hole
N40 G95 G1 Z-10 F0.05 ; cuts without further wait
Verify spindle ramp time on the 828D HMI under Diagnostics > Spindle > Setpoint/Actual. The setpoint curve should reach 95% of programmed speed before the next G1 line is read. If the PLC holds axis motion until spindle at-speed (a builder-dependent behavior), coordinate with the machine builder to release the interlock during G0 and re-engage on G1.
Compressor and Look-Ahead Configuration (G64, G645, G642, G644)
Look-ahead contour control determines how the 828D blends consecutive block transitions. The available modes are:
| Mode | Tolerance window | Behavior | Use case |
|---|---|---|---|
| G60 | N/A (exact stop) | Brake to zero at every block end | Sharp corners, threads |
| G64 | Default (path tolerance) | Blend with maximum permitted deviation | General milling |
| G641 | Programmed (G641 ADIS=…) | Blend with explicit tolerance | General milling with controlled deviation |
| G642 | Adaptive (axis-dynamic) | Blend based on axis acceleration capability | High-dynamics milling |
| G643 | Block-internal | Blend within a single block | Fine surface finishing |
| G644 | Maximum dynamics | Aggressive smoothing across many blocks | High-speed machining |
| G645 | Hybrid (G642+G644) | Adaptive blending with extended look-ahead | Drilling, tapping, complex contours |
For drilling-and-tapping cycles with mixed rapid positioning and circular interpolation, G645 provides the best compromise: it applies G642-style adaptive tolerance during curved segments and extends the look-ahead across multiple short linear segments. The original program was running G64, which applies a fixed tolerance and limits the look-ahead to fewer blocks.
The actual gain from switching G64 → G645 on a structural part with 60+ drilled holes typically falls in the 1–3% range, observed primarily in reduced deceleration between short positioning segments. Combined with FFWON and DYNPOS (next section), the gain can reach 3–5%.
N10 G645 ; adaptive contour control with extended look-ahead
N20 SOFT ; soft acceleration ramp (see acceleration section)
N30 FFWON ; velocity feed forward on
N40 DYNPOS ; dynamic positioning mode for rapid traverse
ADIS programmed explicitly per the application is the fallback.Velocity Feed Forward and Dynamic Positioning (FFWON, DYNPOS, RTLION, CPREON)
These four functions address different layers of the position-control loop on the 828D:
| Function | Effect on cycle time | Effect on quality | Activation command |
|---|---|---|---|
| FFWON (Feed Forward ON) | Reduces following error at velocity setpoint changes | Improves contour accuracy at high feed | FFWON |
| DYNPOS (Dynamic Positioning) | Allows higher axis acceleration during rapid positioning | None on cuts; may stress mechanics | DYNPOS |
| RTLION (Rapid Traverse Lift ON) | Retracts the active axis earlier on a rapid retract command | Saves non-cutting retract time on tapping | RTLION |
| CPREON (Contour Preprocessing ON) | Pre-computes block transitions to reduce interpolation latency | Improves corner quality at high feed | CPREON |
FFWON and DYNPOS together produced the documented 8-second improvement on the structural part, with visibly smoother motion. The combination works because:
- FFWON reduces the contour error at the start of each positioning move, allowing the controller to command a higher acceleration without overshoot.
- DYNPOS overrides the conservative axis acceleration limit applied during G0, allowing the axis to use the drive's maximum capability during rapid traverse.
RTLION is particularly valuable on rigid tapping cycles (CYCLE84 or G331/G332) where the retract distance is fixed and the return speed is the same as the cut speed. Activating RTLION starts the retract as soon as the controller has decoded the direction reversal, not when the spindle has fully stopped.
CPREON enables the 828D's pre-processing look-ahead for contouring moves. On a part with curved entry/exit segments, CPREON eliminates the 1-block latency normally introduced between decode and execution, which becomes significant at high feedrates.
N10 FFWON ; feed forward on
N20 DYNPOS ; dynamic positioning
N30 RTLION ; early retract
N40 CPREON ; preprocessing
N50 G645 SOFT ; adaptive contour with soft ramp
Acceleration Mode Tuning: BRISK vs SLOPE/SOFT
The 828D supports three acceleration profiles via the NC command:
| Profile | Acceleration curve | Mechanical stress | Reach time to Vmax |
|---|---|---|---|
| BRISK | Step (jerk-limited step) | High | Fastest |
| SOFT (also SLOPE on some builds) | Trapezoidal ramp | Medium | Slower than BRISK |
| DRIVE (default) | Drive-defined profile | Low to medium | Drive-dependent |
BRISK reaches the velocity setpoint faster than SOFT, but the step in acceleration excites mechanical resonance in lightly-damped structures. On the original 828D installation, activating BRISK caused visible chatter on the operator panel, indicating that the controller cabinet or fixture was coupling with the axis acceleration. BRISK was deactivated.
SOFT applies a linear acceleration ramp, which is the standard compromise for cycle time and mechanics. The 828D Die Mold documentation highlights fast position, velocity, and current controller clock cycles as the platform's surface-quality advantage, but those advantages are realized with properly damped mechanics and SOFT acceleration.
Tapping Cycle Optimization and Spindle Synchronization
Tapping is the most spindle-bound operation on a drill-and-tap part. Each hole requires:
- Spindle ramp from 0 to tap speed (~0.5–1.5 s for S1000–S3000).
- Spindle synchronization with the Z axis (encoder phase lock).
- Cut engagement at the programmed feed-per-rev.
- Spindle stop and reverse at the bottom of the thread.
- Retract at synchronized feed.
- Spindle stop and ramp to next tool speed.
The 828D rigid tapping cycle CYCLE84 (with SDC for floating tap holder support) handles steps 2–5 in hardware. Cycle time per hole is dominated by the spindle accel/decel around the rigid tap. To minimize this overhead:
| Optimization | Mechanism | Typical gain |
|---|---|---|
| Increase spindle ramp rate (machine data) | Higher accel/decel current allowed to spindle drive | 0.2–0.5 s per hole |
Use RTLION
|
Early retract start, overlapped with spindle reversal | 0.1–0.3 s per hole |
| Program tap at minimum safe speed | Lower rpm = lower inertia = faster reversal | 0.3–0.6 s per hole |
Switch from CYCLE84 to G331/G332 with explicit params |
Removes cycle overhead, allows pre-positioning of Z | 0.1–0.2 s per hole |
On a 60-hole part, the cumulative gain is 30–80 seconds if all four optimizations are applied. Always confirm spindle motor thermal headroom before increasing the ramp rate—spindle drives are typically current-limited in acceleration more than in steady-state, and the I²t thermal model will throttle the ramp if the duty cycle is too high.
Tool Change and Auxiliary Function Acceleration
Tool change time on a 828D-controlled machining center is fixed by the mechanical sequence (arm swing, spindle unload/load, magazine index). The controller-side optimization is to ensure:
- The auxiliary function output is fast (M-functions issued with
M=QU(n)for quick acknowledgment). - The next-positioning block begins decoding during the tool change, not after it completes.
- The spindle ramp to the next tool speed begins during the last axis move of the previous tool, not after the tool change.
The 828D supports quick auxiliary functions via the syntax M=QU(3) which signals the PLC to acknowledge the function immediately rather than waiting for the modal state to settle. This is essential when the next motion block depends on a tool-specific modal state (length compensation, cutting parameters).
N10 T02 M=QU(3) ; tool change with quick ack
N20 G0 X50 Y50 ; positioning starts decoding during tool change
N30 M3 S8000 ; spindle ramp during positioning
N40 G1 Z-5 F200 ; cut starts as soon as spindle at speed
The OEM-specific PLC may also implement a spindle-on-during-tool-change mode where the spindle of the previous tool is not stopped until the new tool is verified. Coordinate with the machine builder to enable this if the program spends measurable time waiting for the previous spindle to stop.
Measuring Cycle Tuning: Replacing CYCLE978
The 828D ships with the CYCLE978 measuring cycle for in-process probing. On complex free-form surfaces, CYCLE978 can be the dominant non-cutting time source because it executes a multi-point approach, retract, and re-approach sequence with conservative feed between points.
For drilling-and-tapping parts where the only measurement requirement is hole position and diameter, a custom measuring cycle written in the part program is typically 30–60% faster than CYCLE978. The custom cycle:
- Positions to the nominal hole center at rapid.
- Approaches the hole edge at measurement feed (typically F200 in mm/min).
- Captures the probe trigger position.
- Calculates center as the midpoint of two opposite-edge triggers.
- Computes diameter as the edge-to-edge distance.
; Custom measuring cycle for hole position and diameter
N100 G0 X[Xnom] Y[Ynom] ; approach nominal center
N110 G1 X[Xnom]-[Dnom/2] F200 ; probe one edge
N120 STOPRE ; wait for probe trigger
N130 R10 = $AA_IM[X] ; capture position
N140 G1 X[Xnom]+[Dnom/2] F200 ; probe opposite edge
N150 STOPRE
N160 R11 = $AA_IM[X]
N170 R12 = (R10 + R11) / 2 ; calculated center
N180 R13 = ABS(R11 - R10) ; calculated diameter
This custom cycle executes in approximately 1.2 s per hole versus 3.5–4.5 s for the full CYCLE978 on a small-diameter hole. Across 20 measured features, the saving is 40–65 seconds. The trade-off is that the custom cycle requires the operator to manually define the nominal feature dimensions, whereas CYCLE978 infers them from the part geometry.
CYCLE832 Rough: High-Speed Machining Setup
CYCLE832 is the 828D's high-speed machining (HSM) setup cycle. The original test of CYCLE832 with roughing parameters produced no measurable improvement, which is consistent with the cycle's design intent: CYCLE832 is optimized for high-engagement roughing on free-form surfaces, not for the low-engagement drilling-and-tapping workload of the subject part.
The relevant CYCLE832 parameters and their applicability to a drill-and-tap part are:
| Parameter | Effect | Drill-and-tap applicability |
|---|---|---|
| Tolerance (TOL) | Defines contour deviation allowed during smoothing | Low impact; the part has minimal contour segments |
| Look-ahead blocks | Number of blocks the controller pre-reads | High impact; affects G0-to-G1 transitions |
| Jerk filter | Smoothing of acceleration profile | Medium impact; use with SOFT to avoid resonance |
| Feedrate scaling | Speed factor applied during smoothing transitions | Low impact |
For drilling-and-tapping parts, the equivalent of CYCLE832's look-ahead benefit is obtained directly by activating G645 with FFWON, without invoking the full CYCLE832 cycle. CYCLE832 is recommended only when the part contains significant 3D contouring (mold, die, free-form pocketing).
Verification: Measuring and Confirming Cycle Time Gains
After each tuning change, capture the cycle time and verify no quality regression. The 828D HMI provides the required instrumentation:
- Diagnostics > NC/PLC > Cycle time: total cycle from program start to M30.
- Diagnostics > Axis/Spindle > Service displays: per-axis following error, contour deviation, and KV factor.
- Diagnostics > Spindle > Setpoint/Actual: spindle ramp time, at-speed confirmation.
- Diagnostics > Servo trace: live trace of position setpoint, actual position, following error, and current.
A disciplined verification sequence for each candidate change is:
- Capture the baseline cycle time with the original G-code (no change).
- Apply one change only (e.g.,
G64 → G645). - Run 5 cycles; record mean cycle time and standard deviation.
- Inspect a representative part for surface finish and dimensional accuracy.
- If gain > 0.5% and quality unchanged, commit the change and proceed to the next.
| Change applied | Typical gain on 4-min part | Verification focus |
|---|---|---|
| Spindle accel parameters (with OEM) | 9 s | Spindle thermal, motor temperature |
| G64 → G645 | 2–5 s | Contour deviation on entry/exit moves |
| FFWON | 1–3 s | Following error under acceleration |
| DYNPOS | 2–4 s | Mechanical noise, vibration |
| RTLION | 1–3 s | Tapping thread engagement, no thread strip |
| CPREON | 0.5–2 s | Corner quality |
| Custom measuring cycle (replacing CYCLE978) | 40–65 s (per 20 holes) | Measurement repeatability |
Apply changes in this order: spindle parameters first (largest single gain), then look-ahead contour mode, then feed-forward and dynamics, then cycle-level optimizations last. Each layer depends on the previous being stable.
Troubleshooting Matrix: Common Pitfalls and Resolution
| Symptom | Likely cause | Resolution |
|---|---|---|
| Cycle time lower than expected after FFWON | Drive KV factor not re-tuned; velocity loop unstable | Reduce KV 10–20%, retune velocity-loop integral time |
| Visible panel vibration after BRISK | Mechanical resonance, not controller instability | Use SOFT; inspect fixture and cabinet mounting |
| Spindle stalls in cut after switching to G94 | Feed interlock cleared before spindle at speed | Re-confirm PLC interlock logic with machine builder |
| Following error spikes at G0→G1 transitions | FFWON enabled but acceleration ramp not matched | Enable SOFT acceleration profile; verify jerk limit |
| Tapping thread stripped after RTLION | Retract started before spindle direction confirmed | Disable RTLION; check spindle encoder phasing |
| Cycle time unchanged after CYCLE832 | Part is contour-limited, not motion-limited | CYCLE832 is ineffective for drilling-and-tapping; use G645 instead |
| Positioning slower after DYNPOS | Position controller still in conservative mode | Confirm DYNPOS modal state with $AC_DYNPOS
|
| Custom measuring cycle gives wrong diameter | Probe offset not accounted for | Add probe radius to captured edge positions |
FAQ
What is the difference between G64, G645, and G642 on the SINUMERIK 828D?
G64 is the default contour-control mode with a fixed tolerance and short look-ahead. G642 applies an adaptive tolerance based on the axis acceleration capability, smoothing transitions more aggressively. G645 combines G642's adaptive tolerance with an extended look-ahead across many blocks, making it the best fit for drilling-and-tapping parts with mixed rapid positioning and short linear segments.
Does FFWON (feed forward) reduce cycle time on a drilling-and-tapping part?
Yes, on parts where positioning moves are dominant. FFWON reduces the following error at the velocity setpoint transition, allowing the controller to command a higher acceleration without overshoot. Documented gains on the SINUMERIK 828D are 1–3 seconds on a 4-minute cycle, with visibly smoother motion when combined with DYNPOS and G645.
Can I switch from G95 to G94 to reduce spindle ramp wait time?
Switching to G94 does not remove the requirement that the spindle be at speed before G1 begins. The 828D PLC enforces a spindle at-speed interlock on G1 regardless of feed mode. The correct optimization is to overlap the spindle ramp with the final G0 positioning move so the interlock clears before the axis reaches the hole, not to switch feed modes.
Why does BRISK acceleration cause vibration on some 828D installations?
BRISK applies a step (jerk-limited) acceleration profile, which excites mechanical resonance in lightly-damped structures. If the operator panel or fixture shows vibration after BRISK is enabled, the cause is mechanical coupling, not controller instability. Switch to SOFT (trapezoidal ramp) and inspect the fixture and cabinet mounting.
What is the recommended sequence for applying 828D cycle-time optimizations?
Apply changes in this order: (1) spindle acceleration parameters with the machine builder, (2) contour control mode (G64 to G645), (3) feed forward and dynamic positioning (FFWON, DYNPOS), (4) tapping and retract optimization (RTLION, CPREON), (5) measuring cycle tuning (replacing CYCLE978 with a custom cycle). Verify each change with 5-cycle measurement and quality inspection before proceeding to the next.