Design World

  • Home
  • Technologies
    • ELECTRONICS • ELECTRICAL
    • Fastening • joining
    • FLUID POWER
    • LINEAR MOTION
    • MOTION CONTROL
    • SENSORS
    • TEST & MEASUREMENT
    • Factory automation
    • Warehouse automation
    • DIGITAL TRANSFORMATION
  • Learn
    • Tech Toolboxes
    • Learning center
    • eBooks • Tech Tips
    • Podcasts
    • Videos
    • Webinars • general engineering
    • Webinars • Automated warehousing
    • Voices
  • LEAP Awards
  • 2025 Leadership
    • 2024 Winners
    • 2023 Winners
    • 2022 Winners
    • 2021 Winners
  • Design Guides
  • Resources
    • 3D Cad Models
      • PARTsolutions
      • TraceParts
    • Digital Issues
      • Design World
      • EE World
    • Educational Assets
    • Engineering diversity
    • Reports
    • Trends
  • Supplier Listings
  • Advertise
  • SUBSCRIBE
    • MAGAZINE
    • NEWSLETTER

A simple PID loop tuning technique: Part 2 of 2

By Lisa Eitel | November 3, 2025

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: Motion Control Tips
Tagged With: performancemotiondevices
 

About The Author

Lisa Eitel

Lisa Eitel has worked in the automation industry since 2001. Her areas of focus include motors, drives, motion control, power transmission, linear motion, and sensing and feedback technologies. She has a B.S. in Mechanical Engineering and is an inductee of Tau Beta Pi engineering honor society; a member of the Society of Women Engineers; and a judge for the FIRST Robotics Buckeye Regionals. Besides her motioncontroltips.com contributions, she also leads the production of the quarterly motion issues of Design World.

LEARNING CENTER

Design World Learning Center
“dw
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for Design Engineering Professionals.
Motor University

Design World Digital Edition

cover

Browse the most current issue of Design World and back issues in an easy to use high quality format. Clip, share and download with the leading design engineering magazine today.

EDABoard the Forum for Electronics

Top global problem solving EE forum covering Microcontrollers, DSP, Networking, Analog and Digital Design, RF, Power Electronics, PCB Routing and much more

EDABoard: Forum for electronics

Sponsored Content

  • Digitalization made easy: Bridging IT/OT with scalable network infrastructure
  • Apple Rubber custom o-rings for harsh underwater conditions
  • ASMPT chooses Renishaw for high-quality motion control
  • Innovating Together: How Italian Machine Builders Drive Industry Forward Through Collaboration
  • Efficiency Is the New Luxury — and Italy Is Delivering
  • Beyond the Build: How Italy’s Machine Makers Are Powering Smart Manufacturing
View More >>
Engineering Exchange

The Engineering Exchange is a global educational networking community for engineers.

Connect, share, and learn today »

Design World
  • About us
  • Contact
  • Manage your Design World Subscription
  • Subscribe
  • Design World Digital Network
  • Control Engineering
  • Consulting-Specifying Engineer
  • Plant Engineering
  • Engineering White Papers
  • Leap Awards

Copyright © 2025 WTWH Media LLC. 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 | Advertising | About Us

Search Design World

  • Home
  • Technologies
    • ELECTRONICS • ELECTRICAL
    • Fastening • joining
    • FLUID POWER
    • LINEAR MOTION
    • MOTION CONTROL
    • SENSORS
    • TEST & MEASUREMENT
    • Factory automation
    • Warehouse automation
    • DIGITAL TRANSFORMATION
  • Learn
    • Tech Toolboxes
    • Learning center
    • eBooks • Tech Tips
    • Podcasts
    • Videos
    • Webinars • general engineering
    • Webinars • Automated warehousing
    • Voices
  • LEAP Awards
  • 2025 Leadership
    • 2024 Winners
    • 2023 Winners
    • 2022 Winners
    • 2021 Winners
  • Design Guides
  • Resources
    • 3D Cad Models
      • PARTsolutions
      • TraceParts
    • Digital Issues
      • Design World
      • EE World
    • Educational Assets
    • Engineering diversity
    • Reports
    • Trends
  • Supplier Listings
  • Advertise
  • SUBSCRIBE
    • MAGAZINE
    • NEWSLETTER
We use cookies to personalize content and ads, to provide social media features, and to analyze our traffic. We share information about your use of our site with our social media, advertising, and analytics partners who may combine it with other information you’ve provided to them or that they’ve collected from your use of their services. You consent to our cookies if you continue to use this website.