modelPartialSafetyWithCounter
Safety control which adds an error counter to the I/O
Extends from PartialSafety (Safety control with I/O).
Information
This block counts the number of errors occurred in a specific safety block.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Fluid.HeatPumps.ModularReversible.BaseClasses.RefrigerantMachineControlBus | sigBus (from PartialSafety) | Bus-connector for the heat pump | |
| Modelica.Blocks.Interfaces.IntegerOutput | err | Integer for displaying number of errors during simulation | |
| Modelica.Blocks.Interfaces.BooleanInput | onOffSet | Device is set to turn on | |
| Modelica.Blocks.Interfaces.BooleanOutput | canOpe | True if device can operate |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.MathInteger.TriggeredAdd | disErr | Used to show if the error was triggered | |
| Modelica.Blocks.Logical.Not | notVal | =true indicates a error | |
| Modelica.Blocks.Sources.IntegerConstant | intConOne | Used for display of current error | |
| Modelica.Blocks.Routing.BooleanPassThrough | booPasThr | Used to keep the connection to the counter | |
| Modelica.Blocks.Logical.And | errAndSetOn | Error occured and the device should be on |
Revisions
-
May 27, 2025 by Fabian Wuellhorst:
Make safety checks parallel (see issue IBPSA #2015) -
May 26, 2025 by Fabian Wuellhorst and Michael Wetter:
Increase error counter only when device should turn on (see issue IBPSA #2011) -
November 26, 2018 by Fabian Wuellhorst:
First implementation (see issue AixLib #577)