• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Advertise
  • Subscribe

Motion Control Tips

Automation • Motion Control • Power Transmission

  • News
    • Industry News
    • Editor Blogs
  • Controls
    • HMIs
    • PC-Based Controllers
    • PLCs + PACs
    • Stand-Alone Controllers
    • Software
  • Drives
    • Servo Drives
    • Stepper Drives
  • Encoders
    • Absolute Encoders
    • Incremental Encoders
    • Rotary Encoders
  • Mechanical
    • Bearings
    • Brakes + Clutches
    • Belt + chain
    • Couplings
    • Gears + Gearing
    • Lubrication
    • Shock + Vibration Mitigation
    • Springs + Rings + Seals
  • Linear
    • Actuators
    • Linear Motors
    • Linear Encoders
  • Motors
    • AC Motors
    • DC Motors
    • Brushless Motors
    • Gearmotors
    • Piezo Motors
    • Servo Motors
    • Stepper Motors
  • Systems
    • Conveyors + linear transport systems
    • Gantries + Stages
    • Rotary Tables
    • Grippers + End Effectors
    • Robotics
  • Networks
    • Connections + Sliprings
    • Fieldbuses
    • I/O
    • Sensors + Vision
  • Resources
    • FAQs
      • Motion Casebook
      • Motion Selection Guides
    • Suppliers
    • Video
You are here: Home / Controls / A simple PID loop tuning technique: Part 2 of 2

A simple PID loop tuning technique: Part 2 of 2

November 3, 2025 By Lisa Eitel Leave a Comment

Proportional, integral, derivative (PID) position servo-loop tuning can be daunting. However, one simple technique works well for most systems.

Chuck Lewin • Founder and CEO | Performance Motion Devices Inc.


The first installment of this two-part series detailed a simple technique called step-response tuning that helps identify good PID-gain settings in motor-positioning applications. This manual tuning method uses repeated instantaneous ‘step’ moves to determine whether the system is underdamped, critically damped, or overdamped. Repeated iterations can identify optimal PID loop settings.

The step-response tuning session should ideally yield PID gain settings that provide smooth, quiet, and accurate position control. Now, let’s consider some methods to further improve system performance.

Verifying PID settings with real trajectory profiles

Instantaneous step profiles simplify analyzing the servo loop behavior, but they almost never represent the profiles that the controller machine will use in the actual production application. On the contrary, as much as possible, the actual profiles should try to avoid instantaneous changes of position (or velocity, or even acceleration) to minimize resonant vibration being injected into the machine mechanics.

Whether trapezoidal, S-curve, or some other trajectory profile shape, confirm the stability of the final selection of PID loop settings with the actual trajectories the machine will see.

ION/CME N-series drives are ultra-compact PCB-mountable intelligent drives meant to simplify machine building. They execute advanced servo and stepper motor control, S-curve point-to-point profiling, field-oriented control, downloadable user code, and general-purpose digital and analog I/O.

Acceleration setting — If the current command to the amplifier reaches 100% of the programmed current limit the motor actual position will rapidly fall behind the commanded position leading to an excessive position error value. Related to this, high accelerations may exceed the current output capacity of the power supply being used, potentially for a drop in the supply voltage. The remedy for both conditions is to lower the trajectory acceleration.

Deceleration setting — Similar phenomena can occur during deceleration. The amplifier command can saturate with a negative value and depending on the design of the power supply the supply voltage can increase to a dangerous level. The later occurs when the motor acts as a generator. Many controllers provide a feature called shunt regulation to address this. Shunt regulation uses a special circuit that ‘shunts’ current through a resistor to absorb the excessive supply voltage.

ION 500 and 3000 drives are intelligent drives in a cable-connected package. Advanced servomotor control is complemented with S-curve point-to-point moves, i2T power management, downloadable user code, and a range of safety functions including over current, over voltage, and over temperature detect. IONs are easy to use components that quickly get applications operational.

