blockHysteresisRelease_boolean

Hysteresis for cooling mode WITH events, with Real in- and output, and inputs for uLow and uHigh

Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).

Information

This block transforms a Real input signal into a Real output signal:

  • When the output was false and the input becomes greater than parameter uHigh, the output switches to true.
  • When the output was true and the input becomes less than parameter uLow, the output switches to false.
  • As long as the input stays between uLow and uHigh, the output remains the same.

This hysteresic block has several additional features:

  • When the parameter revert is true, the switching logic changes. This is typically used for heating-like situations, when the output has to be true when the input is below uLow.
  • uLow and uHigh can be realinputs instead of fixed parameters
  • a release input can be used to activate (release) or deactivate the controller

The initial value of the output is defined via parameter y_start. The default value of this parameter is false.

Parameters

TypeNameDefaultDescription
BooleanrevertfalseSet to true if the hysteresis returns true when u < uLow instead of u > uHigh (for example for heating put revert = true)
Booleanuse_inputtrueIf true, use realinput signals for uLow and uHigh instead of fixed parameters
BooleanenableReleasefalseif true, an additional RealInput will be available for releasing the controller
RealuLow_val0lower boundary value if the input uLow is not used
RealuHigh_val1higher boundary value if the input uHigh is not used
Booleany_startfalseOutput of controller at initial time

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal
Modelica.Blocks.Interfaces.RealInputuLow
Modelica.Blocks.Interfaces.RealInputuHigh
Modelica.Blocks.Interfaces.BooleanInputreleaserel_internalif < 0.5, the controller is OFF

Revisions

  • November 2014, Roel De Coninck
    Switching to real inputs and output
  • May 13, 2014, by Damien Picard:
    Add possibility to use parameters as boundary values instead of inputs.