CNC Maintenance and Fault Trainings

Servo Motor Hunting Problem: How to Solve with Gain Settings

16 min read Mermak CNC Technical Content
Servo Motor Hunting Problem: How to Solve with Gain Settings
Contents
  1. Servo Motor Hunting Problem: Introduction and Technical Analysis   At the heart of industrial automation systems, **servo motors** are indispensable for applications requiring precise motion control, high dynamism, and repeatability. However, one of the most common and frustrating problems encountered in these high-performance systems is the **”hunting”** or **”oscillation”** issue, defined as the motor continuously oscillating around its target position or speed while attempting to reach it. This condition not only shortens the system’s mechanical lifespan but also degrades production quality, reduces energy efficiency, and increases operational costs. This comprehensive field guide and technical article will deeply analyze the hunting problem in servo motors, uncover its root causes, and detail how effective solutions can be implemented, particularly through **gain settings**, for industrial automation specialists. Servo systems typically operate using a **PID (Proportional-Integral-Derivative) control algorithm**. These algorithms continuously measure the difference (error signal) between the motor’s current state (position, speed, or torque) and the desired target, then send appropriate commands to the motor drive to reduce this error to zero. The hunting problem usually arises when the gain parameters (P, I, D) of this PID controller are not adjusted appropriately for the system’s dynamic characteristics. Excessively high gain values lead to system instability and continuous oscillation around the target, while very low gain values result in slow system response, delayed target achievement, and a loss of resistance to external disturbances. Achieving this balance is critical for servo systems to operate at optimum performance. It is vital to understand that the hunting problem is not solely an electrical or electronic issue but is also closely related to the **dynamics of the mechanical system**. Factors such as noise in the feedback mechanism, mechanical backlash, flexible couplings, high inertia ratios, or resonance frequencies within the system can complicate or even prevent the optimization of gain settings. Therefore, when troubleshooting a hunting problem, it is crucial not to limit efforts to just drive settings but to conduct a holistic analysis of the system and, if necessary, implement mechanical improvements. This article aims to provide practical information by combining theoretical knowledge and field experience to help industrial automation engineers and technicians tackle this complex issue. Servo Motor Hunting Problem: Operating Principle and Technical Data
  2. Servo Motor Hunting Problem: Field Considerations
  3. Servo Motor Hunting Problem: Common Issues and Solutions
  4. Servo Motor Hunting Problem: Conclusion and Expert Advice
  5. FAQ

Servo Motor Hunting Problem: Introduction and Technical Analysis

 

At the heart of industrial automation systems, **servo motors** are indispensable for applications requiring precise motion control, high dynamism, and repeatability. However, one of the most common and frustrating problems encountered in these high-performance systems is the **”hunting”** or **”oscillation”** issue, defined as the motor continuously oscillating around its target position or speed while attempting to reach it. This condition not only shortens the system’s mechanical lifespan but also degrades production quality, reduces energy efficiency, and increases operational costs. This comprehensive field guide and technical article will deeply analyze the hunting problem in servo motors, uncover its root causes, and detail how effective solutions can be implemented, particularly through **gain settings**, for industrial automation specialists.

Servo systems typically operate using a **PID (Proportional-Integral-Derivative) control algorithm**. These algorithms continuously measure the difference (error signal) between the motor’s current state (position, speed, or torque) and the desired target, then send appropriate commands to the motor drive to reduce this error to zero. The hunting problem usually arises when the gain parameters (P, I, D) of this PID controller are not adjusted appropriately for the system’s dynamic characteristics. Excessively high gain values lead to system instability and continuous oscillation around the target, while very low gain values result in slow system response, delayed target achievement, and a loss of resistance to external disturbances. Achieving this balance is critical for servo systems to operate at optimum performance.

It is vital to understand that the hunting problem is not solely an electrical or electronic issue but is also closely related to the **dynamics of the mechanical system**. Factors such as noise in the feedback mechanism, mechanical backlash, flexible couplings, high inertia ratios, or resonance frequencies within the system can complicate or even prevent the optimization of gain settings. Therefore, when troubleshooting a hunting problem, it is crucial not to limit efforts to just drive settings but to conduct a holistic analysis of the system and, if necessary, implement mechanical improvements. This article aims to provide practical information by combining theoretical knowledge and field experience to help industrial automation engineers and technicians tackle this complex issue.

Servo Motor Hunting Problem: Operating Principle and Technical Data

 

