HysteresisReal (FB)

FUNCTION_BLOCK HysteresisReal

Realizes a hysteresis function similiar to Util.HYSTERESIS, but for REAL data.

InOut:

Scope

Name

Type

Initial

Comment

Input

rIn

REAL

Input value

rHigh

REAL

Upper limit

rLow

REAL

Lower limit

xReset

BOOL

FALSE

Reset

Output

xOut

BOOL

TRUE: Input rIn is less than input rLow
FALSE: Input rIn is greater than input rHigh