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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | time_minOff | 900 | Time after which the device can be turned on again |
| Modelica.Units.SI.Time | time_minOn | 900 | Time after which the device can be turned off again |
| Boolean | use_safetyShutoff | false | Set true, to enable an additional boolean input to perform manual shutoffs for security reasons without messing up the timer |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanInput | u | On/Off signal that should be checked | |
| Modelica.Blocks.Interfaces.BooleanOutput | y | On/Off signal checked against minimal and maximum on/off time | |
| Modelica.Blocks.Interfaces.BooleanInput | uSafShuOff | set true, to force shutoff and hold until false |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Logical.RSFlipFlop | rSFlipFlop | ||
| Modelica.Blocks.Logical.Timer | timer | ||
| Modelica.Blocks.Logical.Change | change_input | ||
| Modelica.Blocks.Logical.LogicalSwitch | logicalSwitch_hold | ||
| Modelica.Blocks.Logical.Pre | pre_onHold | ||
| Modelica.Blocks.Logical.Pre | pre_hold | ||
| Modelica.Blocks.Logical.Pre | pre_reset | ||
| Modelica.Blocks.Logical.Change | change_output | ||
| Modelica.Blocks.Logical.Or | or1 | ||
| Modelica.Blocks.Logical.LogicalSwitch | logicalSwitch_onOffTimer | ||
| Modelica.Blocks.Logical.GreaterThreshold | minOff | ||
| Modelica.Blocks.Logical.GreaterThreshold | minOn | ||
| Modelica.Blocks.Logical.Or | or2 | ||
| Modelica.Blocks.Logical.And | and1 | ||
| Modelica.Blocks.Logical.Not | not1 | ||
| Modelica.Blocks.Logical.And | and2 | ||
| Modelica.Blocks.Sources.BooleanExpression | booleanExpression |
Revisions
-
June, 2023 by Moritz Zuschlag; David Jansen
First Implementation (see issue #1147)