modelPIDHysteresis

Example model for PID controller with hysteresis

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Example that demonstrates the use of the PID controller with hysteresis. The control objective is to keep the temperature of the energy storage cap at 40°C. The controller con is parameterized to switch on if the control error is bigger than eon=1. The output of the controller remains above ymin=0.3 until the control error is smaller than eoff=-1, at which time the controller outputs y=0 until the control error is again bigger than 1. The figure below shows the control error con.feeBac.y and the control signal con.y.

Control error.

Components

TypeNameDefaultDescription
Annex60.Controls.Continuous.PIDHysteresiscon
Modelica.Blocks.Sources.ConstantTSetSet point
Modelica.Thermal.HeatTransfer.Components.HeatCapacitorcap
Modelica.Thermal.HeatTransfer.Sources.PrescribedTemperatureTBC
Modelica.Thermal.HeatTransfer.Components.ThermalConductortheCon
Modelica.Blocks.Math.Gaingain
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensortemSen
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowQ_flow
Modelica.Blocks.Sources.Sinesine

Revisions

  • November 21, 2011, by Michael Wetter:
    Added documentation.