modelModeSelector

Finite State Machine for the operational modes

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureDifferencedelTRooOnOff1Deadband in room temperature between occupied on and occupied off
Modelica.Units.SI.TemperatureTRooSetHeaOcc293.15Set point for room air temperature during heating mode
Modelica.Units.SI.TemperatureTRooSetCooOcc299.15Set point for room air temperature during cooling mode

Connectors

TypeNameDefaultDescription
ControlBuscb
Modelica.Blocks.Interfaces.BooleanOutputyFanTrue if the fans are to be switched on
Modelica.Blocks.Interfaces.BooleanOutputyEcoTrue if the economizer is enabled

Components

TypeNameDefaultDescription
Modelica.StateGraph.InitialStepWithSignalinitialStepWithSignal
Modelica.StateGraph.TransitionstartStarts the system
StateunOccOffUnoccupied off mode, no coil protection
StateunOccNigSetBacUnoccupied night set back
Modelica.StateGraph.Transitiont2
Modelica.StateGraph.Transitiont1
Modelica.StateGraph.StateGraphRootstateGraphRoot
Modelica.Blocks.Routing.RealPassThroughTRooSetHeaCurrent heating setpoint temperature
StatemorWarUpMorning warm up
Modelica.StateGraph.TransitionWithSignalt6
Modelica.Blocks.Logical.LessEqualThresholdoccThrShoSignal to allow transition into morning warmup
Modelica.StateGraph.TransitionWithSignalt5
StateoccOccupied mode
Modelica.Blocks.Routing.RealPassThroughTRooMin
Modelica.Blocks.Math.FeedbackTRooMinErrHeaRoom control error for heating
Modelica.StateGraph.Transitiont3
Modelica.Blocks.Routing.BooleanPassThroughoccupiedoutputs true if building is occupied
Modelica.StateGraph.TransitionWithSignalt4
StatemorPreCooPre-cooling mode
Modelica.StateGraph.Transitiont7
Modelica.Blocks.Routing.RealPassThroughTRooAveAverage room temperature
Modelica.Blocks.Sources.BooleanExpressionbooleanExpressionTest that outputs true if room temperature is below occupied heating and system should be switched on soon
PreCoolingStarterpreCooStaModel to start pre-cooling
Modelica.StateGraph.TransitionWithSignalt9
Modelica.Blocks.Logical.Notnot1
Modelica.Blocks.Logical.Andand2
Modelica.Blocks.Logical.Notnot2
Modelica.StateGraph.TransitionWithSignalt8changes to occupied in case precooling is deactivated
Modelica.Blocks.MathInteger.Sumsum
Modelica.Blocks.MathBoolean.Oror1
Modelica.Blocks.MathBoolean.Oror2Occupied or pre-cool mode
Buildings.Controls.OBC.CDL.Logical.Andand3(Occupied or pre-cool mode) and fan on
Modelica.Blocks.Math.BooleanToIntegermodIniInitial operation mode