Servo motor control systems typically consist of nested control loops: an inner **current (torque) loop**, an overlying **speed loop**, and an outermost **position loop**. Each loop has its own PID controller and directly affects the system’s overall performance. The hunting problem can stem from incorrect gain settings in any or several of these loops. Fundamentally, the difference between the command signal sent by a servo system to reach its target position and the actual position information received from the motor’s feedback device (encoder, resolver, etc.) is processed by the controller. This error signal is transmitted to the motor drive as an appropriate correction signal via the PID algorithm.

**PID Controller Components and Their Effects:**

  • **Proportional Gain (P):** Produces an output directly proportional to the error signal. High P gain ensures faster system response to the target but, when excessively high, leads to **overshoot** (exceeding the target) and continuous oscillations, which is one of the main causes of the **hunting** problem. P gain determines the system’s “aggressiveness.”
  • **Integral Gain (I):** Accounts for the accumulation of error over time. Its primary purpose is to eliminate **steady-state error** in the system. High I gain reduces error faster but can increase instability by adding delay to the system, potentially causing low-frequency oscillations or prolonged overshoot.
  • **Derivative Gain (D):** Produces an output based on the rate of change of the error signal. It adds a “predictive” or “damping” effect to the system. D gain helps reduce overshoot and increase system stability. However, it is highly sensitive to noise in the feedback signal; high D gain amplifies noise and can cause unwanted oscillations.

The technical reasons behind hunting typically include:

  • **High P Gain:** The most common cause. Even when approaching the target, the motor receives a very strong correction signal and overshoots. It then corrects in the opposite direction, and this process repeats, creating oscillation.
  • **Mechanical Resonance:** The motor and load system naturally tend to oscillate at certain frequencies. When the controller’s output frequency approaches one of these resonance frequencies, the system’s amplitude increases, leading to uncontrollable oscillations. Flexible couplings, long shafts, or improper mounting can trigger this condition.
  • **Mechanical Backlash:** Gaps in gearboxes, ball screws, or other mechanical transmission elements prevent the motor from responding instantly to position commands. These gaps cause the controller to make continuous corrections, leading to the system oscillating back and forth within the backlash.
  • **High Inertia Ratio:** When the ratio between the motor’s inertia and the load’s inertia is too large or too small, the system’s dynamic response becomes challenging. Incorrect inertia ratio settings prevent the controller from operating with correct gains.
  • **Feedback Noise:** Electrical noise in signals from encoders or resolvers, especially with high D gain, can cause the controller to make erroneous corrections and lead to oscillations.
  • **Sampling Time and Bandwidth:** If the controller’s sampling time is too slow or the system’s bandwidth is insufficient, it cannot keep up with rapidly changing dynamics, and oscillations can occur.
ParameterValue/Description
**P (Proportional) Gain**Response proportional to error signal. High value: fast response, instability, hunting. Low value: slow response, large error.
**I (Integral) Gain**Eliminates steady-state error. High value: prolonged overshoot, low-frequency oscillation. Low value: persistent error.
**D (Derivative) Gain**Response to error rate of change, damping. High value: sensitivity to noise, oscillation. Low value: insufficient damping, overshoot.
**System Inertia Ratio**Ratio of load inertia to motor inertia. Ideally between 1:1 and 10:1. High ratio complicates control, increases oscillation susceptibility.
**Mechanical Resonance Frequency**System’s natural oscillation frequency. Severe oscillation if it coincides with controller frequency. Suppressed with notch filter.
**Feedback Resolution**Encoder/resolver position sensitivity. Low resolution can cause the controller to make micro-oscillations.
**Sampling Time**Controller’s speed of reading feedback and producing output. Very slow sampling creates instability in fast dynamics.
Servo Motor Hunting Problem: How to Solve with Gain Settings