Maximum velocity setting — With motor-rpm increases come ever-higher induced voltage opposing the drive voltage. Called back electromotive force or EMF, this limits the top speed at which a given motor driven at a given voltage can rotate. Trajectories approaching or exceeding this top speed won’t keep up with the commanded position, so excessive position error will occur. The remedy is to lower the trajectory velocity or change the system with increased supply voltage or choosing motors with lower back EMF per rpm.

Acceleration and velocity feedforward

Feedforward techniques improve real-world servo-controller performance — especially if positioning accuracy during the move is important (as in machine tools, 3D printing, and tracking applications). Feedforward has no effect on system stability and so is a kind of free pass for boosting axis performance.

This is a position PID loop with feedforward.

Frequency-based motion analysis tools and filters

The step-by-step tuning process represents a common and straightforward approach to tuning PID loops. But there are more quantitative approaches — particularly for verifying the behavior of a specific position loop controller and load. Many controls vendors provide frequency-based tools such as Bode plots to support these approaches.

Performance Motion Devices’ ICs are suitable for use in medical, laboratory, semiconductor, robotic, and industrial motion control applications. MC58113-series ICs are a PMD Magellan offering for advanced position control of stepper, brushless dc, and dc brush motors. Capabilities include field-oriented control, trapezoidal and S-curve profiling, and direct encoder and pulse and direction input.

Bode plots can help characterize mechanical systems and determine control-loop characteristics such as bandwidth and phase margin. One Bode-plot output may be the identification of natural resonances in the mechanical system. While a properly tuned PID can help reduce the impact of this, active filtering within the servo loop, often in the form of biquad filters are the compensating mechanism of choice. Many controllers provide general purpose biquad filters inside the position loop.

This is a control flow diagram of biquad filter.

A treatise on characterizing system mechanics and compensating for resonances is beyond the scope of this article but good references abound — and include George Ellis’ Control System Design Guide.

Position-loop gain scheduling

Again, for many machines it’s unlikely one set of PID gain parameters will be optimal for all design functions. Some modes may need very stable and smooth operation; others may need endpoint accuracy; and yet others may need high-speed strokes for quick point-to-point transfer.

To handle different operating priorities even within the same mechanism a technique called gain scheduling may be used. While ‘gain scheduling’ has specific connotations in the field of nonlinear system control, here it means activating different sets of gain parameters while the machine is operating in different modes or carrying different loads.

Gain scheduling should be used in moderation but usually it’s useful to have more aggressive servo gains for moving and then less aggressive ‘at settle’ gains for holding the axis in place. Many controllers have a software-accessible ‘in motion’ flag to automatically triggered gain-value changes when the axis is moving ir arriving at specific positions, velocities, accelerations, or time.

Beyond PID gain settings, some modern motion controllers provide adjustable derivative sampling time, feedforward compensation, and frequency-based analysis and filtering for robust high-performance machine control.

Performance Motion Devices | www.pmdcorp.com

You Might Also Like

Filed Under: Controls, Featured Tagged With: performancemotiondevices

Reader Interactions

Leave a Reply

You must be logged in to post a comment.

Primary Sidebar

LEARNING CENTER

Design World Learning Center

Motion Control Handbook

“mct
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for Design Engineering Professionals.

RSS Featured White Papers

  • Robotic Automation is Indispensable for the Logistics Industry’s Continued Growth and Success
  • Reliable Linear Motion For Packaging Machines
  • Polymers Outperform Metals In Precision Gearing

Footer

Motion Control Tips

DESIGN WORLD NETWORK

Design World Online
The Robot Report
Coupling Tips
Linear Motion Tips
Bearing Tips
Fastener Engineering.
Wire and Cable Tips

MOTION CONTROL TIPS

Subscribe to our newsletter
Advertise with us
Contact us
About us

Copyright © 2025 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy | RSS