AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why a Sinusoidal Analog Speed Command Loses Tracking

Servo and stepper motion Published 8 min read By AutomateDirectUSA engineering team

Short answer

The tracking loss is the drive's ramp-function generator: a reported 1 s default ramp-up time cannot reverse the internal speed setpoint faster than about 1 Hz. Set ramp-up time p1120 and ramp-down time p1121 to zero, then verify the stroke's physical needs separately: 25 mm per revolution at ±20 mm and 10 Hz requires a calculated 3,016 rpm and 79 m/s² peak acceleration.

On this page
  1. What the symptom tells you
  2. Likely causes, cheapest to check first
  3. Zero the ramp times and retest
  4. Confirm scaling, polarity and offset
  5. The peak speed the stroke needs
  6. The peak acceleration and torque the stroke needs
  7. What the analog input update adds
  8. The decision for this axis
  9. Questions asked

Your sine never reaches the speed regulator intact. On a SINAMICS V90 taking a ±10 V speed command from a single-axis motion controller, a ramp-function generator sits between the analog input and the speed loop, and its ramp-up time p1120 rate-limits every change of the internal speed setpoint. The reported default is a 1 s ramp to maximum speed, so the internal command cannot reverse faster than roughly once per second, which is exactly where tracking starts to collapse. Set ramp-up time p1120 and ramp-down time p1121 to zero to remove that artificial limit from the command path. Then verify the physics separately, because the stroke itself is demanding: with 25 mm of travel per motor revolution, ±20 mm at 10 Hz needs a calculated peak speed of 3,016 rpm and a peak acceleration of 79 m/s², and a 2,000 rpm ceiling would cap this stroke near 6.6 Hz.

What the symptom tells you #

The reported behaviour matches the ramp explanation: the sine tracks at very low frequency and deteriorates quickly as frequency rises, and it does so with the actuator disconnected, motor alone. That last fact is the useful one. Unloading the axis removes the translating mass, friction and process forces but leaves the rotor's inertia and every command-path restriction in place, so a command-path limit explains the failure better than a torque shortfall. The ramp generator is that limit: it turns any fast setpoint change into a fixed-slope ramp. With a ramp measured in seconds, a command that reverses more often than once per second has its reversals smoothed away, and the internal setpoint becomes a rounded, lagging version of the voltage at the terminals. The distortion is not an exact 1 Hz cutoff — it worsens with command amplitude too — but it makes the ramp parameters the first thing to read.

Likely causes, cheapest to check first #

Work down the list; each entry names its confirming check, not just the suspicion:

  • Ramp times at their defaults. Read p1120 and p1121 in the drive's parameter list. A ramp-up time around 1 s matches the collapse. Confirm by setting both to zero and repeating the same low-amplitude sine; the frequency-dependent distortion should disappear.
  • Analog scaling, polarity or offset wrong. The ±10 V range names the voltage, not the speed it maps to. Confirm with three static DC checks at small amplitude — positive, negative and zero — comparing the internal speed setpoint against the configured scaling.
  • Configured speed limit below the stroke's need. Confirm the configured limit and the motor's permitted speed against the peak-speed calculation in the next section.
  • Analog input response delay. Millisecond-range delays are documented in this drive family's analog response. A few milliseconds cannot explain a failure at 1 Hz; screen it with the update-rate rule later in this article.
  • Torque shortfall. Plausible only once the ramps are gone and the axis is loaded. Confirm by logging actual speed and motor current through a low-amplitude sweep; current pinned at its limit while speed error grows means the drive is out of torque.

Zero the ramp times and retest #

Record both ramp values and save the drive configuration before changing anything, so the previous behaviour stays restorable. Then set ramp-up time p1120 and ramp-down time p1121 to zero at the keypad or in the commissioning tool. If your setpoint chain builds its ramps in a higher-level block instead — SINAMICS DCC, for example — the change happens there, and scaling the p1120 ramp-up time with SINAMICS DCC walks through that conversion. With the ramps at zero the drive passes the analog voltage's slope straight to the speed loop, so before retesting, confirm the travel limits, guards and stopping provisions that do not depend on the ramp to slow the axis. Repeat the same low-amplitude sine sweep that failed before. Expected result: the distortion that grew with frequency is gone. If tracking is still poor at low frequency, move to the scaling checks.

Confirm scaling, polarity and offset #

