blockMultipleCommands
Block that converts command signals for multiple units
Information
This block computes the following variables based on a Boolean array representing the On/Off command signal for a group of multiple units, such as parallel fans or pumps.
-
The Boolean output
y1Oneistrueif at least one element of the input array istrue. -
The real output
nUniOnis the number of elements of the input array that aretrue(may be zero). -
The real output
nUniOnBouis the maximum between 1 andnUniOn.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nUni | Number of units |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nUni] | y1 | Command signal | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | y1One | On/Off signal: true if at least one unit is commanded On | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | nUniOnBou | Number of units that are commanded On, with lower bound of 1 | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | nUniOn | Number of units that are commanded On |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Conversions.BooleanToReal[nUni] | booToRea | Convert to real | |
| Buildings.Controls.OBC.CDL.Reals.MultiSum | mulSum | Total | |
| Buildings.Controls.OBC.CDL.Reals.Max | max1 | Maximum value | |
| Buildings.Controls.OBC.CDL.Reals.Sources.Constant | one | Constant one | |
| Buildings.Controls.OBC.CDL.Logical.MultiOr | mulOr | Returns true if at least one unit is commanded on |
Revisions
-
November 15, 2023, by Michael Wetter:
Reformulated using a multi-or block. -
February 24, 2023, by Antoine Gautier:
First implementation.