L_USPP_PT2Filter_TD

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 a filter time and a damping factor.

For an alternative parameterization using two filter times, see L_USPP_PT2Filter_TT.

The gain (V) is set permanently to the value '1'.

 

 

 

L_USPP_PT2Filter_TD

 

 

 

LREAL

-

lrIn

lrOut

-

LREAL

LREAL

-

lrFilterTime

xError

-

BOOL

LREAL

-

lrDamping

eErrorID

-

L_IE1P_Error

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Info/Setting options

lrIn

LREAL

Input signal

lrFilterTime

LREAL

Filter time constant

  • Unit: s
  • Initial value: 0.0 (With this value, the filter is not active; lrOut = lrIn)
  • Only filter times ≥ 0 are allowed
  • If the value is valid, but lower than or equal to the task cycle time used, the input value is passed through directly.

lrDamping

LREAL

Damping

  • Initial value: 1.0
  • Only damping values ≥ 0 are permitted

0

sustained oscillation

<1

system oscillates

1

boundary case (oscillation-free)

>1

overdamped

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 lrFilterTime (“T”) and lrDamping (“D”). The corresponding parameter values for L_USPP_PT2Filter_TT, namely lrFilterTime1 (“T1”) and lrFilterTime2 (“T2”), are shown below.