Programmable Logic


Using FPGAs to eliminate motor resonance

16 April 2008 Programmable Logic

Machine builders face many challenges when designing and prototyping machines or refurbishing old ones.

With today’s market pressures, machines need improved performance, increased throughput, and customised behaviour while maintaining low costs. This article covers how to implement motion control, taking into consideration mechanical resonance, and manage costs by using off-the-shelf hardware and high-level software.

Machine control technologies

Because proportional-integral-derivative (PID) controllers are reliable and easy to implement, PID has become the most commonly implemented control algorithm for machine control. To implement PID, designers can choose from several hardware platforms such as programmable logic controllers (PLCs), programmable automation controllers (PACs), digital signal processors (DSPs) and microprocessors.

Before selecting one of these platforms for PID, the designer needs to compare the reliability, hardware availability and cost of the different options. The desired loop rate also needs to be determined, based on the machine in question. For example, high control-loop rates are critical in high-end machines because they directly affect machine performance and disturbance rejection. Figure 1 plots different step responses of the same PID brushless DC motor controller. Higher loop rates help the system move faster and with less overshoot, yielding better performance.

Figure 1. Effects of different step responses of the same PID brushless DC motor controller on loop rates in applied step response test
Figure 1. Effects of different step responses of the same PID brushless DC motor controller on loop rates in applied step response test

PID has been around for decades, but another motion control technology has emerged in recent years: field-programmable gate arrays (FPGAs). This technology offers the same reliability and performance as custom-built circuits with the flexibility of a software development tool. Additional FPGA benefits include true parallel execution and fast execution cycles. This technology allows for user-defined hardware execution behaviour that can be changed or tuned as the design process evolves or as specifications are refined.

Resonance

Whichever machine control technology is selected, designers will likely face resonance challenges. Typically, at a certain point, the machine starts to make a noise, thus signalling resonance, one of the most perplexing problems for machine builders. Figure 2 shows the step response of a simulated system displaying the oscillations caused by resonance.

Figure 2. Oscillations caused by resonance
Figure 2. Oscillations caused by resonance

Resonance occurs when the motor and load are not rigidly coupled. Shafts, belts, gearboxes, and so on introduce compliance – or ‘springiness’ – and viscous damping between motor and load. Figure 3 shows a motor, load, and coupling schematic. Motor and load inertias combined with transmission compliance behave the same as a two mass-spring system where the oscillating frequency is the resonance frequency.

Figure 3. Motor, load and coupling schematic
Figure 3. Motor, load and coupling schematic

Figure 4 clearly illustrates the resonance on the open-loop Bode plot of a simulated system. An ideal, rigidly coupled system exhibits this integrator behaviour: magnitude decreasing at 20 dB/decade and phase fixed at -90°. Instead, the behaviour is the same as the ideal system up to the anti-resonance frequency (Far), but then there is an increase in both phase and magnitude with a maximum gain at resonance frequency (Fr).

Figure 4. Resonance on the open-loop Bode plot of a simulated system
Figure 4. Resonance on the open-loop Bode plot of a simulated system

Depending on the resonance frequency placement, there are two types of resonance:

* Low frequency. The most common resonance type in industrial applications, low-frequency resonance occurs when resonance frequency is above the servo controller bandwidth, but not by much.

* High frequency. High-frequency resonance occurs when the resonance frequency is very high compared with the servo controller bandwidth. This is typical on high-end industrial machines, such as computer numerical control (CNC) or machine tools, where stiffness is increased to increase controller gains.

Resonance can be avoided using different mechanisms. Among the first ones to consider are mechanical variations. By changing motor or load inertias or increasing transmission stiffness, frequency resonance can be moved so that it does not appear in machine operation ranges. Unfortunately, these solutions require bigger and heavier transmissions, which increases commercial off-the-shelf (COTS) machine cost. Or the motor may already be specified based on price or performance, so it is not possible to consider inertia.

Once the mechanical solutions have been exhausted, electrical solutions should be considered. These involve the machine motor velocity controller that affects the control commands sent to the servos. Figure 5 shows a typical motion control system.

Figure 5. Typical motion control system
Figure 5. Typical motion control system

Two technologies can be used to address resonance by type. The first is low-pass filters, which reduce the gain at the resonance frequency. Low-pass filters are easy to implement because the designer does not need to know the exact resonance frequency. Unfortunately, low-pass filters are not very effective with low-frequency resonance. Figure 6 shows the effect on the frequency response of low-pass filters when applied with PID on the open-loop Bode plot.

Figure 6. FPGA PID and FPGA PID with low-pass filter Bode plots
Figure 6. FPGA PID and FPGA PID with low-pass filter Bode plots

