Biquad Custom Filters

Referenced Keywords
Parameter Description Drive Keyword

PL.KP

Position Loop Proportional Gain

AXIS#.PL.KP

VL.ARTYPE#

Anti-Resonace Filter Type

AXIS#.VL.ARTYPE1 to AXIS#.VL.ARTYPE4

VL.ARZF#

Filter Zero Cutoff Frequency

AXIS#.VL.ARZF1 TO AXIS#.VL.ARZF4

VL.ARZQ#

Filter Zero Q Value

AXIS#.VL.ARZQ1 TO AXIS#.VL.ARZQ4

VL.ARPF#

Filter Pole Frequency

AXIS#.VL.ARPF1 TO AXIS#.VL.ARPF4

VL.ARPQ#

Filter Pole Q Value

AXIS#.VL.ARPQ1 TO AXIS#.VL.ARPQ4

VL.KI

Velocity Loop Integral Gain

AXIS#.VL.KI

VL.KP

Velocity Loop Proportional Gain

AXIS#.VL.KP

A biquad is a flexible filter which can be thought of ascomprising of two simpler filters: a zero (numerator) and a pole (denominator). In fact, the pre-defined Low Pass, Lead Lag, and Resonator (Notch) filters are really just special cases of the biquad filter.

Both the zero (numerator) and the pole (denominator) have a flat frequency response at low frequencies and a rising frequency response at high frequencies. The transition frequency and damping must be specified for both the numerator and denominator.

Analyzing the numerator and denominator, the frequency response calculation is simple: if the numerator and denominator are plotted in dB, the biquad response is numerator – denominator. Understanding how the numerator and denominator work is crucial in understanding how a biquad frequency response is created.

How the Biquad Works

Review: The Controller [C] trace shows the frequency response of VL.KP, VL.KI, PL.KP, AR Filters 1 & 2

Note: Here VL.KP is set to 1.0 so that the gain of the system is at 0dB

The Biquad is an extremely flexible filter and requires four values:

  • Numerator Frequency

  • Numerator Q

  • Denominator Frequency

  • Denominator Q

Note: All previous filter types are a Biquad, the GUI calculates the four parameters in a more user friendly way.

Common Custom Uses:

  • Solve complex controls problems

  • Get multiple filter effects in a single filter

How to Specify the Biquad Filter Using Terminal Commands

To specify a biquad filter, you must specify the frequency and Q for both the zero and the pole on anti-resonance filter 3. To do this, see the following example using the terminal commands that sets:

  • Filter Type = Biquad
  • Zero frequency = 100 Hz
  • Zero Q = 0.7
  • Pole frequency = 1000 Hz
  • Pole Q = 0.8
AXIS#.VL.ARTYPE3 0
AXIS#.VL.ARZF3 100
AXIS#.VL.ARZQ3 0.7
AXIS#.VL.ARPF3 1000
AXIS#.VL.ARPQ3 0.8

Biquad Filter Examples

Biquad Calculations

In the s-domain, the linear biquad response is calculated:

 

To convert from idealized s-domain behavior to a more realistic z-domain behavior, we convert using a pole / zero transform. To calculate the frequency response for an individual frequency:

Adjusting BiQuad in the Velocity Loop

To specify a notch filter, you must specify the Numerator and Denominator Frequencies (Hz), along with their associated Q values. To do this, see the following example by clicking on the Velocity Loop:

  1. Open the Velocity Loop pane.

  2. Open the AR Filter tab and select the AR filter that will function as Notch.

  3. Select 4 - BiQuad as the Filter Type.

  4. Set the desired Numerator and Denominator Frequencies and Q values.

Adjusting BiQuad (Custom) Using the Manual Tuning Simulator

Within the Velocity Loop section of the Simulation pane, the filter type and values can be entered for AR filters 1-4.

Once the filter type is set to Custom (BiQuad), the Bode Plot Drag+Drop tool may be used to visually adjust the values.

After setting the values within the Simulation pane or using the Drag+Drop sliders, the settings must be written to drive to take effect.