hyster

PLCopen motion icon

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

Inputs

Input

Data Type

Range

Unit

Default

Description

XIN1

REAL

 

 

 

First input.

XIN2

REAL

 

 

 

Second input.

EPS

REAL

 

 

 

Hysteresis.

Outputs

Output

Data Type

Range

Unit

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.

FBD Language Example

FFLD Language Example

IL Language Example

(* MyHyst is a declared instance of HYSTER 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 *)
Op1: CAL MyHyst (XIN1, XIN2, EPS)
FFLD  MyHyst.Q
STClosed Structured text - A high-level language that is block structured and syntactically resembles Pascal.  Q

ST Language Example

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

See Also