Function Block - Hysteresis detection.

Inputs

Input

Data type

Description

XIN1

REAL

First input signal.

XIN2

REAL

Second input signal.

EPS

REAL

Hysteresis.

Outputs

Output

Data type

Description

Q

BOOL

Detected hysteresis: TRUE if XIN1 becomes greater than XIN2+EPS and is not yet below XIN2-EPS.

Remarks

The hysteresis is detected on the difference of XIN1 and XIN2 signals. In LD language, the input rung (EN) is used for enabling the block. The output rung is the Q output.

ST Language

MyHyst is a declared instance of HYSTER function block.

MyHyst (XIN1, XIN2, EPS);
Q := MyHyst.Q;

FBD Language

Fixed_Image

LD Language

The block is not called if EN is FALSE.

Fixed_Image

Fixed_Image See also

AVERAGE  INTEGRAL  DERIVATE  LIM_ALRM  STACKINT


Created with the Personal Edition of HelpNDoc: Maximize Your Reach: Convert Your Word Document to an ePub or Kindle eBook