blockRunPerHouBoundary
Checks if a maximal run per hour value is in boundary
Extends from Modelica.Blocks.Interfaces.BooleanSISO (Single Input Single Output control block with signals of type Boolean), AixLib.Obsolete.BaseClasses.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Information
Everytime the boolean input signal has a rising edge, a counter is triggered and adds 1 to the total sum. This represents an on-turning of a certain device. With a delay this number is being substracted again, as this block counts the number of rising edges in a given amount of time(e.g. 1 hour). If this value is higher than a given maximal value, the output turns to false.
-
November 26, 2018 by Fabian Wüllhorst:
First implementation (see issue #577)
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | maxRunPer_h | Number of maximal on/off cycles per hour | |
| Modelica.Units.SI.Time | delayTime | 3600 | Delay time of output with respect to input signal |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| BooleanInput | u (from BooleanSISO) | Connector of Boolean input signal | |
| BooleanOutput | y (from BooleanSISO) | Connector of Boolean output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Logical.LessThreshold | runCouLesMax | Checks if the count of total runs is lower than the maximal value | |
| Modelica.Blocks.MathInteger.TriggeredAdd | triggeredAdd | ||
| Modelica.Blocks.Sources.IntegerConstant | intConPluOne | Value for counting | |
| Modelica.Blocks.Math.IntegerToReal | intToReal | ||
| Modelica.Blocks.Math.Add | sub | ||
| Modelica.Blocks.Nonlinear.FixedDelay | fixedDelay |