Function Block - Hysteresis with accumulation

Inputs

Input

Data type

Description

XIN

REAL

Input signal.

EPS

REAL

Hysteresis.

FACTOR

REAL

See notes.

Outputs

Output

Data type

Description

XOUT

REAL

Filtered output.

Remarks

This block calculates the error in between XIN and its previous updated value (the one currently visible on output). The output is updated with XIN value:

- if the error is greater than or equal to EPS

- or if the integral of the error multiplied by FACTOR is greater than or equal to EPS

The integral is to be understood since the last update.

ST Language

MyHyst is a declared instance of HYSTER function block.

MyHyst (rIn, rEps, rFactor);
rOUT := MyHyst.XOUT;


Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator