FilterOrder1

PLCopen motion icon

 Function Block - First order filter.

The operation performed is:

Output = (Input x Gain) + (OutputPrev * (1-Gain))

The allowed range for the gain is [0.05 .. 1.0]

Example

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

XIN

REAL

 

 

 

Input analog value.

GAIN

REAL

 

 

 

Transformation gain.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

XOUT

REAL

 

 

Output signal.

FBD Language Example

Not available.

FFLD Language Example

Not available.

IL Language Example

Not available.

ST Language Example

Filt1 is a declared instance of FilterOrder1 function block.

Filt1 (rIn, rGain);
Signal := Fillt1.Xout;