blockSelectEquipmentAtStage

Select available equipment at a given stage

Information

This block decodes a row of the staging matrix and the equipment availability array to classify each unit and compute aggregate counts for the current stage.

The boolean output arrays classify each unit as follows:

  • The unit is required (not an alternate) and available.
  • The unit is a lead/lag alternate and available.
  • The unit is either required or a lead/lag alternate, and available.

Parameters

TypeNameDefaultDescription
IntegernEquNumber of equipment

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nEqu]u1AvaEquipment available signal
Buildings.Controls.OBC.CDL.Interfaces.RealInput[nEqu]uEquStaEquipment required at current stage (row of staging matrix)
Buildings.Controls.OBC.CDL.Interfaces.IntegerOutputnTotTotal equipment count at current stage
Buildings.Controls.OBC.CDL.Interfaces.IntegerOutputnReqNumber of units required excluding lead/lag alternates
Buildings.Controls.OBC.CDL.Interfaces.IntegerOutputnAltNumber of lead/lag alternate units
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[nEqu]y1ReqAndAvaTrue if unit is required and available (excluding lead/lag alternates)
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[nEqu]y1AltAndAvaTrue if unit is indexed as lead/lag alternate and available
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[nEqu]y1ReqOrAltAndAvaTrue if unit is required or indexed as lead/lag alternate and available

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Reals.GreaterThreshold[nEqu]isReqReturn true if equipment required without lead/lag alternate
Buildings.Controls.OBC.CDL.Logical.And[nEqu]isReqAndAvaReturn true if equipment required without lead/lag alternate and available
Buildings.Controls.OBC.CDL.Reals.GreaterThreshold[nEqu]isReqOrAltReturn true if equipment required (with or without lead/lag alternate)
Buildings.Controls.OBC.CDL.Reals.LessThreshold[nEqu]notReqOrAltReturn true if equipment not required or indexed as lead/lag alternate
Buildings.Controls.OBC.CDL.Logical.MultiAnd[nEqu]isAltAndAvaReturn true if indexed as lead/lag alternate and available
Utilities.CountTruenReqCouCount the number of required units without lead/lag alternates, not necessarily available
Buildings.Controls.OBC.CDL.Reals.MultiSumnTotReaReturn total equipment count at stage
Buildings.Controls.OBC.CDL.Conversions.RealToIntegernTotIntTotal equipment count at stage as integer
Buildings.Controls.OBC.CDL.Integers.SubtractnAltCouNumber of lead/lag alternate units to run to meet stage requirement
Buildings.Controls.OBC.CDL.Logical.And[nEqu]isReqOrAltAndAvaReturn true if equipment required with or without lead/lag alternate, and available
Buildings.Controls.OBC.CDL.Logical.Not[nEqu]notReqNorAltReturn true if equipment not required (with or without lead/lag alternate)

Revisions

  • June 10, 2026, by Antoine Gautier:
    First implementation.