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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | revert | false | Set to true if the hysteresis returns true when u < uLow instead of u > uHigh (for example for heating put revert = true) |
| Boolean | use_input | true | If true, use realinput signals for uLow and uHigh instead of fixed parameters |
| Boolean | enableRelease | false | if true, an additional RealInput will be available for releasing the controller |
| Real | uLow_val | 0 | lower boundary value if the input uLow is not used |
| Real | uHigh_val | 1 | higher boundary value if the input uHigh is not used |
| Boolean | y_start | false | Output of controller at initial time |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SISO) | Connector of Real input signal | |
| RealOutput | y (from SISO) | Connector of Real output signal | |
| Modelica.Blocks.Interfaces.RealInput | uLow | ||
| Modelica.Blocks.Interfaces.RealInput | uHigh | ||
| Modelica.Blocks.Interfaces.BooleanInput | release | rel_internal | if < 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.