FilterOrder1

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - First order filter.

Inputs

Input

Data Type

Range

Unit

Default

Description

XIN

REAL

 

 

 

Input analog value.

GAIN

REAL

 

 

 

Transformation gain.

Outputs

Output

Data Type

Range

Unit

Description

XOUT

REAL

 

 

Output signal.

Remarks

The operation performed is:

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

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

Example

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 functionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. block.

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