Buildings.Obsolete.Controls.OBC.CDL.Logical
Package with obsolete models of logical blocks
Information
Package with obsolete blocks for elementary mathematical functions for boolean variables.
Package Content
Name | Description |
---|---|
And3 | Logical 'and3': y = u1 and u2 and u3 |
OnOffController | On-off controller |
Or3 | Logical 'or': y = u1 or u2 or u3 |
Timer | Timer measuring the time from the time instant where the Boolean input became true |
TriggeredTrapezoid | Triggered trapezoid generator |
ZeroCrossing | Trigger zero crossing of input u |
Validation | Collection of models that validate the logical blocks of the CDL |
Buildings.Obsolete.Controls.OBC.CDL.Logical.And3
Logical 'and3': y = u1 and u2 and u3
Information
Block that outputs true
if all inputs are true
.
Otherwise the output is false
.
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Connectors
Type | Name | Description |
---|---|---|
input BooleanInput | u1 | Connector of first Boolean input signal |
input BooleanInput | u2 | Connector of second Boolean input signal |
input BooleanInput | u3 | Connector of third Boolean input signal |
output BooleanOutput | y | Connector of Boolean output signal |
Modelica definition
Buildings.Obsolete.Controls.OBC.CDL.Logical.OnOffController
On-off controller
Information
Block that represents and on/off controller.
The block outputs true
when
the input signal u
falls below
the reference
signal minus half of the bandwidth.
It sets the output signal to false
when the input
signal u
exceeds the reference
signal
plus half of the bandwidth.
The parameter pre_y_start
is used to initialize the
previous value of the output pre(y)
.
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Real | bandwidth | Bandwidth around reference signal | |
Boolean | pre_y_start | false | Value of pre(y) at initial time |
Connectors
Type | Name | Description |
---|---|---|
input RealInput | reference | Connector of Real input signal used as reference signal |
input RealInput | u | Connector of Real input signal used as measurement signal |
output BooleanOutput | y | Connector of Real output signal used as actuator signal |
Modelica definition
Buildings.Obsolete.Controls.OBC.CDL.Logical.Or3
Logical 'or': y = u1 or u2 or u3
Information
Block that outputs true
if at least one input
is true
.
Otherwise the output is false
.
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Connectors
Type | Name | Description |
---|---|---|
input BooleanInput | u1 | Connector of first Boolean input signal |
input BooleanInput | u2 | Connector of second Boolean input signal |
input BooleanInput | u3 | Connector of third Boolean input signal |
output BooleanOutput | y | Connector of Boolean output signal |
Modelica definition
Buildings.Obsolete.Controls.OBC.CDL.Logical.Timer
Timer measuring the time from the time instant where the Boolean input became true
Information
Timer with option to accumulate time until it is reset by an input signal.
Each time the Boolean input u
becomes true, the timer runs, otherwise
it is dormant.
-
If the parameter
accumulate
isfalse
, the timer is set to zero each time the inputu
becomesfalse
. The value of inputreset
will be ignored. -
If the parameter
accumulate
istrue
, the timer accumulates time, and the timer is set to zero only when the value of the inputreset
becomestrue
.
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Boolean | accumulate | false | If true, accumulate time until Boolean input 'reset' becomes true, otherwise reset timer whenever u becomes true |
Connectors
Type | Name | Description |
---|---|---|
input BooleanInput | u | Connector for signal that switches timer on if true, and off if false |
input BooleanInput | reset | Connector for signal that sets timer to zero if it switches to true. The input value will be ignored if the timer does not accumulate time |
output RealOutput | y | Timer output [s] |
Modelica definition
Buildings.Obsolete.Controls.OBC.CDL.Logical.TriggeredTrapezoid
Triggered trapezoid generator
Information
Block that represents a triggered trapezoid.
The block has a Boolean input and a Real
output signal and requires the parameters amplitude,
rising, falling and offset. The
output signal y
represents a trapezoidal signal dependent on the
input signal u
.
The behaviour is as follows: Assume the initial input to be
false
. In this
case, the output will be offset. After a rising edge (i.e., the input
changes from false
to true
),
the output is rising during rising to the
sum of offset and amplitude. In contrast, after a falling
edge (i.e., the input changes from true to false), the output is falling
during falling to a value of offset.
Note, the case of edges before expiration of rising or falling is handled properly.
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Real | amplitude | Amplitude of trapezoid | |
Real | rising | 0 | Rising duration of trapezoid [s] |
Real | falling | rising | Falling duration of trapezoid [s] |
Real | offset | 0 | Offset of output signal |
Connectors
Type | Name | Description |
---|---|---|
input BooleanInput | u | Connector of Boolean input signal |
output RealOutput | y | Connector of Real output signal |
Modelica definition
Buildings.Obsolete.Controls.OBC.CDL.Logical.ZeroCrossing
Trigger zero crossing of input u
Information
Block that detects zero crossings.
The output y
is true
at the
time instant when the input u
becomes
zero, provided the input enable
is
true
. At all other time instants,
the output y
is false
.
If the input u
is zero at a time instant when
the enable
input changes its value, then the output y
is false
.
Note, that in the plot window of a Modelica simulator, the output of
this block is usually identically to false
, because the output
may only be true
at an event instant, but not during
continuous integration. In order to check that this component is
actually working as expected, one should connect its output to, e.g.,
component Buildings.Controls.OBC.CDL.Discrete.TriggeredSampler.
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Connectors
Type | Name | Description |
---|---|---|
input RealInput | u | Connector of Real input signal |
output BooleanOutput | y | Connector of Boolean output signal |
input BooleanInput | enable | Zero input crossing is triggered if the enable input signal is true |