Run the three static checks with the axis enabled and travel-limited:

  • A small positive command: the internal speed setpoint should equal the configured voltage-to-speed scaling applied to the measured voltage, and actual speed should settle on that setpoint.
  • The same small negative command: equal magnitude, reversed direction.
  • Zero command: setpoint near zero. Any persistent offset must be removed, because in speed mode the drive closes speed only — position is the integral of actual speed, and a small offset integrates into steady drift away from the middle of the stroke.

The command side owes the axis a correct shape too. For a position x(t) = A sin(2πft), the analog output must carry v(t) = 2πfA cos(2πft): velocity leads position by a quarter cycle. A controller generating the sine has to produce that velocity profile and manage stroke centering itself, since the drive is not closing a position loop.

The peak speed the stroke needs #

For position x(t) = A sin(2πft) with amplitude A and frequency f, peak velocity is v_peak = 2πfA, and motor speed follows through the lead L:

n_peak = 60 × v_peak ÷ L

At the 10 Hz target with A = 20 mm: v_peak = 2π × 10 Hz × 20 mm = 1,256.6 mm/s, and n_peak = 60 × 1,256.6 mm/s ÷ 25 mm/rev = 3,016 rpm, assuming the direct 25 mm of travel per motor revolution. The frequencies in between, calculated for the same inputs:

Frequency Peak linear speed Peak motor speed
1 Hz 125.7 mm/s 302 rpm
2 Hz 251.3 mm/s 603 rpm
3 Hz 377.0 mm/s 905 rpm
8 Hz 1,005.3 mm/s 2,413 rpm
10 Hz 1,256.6 mm/s 3,016 rpm

These are calculated values for that amplitude and lead, not measurements. Now compare them with the speed you actually have. A 2,000 rpm ceiling converts to 2,000 × 25 ÷ 60 = 833.3 mm/s of linear speed, and 833.3 ÷ (2π × 20) = 6.6 Hz, so under that ceiling the stroke tops out there regardless of the ramps. At that frequency the same ceiling leaves room for only 833.3 ÷ (2π × 10) = 13.3 mm of amplitude. Read the drive's configured speed limit and the motor's permitted speed before pushing: an axis driven past its limit normally announces it as an over-speed alarm, and the servo drive over-speed alarm causes and checks guide lists what to read first.

The peak acceleration and torque the stroke needs #

Peak acceleration is a_peak = (2πf)²A, and it grows with the square of frequency, so torque demand does too:

Frequency Peak linear acceleration Relative torque demand
1 Hz 0.790 m/s² 1
8 Hz 50.5 m/s² 64
10 Hz 79.0 m/s² 100

Calculated for the same amplitude and lead as the speed table. Torque follows through the reflected inertia: T = J_total × α, with α = 2π × a_peak ÷ L. At the upper frequency that is α = 2π × 79.0 m/s² ÷ 0.025 m = 19,855 rad/s². If the total inertia reflected to the motor were 0.0002 kg·m² — an example figure, not a rating; take rotor inertia from the motor datasheet and add the translating mass reflected as m × (L ÷ 2π)² — acceleration alone would need 0.0002 × 19,855 ≈ 4.0 N·m, before friction and any process force. This is also why the unloaded test behaves as it does: with no translating mass the torque demand collapses, so an unloaded motor that still fails the sine indicts the command path, not the current limit.

Confirming check with the ramps at zero: sweep at low amplitude and log actual speed and current. Neither should rest at its limit. When current saturates while speed error keeps growing, the axis is out of torque and will eventually fault on the accumulated error; troubleshooting a servo axis that faults mid move covers that fault pattern.

What the analog input update adds #

The analog path adds a fixed delay, not a ramp. The operating instructions state that the PI/P switchover in the control loop responds with a delay of several milliseconds; the exact update time of the analog input for your interface belongs in that same manual, so read it rather than assuming a number. A workable screening rule of thumb: resolve a sine with at least 12 command updates per cycle, which puts the highest trackable frequency near 1 ÷ (12 × update time). At a 2 ms update that is about 41.7 Hz; at a pessimistic 10 ms it is about 8.3 Hz. Either figure sits far above where tracking collapses here, because a 1 Hz sine has a 1,000 ms period and a few milliseconds is on the order of one percent of a cycle. Treat the update rate as a ceiling to confirm for your upper target, and remember it also adds phase lag that grows with frequency — significant at tens of hertz, negligible where your failure sits.

