====== Comparison with Hysteresis ====== {{:cs:mervis-ide:35-help:hysteresis.png}} ==== Full Name ==== Lib.Mervis.v1_0.Hysteresis ==== Required Project References ==== * Lib.Mervis ===== Description ===== A helper block used for comparing two values with hysteresis between transitions. ===== Usage in ST ===== program test var hyst: lib.mervis.v1_0.Hysteresis; end_var hyst(Input := ..., SetPoint := ..., Hysteresis := 5); end_program ===== Inputs ===== |Name |Data Type|Retain|Mandatory Connection|Meaning| |Input |real |No |Yes |Input value| |SetPoint |real |No |Yes |Desired value| |Hysteresis |real |No |No |Hysteresis| ===== Outputs ===== |Name |Data Type|Meaning| |Output |bool |Output| ===== Detailed Function Description ===== The block compares two variables - //Input// and //SetPoint//. The output is set as follows: * __True__ - if //Input// rises above //SetPoint + Hysteresis// * __False__ - if //Input// falls below //SetPoint//