The second technology is notch filters. Using notch filters, resonance frequency can be targeted while maintaining low phase distortion to achieve higher gains in the control loop and improve performance. The drawback is that resonance frequencies are not fixed and change over time, so the developer may need to make a service trip to adjust the notch filter. Figure 7 illustrates the results of applying a notch filter.

Figure 7. Bode plot from an FPGA-based PID implementation with low-pass and notch filters
Figure 7. Bode plot from an FPGA-based PID implementation with low-pass and notch filters

Implementation

Resonance-reducing technologies can be implemented through off-the-shelf FPGA platforms and easy-to-use programming environments, which National Instruments offers to help machine builders apply advanced control technology while reducing design and development time. On the software side, the NI LabVIEW PID Control Toolkit seamlessly integrates with the NI LabVIEW FPGA Module to offer both one-channel and multichannel PID VIs.

The new LabVIEW 8.5 introduces low-pass and notch filters. Figure 8 shows a simplified version of PID implementation for a velocity loop with both low-pass and notch filters. Designers can export the output to an analog output, as shown in the figure, or they can use it to drive an internal PWM current control loop. One benefit of this implementation is the online filter configuration. In addition, the system can be configured for updates over the Internet to avoid expensive service trips.

Figure 8. Simplified PID implementation for a velocity loop with both low-pass and notch filters
Figure 8. Simplified PID implementation for a velocity loop with both low-pass and notch filters

For FPGA hardware, consider high-end PXI systems from National Instruments with reconfigurable R Series devices featuring 1M or 3M gates or the industrial-rated reconfigurable I/O (RIO) devices with FPGAs embedded in the backplanes. Both options have the necessary I/O connectivity for motors, encoders, digital and analog signals, and so on. Another benefit of NI hardware is seamless code reuse. Machine controllers can be designed and prototyped using the stronger processing power of a dual-core PXI system, and code can easily be ported to NI CompactRIO hardware for product deployment.

Figure 9. PXI system
Figure 9. PXI system

For more information contact National Instruments, 0800 203 199, [email protected], www.ni.com/southafrica





Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Solving industry 4.0 challenges with software-configurable I/O
Altron Arrow Programmable Logic
Software-configurable I/O modules solve problems caused by connecting legacy equipment to modern Ethernet controllers by allowing for the efficient use of all channels in an I/O system.

Read more...
Rapid prototyping with new Xilinx FPGA evaluation kit
EBV Electrolink Programmable Logic
Equipped with the Xilinx Spartan-7 FPGA, the kit is built for rapid prototyping of industrial networking, embedded vision and automotive designs.

Read more...
Embedded vision development tool for RISC-V FPGA
EBV Electrolink Programmable Logic
Microchip Technology announced the second development tool offering in its Smart Embedded Vision initiative for designers using its PolarFire RISC-V system-on-chip (SoC) FPGA. The industry’s lowest-power ...

Read more...
Latest updates to Libero SoC v2021.3 Design Suite
Altron Arrow Programmable Logic
Microchip Technology recently introduced new MPFS025T/095T/160T/250T PolarFire SoC devices with Tgrade2 operating conditions in standard and -1 speed grades and MPFS095TS/250TS/460TS devices with MIL ...

Read more...
HLS tool suite for PolarFire FPGAs
EBV Electrolink Programmable Logic
The need to combine performance with low power consumption in edge compute applications has driven demand for field programmable gate arrays (FPGAs) to be used as power-efficient accelerators while also ...

Read more...
Mid-range FPGAs for edge compute systems
Avnet Silica Programmable Logic
Edge compute systems need compact programmable devices with low power consumption and a small enough thermal footprint to eliminate fans and other heat mitigation while providing robust compute horsepower. ...

Read more...
Microchip achieves JEDEC qualification for rad-tolerant FPGA
Future Electronics Programmable Logic
Developers of small-satellite constellations and other systems used in ‘New Space’ missions must deliver both high reliability and radiation protection while meeting stringent cost and scheduling requirements. ...

Read more...
Intel Agilex FPGAs deliver flexibility and agility for the data-centric world
Altron Arrow Editor's Choice Programmable Logic
The Agilex FPGA fabric and innovative chiplet architecture delivers an extensible FPGA platform that scales across a wide range of device densities and brings key features and benefits to the table.

Read more...
Security tool for mission-critical FPGAs
Future Electronics Programmable Logic
Mission-critical and other high-assurance systems deployed worldwide are under rapidly evolving threats from cybercriminals who attempt to extract Critical Program Information (CPI) via the FPGAs that ...

Read more...
Lattice releases new version of sensAI
Future Electronics Programmable Logic Design Automation
New enhancements have been made to Lattice Semiconductor’s award-winning sensAI solution stack for accelerating AI/ML (artificial intelligence/machine learning) application development on low-power Lattice ...

Read more...