L_USPP_PT2Filter_TT
This FB filters and delays analog signals.
Compared to the PT1 filter, it provides greater smoothing and more precise adjustment of the signal response.
The filter response is defined using two filter times.
A PT2 filter with two filter times is equivalent to a cascade of two PT1 filters, using the same filter times.
For an alternative parameterization using filter time and damping, see L_USPP_PT2Filter_TD. This also allows for oscillating filters that cannot be achieved using parameterization via two filter times or by connecting two PT1 filters in series.
The gain (V) is set permanently to the value '1'.
|
|
|
|
L_USPP_PT2Filter_TT |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
LREAL |
- |
|
lrIn |
lrOut |
|
- |
LREAL |
|
LREAL |
- |
|
lrFilterTime1 |
xError |
|
- |
BOOL |
|
LREAL |
- |
|
lrFilterTime2 |
eErrorID |
|
- |
L_IE1P_Error |
|
|
|
|
|
|
|
|
|
Inputs
|
Name Data type |
Info/Setting options |
|
|---|---|---|
|
lrIn LREAL |
Input signal |
|
|
lrFilterTime1 LREAL |
Filter time constant 1
|
|
|
lrFilterTime2 LREAL |
Filter time constant 2
|
|
Outputs
|
Name Data type |
Value/Meaning |
|
|---|---|---|
|
lrOut LREAL |
Output signal |
|
|
xError BOOL |
TRUE |
An error has occurred. For details see eErrorID. |
|
eErrorID L_IE1P_Error |
If xError = TRUE: Error number for the error that has occurred.
|
|
Function
|
|
Step responses of the PT2 filter for different values of lrFilterTime1 (“T1”) and lrFilterTime2 (“T2”). The corresponding parameter values for L_USPP_PT2Filter_TD, namely lrFilterTime (“T”) and lrDamping (“D”), are shown above.
An oscillating filter response, as shown on the far left, cannot be achieved using two filter times.