Servo Motor Hunting Problem: Field Considerations

  • **Comprehensive Mechanical System Inspection:** More than 70% of hunting problems originate from mechanical issues. Before adjusting servo drive settings, check the mechanical system for **backlash**, coupling flexibility, connection integrity, and shaft alignment. Loose connections, worn gears or bearings, or even improper motor mounting can cause hunting. Observe the system running idle or under low load to identify oscillation points, especially to detect resonance frequencies. If necessary, increase the mechanical system’s rigidity or use damping elements to suppress resonance.
  • **Step-by-Step PID Gain Adjustment and Auto-tuning Usage:** Modern servo drives often feature **auto-tuning** functions. These features greatly simplify determining initial gain values by analyzing the system’s inertia and dynamics. However, auto-tuning may not always yield perfect results, especially in complex or high-inertia systems, requiring manual fine-tuning. The general rule for manual adjustment is as follows:
    1. Set all gains (P, I, D) to a value close to zero.
    2. Slowly increase the **P gain**. Continue increasing until a slight oscillation begins in the system, then back off slightly. This will determine the system’s basic response speed.
    3. Next, increase the **D gain**. This should help dampen oscillations and reduce overshoot. While increasing D gain, listen for feedback noise; if noise increases, you are increasing D gain too much.
    4. Finally, increase the **I gain**. This will eliminate any remaining error (steady-state error) when the target is reached. High I gain can cause slow oscillations or prolonged overshoot, so be cautious.

    This process should be repeated by testing the system under different speed and load conditions.

  • **Filter Settings and Feedback Noise Management:** Servo drives typically include **notch filters** and **low-pass filters**. Notch filters are used to suppress oscillations at specific resonance frequencies. After identifying system resonance frequencies, adjusting these filters to the relevant frequencies allows you to increase overall gains and improve performance. Low-pass filters reduce high-frequency noise in the feedback signal, enabling more effective use of D gain. Ensure that the feedback device (encoder/resolver) cabling is correctly done, shielded, and properly grounded. A noisy feedback signal can cause even a system with optimal gain settings to oscillate.
  • **Consideration of Inertia Ratio and Load Changes:** Correctly setting the inertia ratio of the motor and connected load is fundamental for stable controller operation. Most drives allow you to adjust this ratio. If the inertia ratio is entered incorrectly, the controller will model the system incorrectly, making it difficult to find optimal gain settings. Furthermore, it is important to observe how the system behaves under different load conditions (idle, full load, partial load). Some systems may be stable at certain loads but start oscillating when the load changes. In such cases, different gain sets or adaptive control algorithms may be required for various load scenarios.
Servo Motor Hunting Problem: How to Solve with Gain Settings

Servo Motor Hunting Problem: Common Issues and Solutions

The servo motor hunting problem is one of the complex malfunctions encountered in the field and usually arises from a combination of multiple factors. Here are common scenarios and expert solution approaches:

**Scenario 1: The motor exhibits rapid, high-frequency oscillations as it approaches the target (often accompanied by a “buzzing” sound).**
**Possible Cause:** Typically caused by **high P (Proportional) gain** or **high D (Derivative) gain**. Excessively high P gain causes the system to respond too aggressively and continuously overshoot the target. High D gain can amplify even small noises in the feedback signal, leading the controller to overreact. Mechanical resonance can also cause this type of oscillation.
**Solution:** First, **gradually reduce the P gain**. If the oscillation decreases, you are on the right track. If reducing P gain causes the system to slow down, **try carefully reducing the D gain**. Check cabling to reduce noise in the feedback signal and review the **low-pass filter** settings in the drive. If oscillation becomes pronounced at a specific speed or position, this may indicate a resonance problem; try to suppress the relevant resonance frequency using **notch filters** in the drive. Check for loose mechanical connections.

**Scenario 2: The motor exhibits slow, prolonged oscillations after reaching the target or at the stopping point.**
**Possible Cause:** This situation is usually an indication of **high I (Integral) gain**. High I gain accumulates small errors in the system for too long, causing the system to move back and forth even after the target is reached. Low D gain can also exacerbate this by providing insufficient damping.
**Solution:** **Gradually reduce the I gain**. This should make the system more stable at the stationary position. If reducing I gain leads to steady-state error, **try slightly increasing the D gain** to improve damping. Also, check the system’s mechanical friction level; very low friction can also trigger such oscillations.

**Scenario 3: The motor exhibits short-duration oscillations accompanied by a “thump” sound when changing direction or during sudden load changes.**
**Possible Cause:** This is typically caused by **mechanical backlash** or incorrect adjustment of a **high inertia ratio**. Backlash creates a delay between the motor’s command and actual movement, and the controller overreacts while trying to close this gap. A high inertia ratio makes it difficult for the motor to effectively control the load.
**Solution:** First, **check for mechanical backlash and eliminate it if possible**. Inspect gearboxes, couplings, and ball screws. If mechanical correction is not possible, consider using the drive’s **backlash compensation** feature. Also, check the drive’s **inertia ratio** setting and ensure you have entered the correct value. This ratio can usually be obtained from motor manufacturer data or automatic inertia detection functions. Optimizing P and D gains for this situation may also be necessary.

