blockRunPerHouBoundary

Checks if a maximal run per hour value is in boundary

Extends from Modelica.Blocks.Interfaces.BooleanSISO, AixLib.Obsolete.BaseClasses.ObsoleteModel.

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

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