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 |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | ySet (from PartialSafety) | Input for relative compressor speed from 0 to 1 | |
| Modelica.Blocks.Interfaces.RealOutput | yOut (from PartialSafety) | Output for relative compressor speed from 0 to 1 | |
| BuildingSystems.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 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Logical.Switch | swiErr | Switches to zero when an error occurs | |
| Modelica.Blocks.Sources.Constant | conZer | Constant zero | |
| 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 |
Revisions
-
November 26, 2018 by Fabian Wuellhorst:
First implementation (see issue AixLib #577)