modelDeviceStatusDelay

Extends from Modelica.Blocks.Icons.DiscreteBlock (Graphical layout of discrete block component icon).

Information

The model makes sure that an on signal is only passed through if the device was on for a given time thresholdTimer.


When the input signal is set to true the given thresholdTimer starts counting. After the moment when thresholdTimer is exceeded the output signal can switch to false but will stay true until the input value is set to false again. Then again the timer start to count and the output won't change to true until the timer is finished again.

With the additional input u_saftey the output is immediatly set to off, even if the timer wouldn't allow it.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Timetime_minOff900Time after which the device can be turned on again
Modelica.Units.SI.Timetime_minOn900Time after which the device can be turned off again
Booleanuse_safetyShutofffalseSet true, to enable an additional boolean input to perform manual shutoffs for security reasons without messing up the timer

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputuOn/Off signal that should be checked
Modelica.Blocks.Interfaces.BooleanOutputyOn/Off signal checked against minimal and maximum on/off time
Modelica.Blocks.Interfaces.BooleanInputuSafShuOffset true, to force shutoff and hold until false

Components

TypeNameDefaultDescription
Modelica.Blocks.Logical.RSFlipFloprSFlipFlop
Modelica.Blocks.Logical.Timertimer
Modelica.Blocks.Logical.Changechange_input
Modelica.Blocks.Logical.LogicalSwitchlogicalSwitch_hold
Modelica.Blocks.Logical.Prepre_onHold
Modelica.Blocks.Logical.Prepre_hold
Modelica.Blocks.Logical.Prepre_reset
Modelica.Blocks.Logical.Changechange_output
Modelica.Blocks.Logical.Oror1
Modelica.Blocks.Logical.LogicalSwitchlogicalSwitch_onOffTimer
Modelica.Blocks.Logical.GreaterThresholdminOff
Modelica.Blocks.Logical.GreaterThresholdminOn
Modelica.Blocks.Logical.Oror2
Modelica.Blocks.Logical.Andand1
Modelica.Blocks.Logical.Notnot1
Modelica.Blocks.Logical.Andand2
Modelica.Blocks.Sources.BooleanExpressionbooleanExpression

Revisions

  • June, 2023 by Moritz Zuschlag; David Jansen
    First Implementation (see issue #1147)