**Scenario 4: Oscillation occurs within a specific speed range or at a particular position, and the system operates normally otherwise.**
**Possible Cause:** This is usually an indication of **system resonance** or **load-dependent dynamics**. Resonance occurs when the mechanical system’s natural frequencies coincide with the controller’s output frequency.
**Solution:** Use the drive’s internal **frequency analyzer** or an external vibration sensor to **identify resonance frequencies**. Then, enable and adjust **notch filters** targeting these frequencies. There may be multiple resonance frequencies, so multiple notch filters may be needed. Additionally, try to reduce resonance by increasing the mechanical system’s rigidity or using vibration-damping materials.

**Scenario 5: Auto-tuning fails or yields poor results.**
**Possible Cause:** Auto-tuning algorithms perform best under ideal mechanical conditions. Mechanical problems (backlash, resonance, high friction), excessively large or small load inertia, insufficient power supply, or noisy feedback signals can cause auto-tuning to fail.
**Solution:** Before performing auto-tuning, **meticulously check the mechanical system and electrical connections**. Eliminate noise sources. Ensure that the load inertia is appropriate for the motor inertia. Some drives have different auto-tuning modes (e.g., for high-inertia systems); make sure you select the correct mode. Treat the gain values obtained after auto-tuning as a starting point, and then apply the step-by-step manual adjustment method described above.

Servo Motor Hunting Problem: Conclusion and Expert Advice

 

The hunting problem encountered in servo motors is a critical issue that directly affects the performance, reliability, and lifespan of industrial automation applications. Effective resolution of this problem is not limited to software gain adjustments but requires a holistic perspective, evaluating the system along with its mechanical and electrical components. For a skilled automation engineer or technician, resolving hunting in a servo system involves more than just changing a set of parameters; it encompasses the ability to deeply understand system dynamics, accurately diagnose potential fault sources, and develop the most appropriate solution strategy.

Our field experience shows that while the root cause of most hunting problems is often excessive responsiveness due to high P gain, factors such as mechanical backlash, resonance frequencies, or noisy feedback signals can prevent you from finding a permanent solution, no matter how much you try to optimize gain settings. Therefore, when faced with a hunting problem, the first step should always be a comprehensive mechanical inspection. Gain adjustments made without addressing loose connections, worn transmission elements, or misalignments will only offer temporary solutions or complicate the problem further. The soundness and rigidity of the mechanical system form the foundation of stable servo control.

Regarding gain settings, while auto-tuning functions are valuable as a starting point, they may not replace manual fine-tuning in critical applications. Step-by-step, systematic adjustment of PID gains, testing the system under different load and speed conditions, and effective use of drive filter settings (notch filters, low-pass filters) are key to achieving optimal performance. It is important to remember that every system is unique, and there is no “one-size-fits-all” solution. Gain values that are perfect for one system can lead to complete instability in another. Therefore, it is essential to review and optimize gain settings after every new installation or significant mechanical change.

Finally, our advice to field specialists is to interpret system behavior not only with numerical data but also with observation and experience. Details such as motor sounds, motion fluidity, and micro-oscillations at the stopping point can provide important clues about the origin of the problem. Documenting all adjustments and observations in detail will greatly facilitate future troubleshooting processes. Continuous learning and experience with different systems will solidify your expertise in resolving servo motor hunting problems in industrial automation. Remember, a stable servo system is the foundation of efficient and high-quality production.

FAQ

What is servo motor hunting?

Servo motor hunting refers to the motor continuously oscillating around its target position or speed instead of settling precisely. This instability can lead to reduced accuracy, increased wear, and decreased efficiency in industrial applications.

What causes servo motor hunting?

Common causes include excessively high Proportional (P) gain, which makes the system overreact; mechanical issues like backlash or resonance; high inertia ratios; and electrical noise in the feedback signal.

How can I troubleshoot servo motor hunting?

Start by conducting a thorough mechanical inspection to eliminate backlash, loose connections, or misalignments. Then, systematically adjust PID gain parameters, starting with P, then D, and finally I, while observing the system's response. Utilize auto-tuning as a starting point and fine-tune manually.

How do filters help in resolving hunting problems?

Notch filters are crucial for suppressing oscillations at specific mechanical resonance frequencies. Low-pass filters help reduce high-frequency noise in the feedback signal, which is especially important for stable D gain operation.

Is auto-tuning sufficient to eliminate hunting?

While auto-tuning provides a good baseline by analyzing system dynamics, it may not always yield optimal results for complex or high-inertia systems. Manual fine-tuning is often necessary to achieve the best performance and stability under various operating conditions.

⚙ Tools