1. Application Overview
A SINUMERIK 808D ADV controlling a spindle motor above 15 kW cannot drive the spindle directly through the CNC's integrated outputs. In this class of machine, the spindle motor is fed by a SINAMICS S120 modular drive system, and the 808D ADV issues a ±10 V analog setpoint to the S120. The drive must therefore be commissioned as a standalone vector-controlled drive with its own ramp generator, rather than receiving position-controlled motion commands over PROFIBUS or PROFINET.
The hardware in the source application is:
- Control Unit: CU310-2 PN (PROFINET variant)
- Power Module: PM240-2 (blocksize, with integrated line filter)
- Spindle motor: Three-phase induction motor above 15 kW
- Setpoint source: Analog input from 808D ADV main spindle output
This article documents how to configure ramp-up, ramp-down, and ramp smoothing directly on the drive when no PLC is generating the profile, using TIA Portal Startdrive as the commissioning tool. The discussion references the official SINAMICS S120 Function Manual (Entry ID 99472695).
2. Prerequisites
| Item | Requirement |
|---|---|
| CU310-2 PN firmware | SINAMICS S120 V5.2 or higher (V5.3 SP3 recommended for full Startdrive coverage) |
| TIA Portal | V16 or higher (Startdrive option package installed). Startdrive V16 onward supports CU310-2 explicitly. |
| Startdrive option package | "SINAMICS S120" support must be licensed inside TIA Portal |
| GSD/GSDML | Not required for analog operation (PROFINET only used for commissioning access) |
| Alternative tool | SINAMICS Starter (V5.4 SP3 or higher) — still the most complete commissioning tool |
| Web server | Built into CU310-2; enable through parameter p8986 (web server enable) and p8987 (configuration) |
| Cabling | Shielded twisted pair for the analog setpoint, separate from motor cables |
Startdrive V16 introduced explicit support for the CU310-2 PN. Older Startdrive versions may show the CU310-2 as "unknown device" or fail to expose the drive object list.
3. Drive Object Selection: VECTOR vs SERVO
When the drive object is created, the engineer must choose between two closed-loop structures:
| Drive object | Best use | Default pulse frequency | Max output frequency |
|---|---|---|---|
| VECTOR | Standard induction motor (asynchronous) speed control with field-weakening. Ramp-function generator enabled by default. | 2–4 kHz (parameter p1800) | ~650 Hz hardware, 800 Hz from firmware view |
| SERVO | Servo / synchronous motor with high dynamic response and higher pulse frequencies. | 4 kHz default (up to 16 kHz) | Same upper limit but better precision above 300 Hz |
For a standard induction spindle with no requirement to exceed 650 Hz output, VECTOR is the correct choice. It exposes the ramp-function generator (RFG) on drive object DO1 by default, which is exactly the behavior needed when no external PLC is shaping the velocity profile.
If the spindle must reach 800 Hz (a common requirement for high-speed milling spindles), change the drive object type to SERVO. With SERVO at 4 kHz pulse frequency the drive achieves 650 Hz comfortably, and 8 kHz pulse frequency is enough for 800 Hz. VECTOR will fault or saturate above 650 Hz on most PM240-2 power modules.
4. Ramp Generator Fundamentals
The ramp-function generator (RFG) translates a step change in setpoint into a linear ramp, bounded by acceleration and deceleration limits. The relevant parameters live in the function diagram 3010 / 3020 of the S120 List Manual.
| Parameter | Name | Default | Engineering meaning |
|---|---|---|---|
| p1120 | Ramp-function generator ramp-up time | 10 s | Time to ramp from 0 to reference speed (p2000) — also from negative to positive |
| p1121 | Ramp-function generator ramp-down time | 10 s | Time to ramp from reference speed (p2000) down to 0 |
| p1130 | Ramp-up initial rounding time (Tf) | 0 s | Smoothing at the start of ramp-up |
| p1131 | Ramp-up final rounding time (Tr) | 0 s | Smoothing at the end of ramp-up |
| p1132 | Ramp-down initial rounding time (Tf) | 0 s | Smoothing at the start of ramp-down |
| p1133 | Ramp-down final rounding time (Tr) | 0 s | Smoothing at the end of ramp-down |
| p1134 | Ramp-function generator rounding type | 0 (continuous) | 0=continuous smoothing, 1=lowpass (jerk limited), 2=continuous jerk limited |
| p1135 | OFF3 ramp-down time | 5 s | Emergency stop / quick stop ramp |
| p1145 | Ramp-function generator enable | 1 (enabled) | Set to 1 to keep the RFG active on VECTOR |
| p2000 | Reference speed | Motor rated speed | The speed that p1120/p1121 refer to as 100 % |
The instantaneous acceleration in rpm/s is therefore:
a = p2000 / p1120 [rpm/s]
For example, a spindle with p2000 = 18 000 rpm and p1120 = 30 s produces 600 rpm/s acceleration. If the gearbox stages cannot tolerate that, raise p1120 (and p1121) until the mechanical transient is within the gearbox's permissible torque.
4.1 Direction change behavior
On VECTOR, the RFG also handles direction reversal. p1120 defines the time to traverse from –nref to +nref, which means a 0-to-max transition uses half of p1120 if starting from 0. Many integrators are surprised by this. For a true 0-to-rated transition, set:
t_0→max = p1120 / 2
Alternatively, command p2000 to match the working speed rather than the motor's maximum mechanical rating.
5. Extended Ramp Generator with Smoothing
Mechanical systems with backlash, preloaded gear meshes, or weak couplings often oscillate when the ramp corners are sharp. The extended ramp generator rounds the corners of the ramp and can optionally behave as a jerk-limited trajectory planner.
Recommended starter values for a 4-stage gearbox spindle:
p1120 = 30 sp1121 = 30 s-
p1130 = 1.5 s(ramp-up initial rounding) -
p1131 = 1.5 s(ramp-up final rounding) -
p1132 = 1.5 s(ramp-down initial rounding) -
p1133 = 1.5 s(ramp-down final rounding) -
p1134 = 2(continuous jerk limiting)
Setting p1134 = 2 activates the continuous jerk-limited profile, which is the smoothest of the three profiles and is preferred for high-inertia CNC spindles.
6. Control Word Bits: RFG Enable vs Setpoint Enable
| Bit | Name | Effect |
|---|---|---|
| 0 | OFF1 / ON | Edge: 0→1 latches ON; 0 drives coast-down (RFG respected) |
| 1 | OFF2 | 0 = immediate pulse inhibit, coast stop |
| 2 | OFF3 | 0 = quick stop along p1135 ramp |
| 3 | Enable operation / pulse enable | 0 = pulses inhibited (drive de-energized) |
| 4 | Ramp-function generator enable | 1 = RFG active, 0 = RFG frozen (setpoint held at last value) |
| 5 | Unfreeze RFG / start RFG | 0→1 latches the ramp into motion |
| 6 | Enable speed setpoint | 0 = setpoint gated to 0, 1 = setpoint released to speed controller |
| 7 | Acknowledge fault | 0→1 rising edge resets faults |
| 10 | Control by PLC | 1 = drive accepts control from higher-level controller |
The original problem in the source was caused by driving bit 3 (pulse enable / "speed control enabled input") with what was meant to be the run command. The drive enabled its IGBTs, but bit 6 (setpoint enable) was still 0, so no setpoint reached the speed controller. Symptom: drive shows "RUN" but the motor does not move, and the ramp does not visibly engage.
Resolution: route the 808D spindle enable signal to STW1 bit 6 (setpoint enable) while keeping bits 0, 1, 2, and 3 statically enabled via BICO default wiring. In BICO terms, change p854[0] (source for bit 6 of STW1 in the free function block / digital input matrix) to point to the desired DI of the CU310-2, and verify p850[0] (source for bit 3) remains on the default digital input if used as a hardware enable.
7. Step-by-Step: Configuration in TIA Portal Startdrive
- Insert the drive. In the TIA Portal device tree, add a SINAMICS S120 CU310-2 PN. Confirm the firmware version is detected correctly (right-click → "Go online" → "Compare").
- Configure the drive object. In the device configuration, set DO1 to VECTOR (unless the spindle exceeds 650 Hz, in which case choose SERVO).
- Enter motor data. Open "Motor". Enter the motor's rated voltage, current, power, speed, cos φ from the motor nameplate. Use the motor calculation routine to compute equivalent circuit parameters, or load them from a Siemens motor list (1LE, 1PH, 1FT, etc.).
- Set the reference speed. Confirm or override p2000. This is the speed that p1120/p1121 reference to.
- Configure analog input. Open "Setpoints → Analog inputs". For AI0 (default), set the source to p756[0] = 0 (no inversion), scale via p757[0] (0 %), p758[0] (100 %) so that 0 V = 0 rpm and 10 V = p2000. Use r755[0] as the actual input monitor.
- Wire setpoint source. Set p1000 (main setpoint source) so that the speed setpoint is derived from the analog input. The default for VECTOR is r2050[1] (PROFINET PZD), which is wrong for the standalone analog use case. Change p1000[0] = 2 (analog setpoint) or to a specific BICO source matching your wiring.
- Configure the ramp-function generator. Open "Function blocks → Ramp-function generator". Enter the values from Section 5.
- Configure the control word bits. Open "Control / status words" and verify the mapping in Section 6. For standalone analog operation with a hardwired enable from the 808D, keep p850, p851, p852, p854 at their BICO defaults, or assign them to physical DIs of the CU310-2.
- Set speed limits. p1080 = 0 (minimum), p1082 = rated speed (or max commanded spindle speed) (maximum).
- Save project and download to drive. Use "Download to device" with the SINAMICS parameter assignment.
- Run the ramp generator trace. Open "Commissioning → Trace", add the signals r0062 (speed setpoint after RFG), r0063 (speed actual), and r0064 (RFG output). Record a 0→p2000→0 cycle.
8. SINAMICS Starter as an Alternative
Startdrive is sufficient for parameter editing and basic commissioning, but SINAMICS Starter remains the most complete tool for several reasons:
- Faster parameter search across the full list (over 15 000 parameters).
- More detailed function diagrams and trace recording.
- Can run as a standalone offline tool without TIA Portal.
- Better diagnostic view of PROFIdrive telegram traffic.
When the project is in TIA Portal but the trace or expert list is needed, Startdrive can be launched directly with the same SINAMICS project; there is no need to duplicate the configuration. Open the device in TIA, then right-click → "Open with SINAMICS Starter".
9. Web Server Commissioning on CU310-2
The CU310-2 has an integrated web server, accessed by default at http://<drive-IP>/index.html. It is useful for quick verification without installing TIA or Starter.
- Enable the web server:
p8986 = 1. - Configure access:
p8987(e.g., write-protect or full read/write). - Assign IP address: parameter
p8940(IP),p8941(subnet),p8942(gateway). - Browse to
http://<drive-IP>. The "Diagnostics" tab shows fault memory, the "Parameters" tab allows live write.
10. Verification Checklist
After commissioning, verify each item before handing the spindle to the machine operator:
| Test | Procedure | Pass criterion |
|---|---|---|
| Analog scaling | Apply 0 V, then 5 V, then 10 V at the analog input | Drive reports 0 %, 50 %, 100 % of p2000 on r0062 |
| Ramp-up time | Apply 10 V setpoint with STW1 = 0x4F (bits 0,1,2,3,6 set) | Motor reaches p2000 in (p1120 + p1130 + p1131) per the trace |
| Ramp-down time | Drop setpoint to 0 V | Motor decelerates to 0 in (p1121 + p1132 + p1133) |
| Direction reversal | Apply –10 V (or invert signal) | Motor reverses in p1120 (full traversal), not half |
| OFF3 quick stop | Clear STW1 bit 2 (pulse low for OFF3) | Motor stops in p1135 |
| Fault response | Remove motor encoder cable | Drive trips F07900 (motor speed signal fault) |
| Mechanical gearbox | Run a full acceleration cycle in each of the 4 gear stages | No audible gear whine, no spike above nameplate torque on r0080 |
11. Troubleshooting Matrix
| Symptom | Likely root cause | Parameter to verify | Resolution |
|---|---|---|---|
| Motor enabled but does not rotate | Setpoint enable (STW1 bit 6) not active | p854[0] | Route the 808D enable to bit 6, not bit 3 |
| Motor runs but ignores setpoint | p1000 setpoints to PROFINET, analog input not selected | p1000[0] | Set to analog setpoint source |
| Acceleration still too aggressive | p1120 too small or rounding disabled | p1120, p1130–p1133 | Increase ramp times, add rounding |
| Output saturated at 650 Hz | VECTOR mode with high-frequency spindle | Drive object type | Switch DO1 from VECTOR to SERVO, raise p1800 to 4 kHz |
| Drive faults F07900 (encoder) | Encoder cable not connected or shielded | Hardware check | Connect encoder; for V/f or sensorless operation, set p0400 = 0 and disable encoder evaluation |
| F30002 (DC link overvoltage on ramp-down) | p1121 too short, regenerative energy exceeds brake chopper capacity | p1121, brake resistor rating | Lengthen p1121 or verify the PM240-2 brake chopper is connected to an external brake resistor |
| F30001 (DC link overcurrent) | Ramp too aggressive on heavy load | p1120, p1121, p1280 (Vdc controller) | Enable Vdc_max controller (p1280 = 1) to extend ramp-down automatically |
| Drift when setpoint = 0 V | Analog input offset | p756[0] | Trim via offset compensation or recalibrate with r755[0] |
12. Notes on Advancing Torque Pre-Control
The official SINAMICS S120 Function Manual (Entry ID 99472695) describes a method to improve the speed controller's command behavior by computing the accelerating torque from the speed setpoint and feeding it directly to the torque setpoint. This technique is implemented with the pre-control parameter p1496 (acceleration pre-control scaling). For a heavy spindle with frequent direction reversals, enabling acceleration pre-control significantly reduces the speed error during the ramp:
-
p1496 = 100 %(default) for full pre-control. -
p0341 (motor moment of inertia) or p0342 (load moment of inertia / total)must be entered accurately, otherwise the pre-control overshoots or undershoots. - Set
p1496 = 0 %if the spindle inertia is unknown or varying (e.g., tool change with different masses).
For the 4-stage gearbox spindle described in the source, where p1120 has been raised to 30 s or more, acceleration pre-control is generally not required, but it is recommended for any ramp time below 10 s with high load inertia.
What is the difference between p1120 and p1121, and when should they differ?
p1120 defines the ramp-up time from 0 to p2000, p1121 defines the ramp-down time from p2000 to 0. They can differ when the drive is regenerating into a brake resistor (p1121 longer) or when the mechanical system requires faster deceleration than acceleration. For CNC spindles with mechanical backlash, use equal values to maintain symmetric dynamic response.
Why does my motor reach p2000 in half the time I entered in p1120?
On VECTOR, p1120 defines the time from –p2000 to +p2000 (full traversal). A 0→p2000 transition uses half of p1120, which surprises many integrators. Either accept the actual ramp as (p1120 / 2), set p2000 to the working speed rather than the rated speed, or use the SERVO drive object which has different ramp behavior.
Can I configure the ramp generator without TIA Portal Startdrive?
Yes. Use SINAMICS Starter (V5.4 SP3 or higher) for offline and online commissioning, or the CU310-2 web server for browser-based parameter editing. Startdrive V16 onward also supports the CU310-2 directly. Older Startdrive versions (V14, V15) do not officially support the CU310-2.
The motor does not move even though the drive is enabled. What is wrong?
How do I get 800 Hz output for a high-speed spindle?
Change the drive object type from VECTOR to SERVO and set p1800 (pulse frequency) to 8 kHz. The SERVO structure supports higher output frequencies and uses a different (but equivalent) ramp generator on DO1. PM240-2 power modules are typically derated above 650 Hz; verify thermal limits in the PM240-2 manual before commissioning above this frequency.