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

TypeNameDefaultDescription
Buildings.Fluid.HeatPumps.ModularReversible.BaseClasses.RefrigerantMachineControlBussigBus (from PartialSafety)Bus-connector for the heat pump
Modelica.Blocks.Interfaces.IntegerOutputerrInteger for displaying number of errors during simulation
Modelica.Blocks.Interfaces.BooleanInputonOffSetDevice is set to turn on
Modelica.Blocks.Interfaces.BooleanOutputcanOpeTrue if device can operate

Components

TypeNameDefaultDescription
Modelica.Blocks.MathInteger.TriggeredAdddisErrUsed to show if the error was triggered
Modelica.Blocks.Logical.NotnotVal=true indicates a error
Modelica.Blocks.Sources.IntegerConstantintConOneUsed for display of current error
Modelica.Blocks.Routing.BooleanPassThroughbooPasThrUsed to keep the connection to the counter
Modelica.Blocks.Logical.AnderrAndSetOnError 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)