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

TypeNameDefaultDescription
IntegermaxRunPer_hNumber of maximal on/off cycles per hour
Modelica.Units.SI.TimedelayTime3600Delay time of output with respect to input signal

Connectors

TypeNameDefaultDescription
BooleanInputu (from BooleanSISO)Connector of Boolean input signal
BooleanOutputy (from BooleanSISO)Connector of Boolean output signal

Components

TypeNameDefaultDescription
Modelica.Blocks.Logical.LessThresholdrunCouLesMaxChecks if the count of total runs is lower than the maximal value
Modelica.Blocks.MathInteger.TriggeredAddtriggeredAdd
Modelica.Blocks.Sources.IntegerConstantintConPluOneValue for counting
Modelica.Blocks.Math.IntegerToRealintToReal
Modelica.Blocks.Math.Addsub
Modelica.Blocks.Nonlinear.FixedDelayfixedDelay