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 y1One is true if at least one element of the input array is true.
  • The real output nUniOn is the number of elements of the input array that are true (may be zero).
  • The real output nUniOnBou is the maximum between 1 and nUniOn.

Parameters

TypeNameDefaultDescription
IntegernUniNumber of units

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nUni]y1Command signal
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutputy1OneOn/Off signal: true if at least one unit is commanded On
Buildings.Controls.OBC.CDL.Interfaces.RealOutputnUniOnBouNumber of units that are commanded On, with lower bound of 1
Buildings.Controls.OBC.CDL.Interfaces.RealOutputnUniOnNumber of units that are commanded On

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Conversions.BooleanToReal[nUni]booToReaConvert to real
Buildings.Controls.OBC.CDL.Reals.MultiSummulSumTotal
Buildings.Controls.OBC.CDL.Reals.Maxmax1Maximum value
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantoneConstant one
Buildings.Controls.OBC.CDL.Logical.MultiOrmulOrReturns 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.