The decision for this axis #

  1. Set p1120 and p1121 to zero first. That repairs the command path; no tuning fixes a setpoint that arrives pre-smoothed.
  2. Prove scaling, polarity and zero offset with the three static DC checks before any dynamic run.
  3. Apply the speed arithmetic: under the reported 2,000 rpm assumption the stroke tops out near 6.6 Hz, and the upper target needs a ceiling in the 3,016 rpm class. Either raise the configured limit and the motor's permitted speed to that class, or trim the amplitude to 13.3 mm at that frequency.
  4. Size torque from your own inertia, not an assumed figure: the upper target demands 79 m/s² of peak acceleration, which is 19,855 rad/s² at this lead, so T = J_total × 19,855 plus friction — then verify headroom with a current log.
  5. Confirm the analog update time from the manual. It is a ceiling in the tens of hertz, not the cause of the low-frequency collapse.

Run them in that order and the point where the sine stops being a sine moves off the drive's setpoint path, where it sits today, onto quantities you can compute and check: speed ceiling, torque margin, update rate.

Questions asked

What actually changes when the ramp times are set to zero?

Only the ramp-function generator's rate limit disappears: the drive follows the slope of the analog voltage directly instead of a ramped version of it. Speed limits, torque limits and the analog input's response delay all remain. Because the ramp no longer softens setpoint steps, keep the travel limits and stopping provisions that do not rely on it, and retest at low amplitude first.

How fast can the analog input follow a sine?

Screen with a rule of thumb of at least 12 command updates per cycle: the highest trackable frequency is about 1 divided by 12 times the update time. With delays in the millisecond range the ceiling sits in the tens of hertz; even a pessimistic 10 ms update gives about 8.3 Hz. A 1 Hz sine has a 1,000 ms period, so input delay cannot explain a collapse at 1 Hz. Take the exact update time from the drive manual for your interface.

Why does the motor's speed ceiling cap this stroke?

Speed first: the assumed 2,000 rpm ceiling converts to 833 mm/s of linear speed at this lead. A sine of amplitude A needs peak speed 2πfA, so with A = 20 mm the ceiling is reached near 6.6 Hz. The same ceiling allows only about 13 mm of amplitude at the upper frequency. Commanding past the limit normally ends in an over-speed alarm, not more stroke.

The motor still tracks badly with no load attached — what does that prove?

It removes the translating mass, friction and process forces, but the rotor's own inertia and every command-path restriction remain. Poor tracking on an unloaded motor points at the setpoint path first: ramp times, scaling, offset and input delay. It does not prove unlimited acceleration. Once the ramps are zeroed, log actual speed and motor current during a low-amplitude sweep to see whether either one rests at its limit.

Should I keep some ramp time for normal point-to-point moves?

Yes, if the axis also makes ordinary moves. Ramps soften every setpoint step; with both set to zero, a step command demands the full speed change instantly and the drive rides its torque and speed limits until the step is caught. For a machine that does both jobs, generate the sine fully in the controller and keep modest ramps for normal moves, or write the ramp values per task.

Keep reading

  • Selection guide

    Finding a Servo Drive That Accepts a 10V Analog Command

    The drive's manual must document a bipolar ±10 V command input used by an analog velocity or analog torque mode; a step and direction drive cannot take that signal. Which mode you pick is decided by where the position loop closes: feedback into the controller means velocity or torque mode in the drive. Set full scale so the maximum command equals rated speed or torque and verify the scaling by arithmetic before wiring.

    Servo and stepper motion

  • Selection guide

    Choosing a motion controller for an analog servo Mach3 retrofit

    Trace the command input on every servo amplifier before you buy anything. If the brushed DC drives take a bipolar analog command, a motion controller with analog axis outputs keeps the working SEM motors and amplifiers; if they take step and direction, a pulse-output controller runs them but the drives must change. For a fourth stepper axis, buy a controller with both output types and allocate every analog, feedback and discrete point first.

    Servo and stepper motion

  • Troubleshooting

    Fixing Non-Circular Servo Cuts: Servo Lag Not Encoder Wiring

    No. Connect the motor encoder to the servo drive, not to Mach3: the drive closes the position loop, and Mach3's Encoder/MPG inputs can only read counts, not correct them. Distorted circles come from unequal X and Y servo lag during acceleration and reversal, so fix them with per-axis gain and damping in the drive, then by removing reversal lost motion in the mechanics.

    Servo and stepper motion