hyster

PLCopen motion icon

 Function Block - Hysteresis detection.

  • The hysteresis is detected on the difference of XIN1 and XIN2 signals.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

XIN1

REAL

 

 

 

First input.

XIN2

REAL

 

 

 

Second input.

EPS

REAL

 

 

 

Hysteresis.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

Q

BOOL

 

 

  • Detected hysteresis: TRUE if XIN1:
    • Becomes greater than XIN2+EPS and
    • Is not yet below XIN2-EPS.

FBD Language Example

FFLD Language Example

  • In the FFLD Language, the input rung (EN) is used for enabling the block.
    • The output rung is the Q output.
    • The block is not called if EN is FALSE.

IL Language Example

Not available.

ST Language Example

(* MyHyst is a declared instance of HYSTER function block. *)
MyHyst (XIN1, XIN2, EPS);
Q := MyHyst.Q;

See Also