Frequency Response Module

You can use the Frequency Response module to analyze the characteristics of the servo loop to examine the axis stability and dynamic performance. In the Configure workspace, you can find this module in the Basic Editing mode of the Axes category → Servo topic. The Frequency Response module is the most advanced servo tuning tool in Automation1. It requires more input from you than the other tools. If you want to achieve the highest possible dynamic performance across a wide range of different move profiles, Aerotech recommends that you use this tool.

IMPORTANT: Before you use the Frequency Response module, the axis that you select must be stable.

Frequency Response Measurement

A frequency response lets you make an analysis of the dynamic behavior of the servo loop in the frequency domain. You can also make an estimate of how changes to the servo parameters will have an effect on that behavior.

Servo Gains and Servo Filters

Feedforward Parameters

Tip: You can also set important Feedforward Gains and Feedforward Filters related to loop shaping by using the Loop Shaping toolbar. Refer to the Shape Existing Responses section of this guide for more information.

Feedforward gains do not change the axis stability. Before you adjust the feedforward parameters, set the servo parameters to get your target stability margins.

Shape Existing Responses

You can use the Loop Shaping toolbar at the bottom of the module to adjust gains and filters when working with a collected response or opened frequency response plot file. When you make adjustments with the Loop Shaping toolbar, you can see the results immediately on a shaped version of the affected response. This lets you see minor changes to a select set of the most relevant parameters without having to apply the changes to the controller or collect more responses.

You can show and adjust servo loop and feedforward parameter values in the first tab of the toolbar. To do this, click the Settings button on the top-right corner of the application. On the Settings menu, select Frequency Response. In the General section, enable the Show All Servo Gains in Loop Shaping setting.

Editing Servo Loop Gains

The first tab in the Loop Shaping toolbar, by default, lets you adjust the values of:

When the Show All Servo Gains in Loop Shaping setting is enabled, you can also adjust: 

Changes to these values are in the Shaped Open Loop Response. They are plotted only when the parameter changes cause a response that is different from the open-loop response that was initially collected.

You can use the up and down arrow buttons to shift the magnitude of the response or the phase at which the magnitude crossover occurs.

Editing Servo Loop Filters

The second tab in the Loop Shaping toolbar lets you set new servo loop filters or edit existing servo loop filters. Only a single filter can be seen and edited at a time, but all listed filters are applied to the resulting open-loop-shaped response.

Servo loop filters that are important to your project can also be calculated by using the Auto-Fit Servo Loop Filters button . This auto-fit tries to remove any resonance peaks that are part of the existing response.

Editing Feedforward Gains and Filters

The last tab in the Loop Shaping toolbar lets you adjust feedforward gains and filters to shape the feedforward response.

By default, you can adjust the values of the parameters that follow on this tab:

When the Show All Servo Gains in Loop Shaping setting is enabled, you can also adjust: 

Changes to these values are in the Shaped Feedforward Response. They are plotted only when the parameter changes cause a response that is different from the feedforward response that was initially collected. To show the feedforward response, click the Plot Options button . On the Response Types menu, select Feedforward.

Applying Shaped Gains and Filters

If you are doing loop shaping on a response that was collected on the current controller, the new set of gains and filters can be applied to the controller from the Loop Shaping toolbar. Use the Apply All button to stage the new parameter values from all available shaping tabs. You can view, save, or discard these changes the same as you do for any changes made directly to parameter editors.

Advanced Tips

Notch Filtering of Mechanical Resonances

If an axis has a mechanical resonance that causes an unwanted peak in the magnitude of the sensitivity response, you can decrease the magnitude of the open-loop response near the resonant frequency. To do this, add a notch filter. A notch filter will decrease the magnitude of the open-loop response only near its center frequency.

Low-Pass Cutoff Frequency Placement

If an axis has a fine-resolution encoder and your application requires a very high dynamic performance, you can increase the cutoff frequency of the low-pass filter. A higher cutoff frequency does not attenuate high-frequency noise with a strong effect. But it might be easier for you to get your target phase margin at a high-magnitude crossover frequency.

If you measure a frequency response and it is not smooth at high frequencies, you can decrease the cutoff frequency of the low-pass filter. A lower cutoff frequency will attenuate high-frequency noise with a strong effect and can decrease the magnitude of the sensitivity response at those higher frequencies. But if you lower the cutoff frequency, your phase margin will also decrease. The plot that follows shows you the changes to the shaped open-loop response when the low-pass filter cutoff frequency is lowered from 1,000 Hz (unshaped) to 350 Hz (shaped).

Coarse-resolution position encoders can inject abrupt step changes into the servo loop, which can excite mechanical resonances or cause an unwanted whining sound. If an axis has a coarse-resolution position encoder, you can decrease the cutoff frequency of the low-pass filter. This smooths out the effect that these step changes will have on the feedback control effort.

Overlap Multiple Plots

For some axes, the plant response will change based on different operating conditions. These conditions include the position in travel and the locations of other axes. On the top-right corner of the application, click the Overlap button to overlap two or more frequency response plots. Then you can examine the stability and dynamic performance across different operating conditions at the same time.

If you overlap frequency response plots, you can use loop shaping only when all of the responses have the same servo gains and filters. Loop shaping changes apply to all of the overlapped responses.

Servo Filter Indicators

There is a small icon at each filter frequency above the Magnitude plot that shows the type of filter and the filter number. Low Pass filters are represented by a green rectangle . Notch filters are represented by a blue triangle . Lead-Lag and Resonant filters are represented by a black ellipse .

Select the Correct Sensitivity Peak

For most applications, a maximum sensitivity peak of 6 dB correctly balances dynamic performance and robustness to variation. If you must have a very high dynamic performance, you can tune to a sensitivity peak of 7 or 8 dB.

WARNING: If you use a sensitivity peak of 7 or 8 dB, small changes to the plant can cause the axis to become unstable. These types of changes include a variable payload and increased friction.

If it is not necessary for you to have a very high dynamic performance and you want the axis to be highly robust to changing conditions, you can tune to a sensitivity peak of 4 or 5 dB.

Feedforward Filtering

Although the feedforward gains do not change the stability of an axis, the feedforward control effort that is generated from high-dynamic motion or non-smooth profiles can excite mechanical resonances and cause unwanted oscillations in the position feedback. If the axis oscillates during your move profile at a known resonant frequency and the magnitude of the sensitivity response does not have a peak above 6 dB at that frequency, it might be possible to decrease the oscillation amplitude. You can do this by adding a low-pass filter or a notch filter to the feedforward path.

Tune Multi-Axis Systems

When you are tuning multi-axis systems, make sure that you tune the axis that is at the top of the stack first. Then continue to tune the axes downstream.

Retune the Servo Loop for Payload Changes

When you change the payload on an axis, it might be necessary for you to retune the servo loop. This is typical for tuning profiles that have aggressive stability margins.

Examine the Data

In the Frequency Response module, the first tab above the plot area shows the unsaved frequency response plots. Each time that you measure a new frequency response, the application adds a new plot to the Unsaved Plots drop-down menu.

You can access frequency response plots in all of the ways that follow:

  • To open a saved frequency response plot file from the Windows file system, click the Open File button .
  • To save a frequency response plot to the Windows file system, click the Save File button . When you save a frequency response, the application moves the plot from the Unsaved Plots drop-down menu to a file tab.
  • To save a frequency response plot as a CSV (comma-separated values) file, do the steps that follow:

When you save an open plot that shows measured and shaped open-loop results, the application records only the measured result in the Frequency Response file.

IMPORTANT: You cannot save the shaped response of a Frequency Response plot file that was previously saved.