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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nEqu | Number of equipment |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nEqu] | u1Ava | Equipment available signal | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput[nEqu] | uEquSta | Equipment required at current stage (row of staging matrix) | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | nTot | Total equipment count at current stage | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | nReq | Number of units required excluding lead/lag alternates | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | nAlt | Number of lead/lag alternate units | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[nEqu] | y1ReqAndAva | True if unit is required and available (excluding lead/lag alternates) | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[nEqu] | y1AltAndAva | True if unit is indexed as lead/lag alternate and available | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[nEqu] | y1ReqOrAltAndAva | True if unit is required or indexed as lead/lag alternate and available |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Reals.GreaterThreshold[nEqu] | isReq | Return true if equipment required without lead/lag alternate | |
| Buildings.Controls.OBC.CDL.Logical.And[nEqu] | isReqAndAva | Return true if equipment required without lead/lag alternate and available | |
| Buildings.Controls.OBC.CDL.Reals.GreaterThreshold[nEqu] | isReqOrAlt | Return true if equipment required (with or without lead/lag alternate) | |
| Buildings.Controls.OBC.CDL.Reals.LessThreshold[nEqu] | notReqOrAlt | Return true if equipment not required or indexed as lead/lag alternate | |
| Buildings.Controls.OBC.CDL.Logical.MultiAnd[nEqu] | isAltAndAva | Return true if indexed as lead/lag alternate and available | |
| Utilities.CountTrue | nReqCou | Count the number of required units without lead/lag alternates, not necessarily available | |
| Buildings.Controls.OBC.CDL.Reals.MultiSum | nTotRea | Return total equipment count at stage | |
| Buildings.Controls.OBC.CDL.Conversions.RealToInteger | nTotInt | Total equipment count at stage as integer | |
| Buildings.Controls.OBC.CDL.Integers.Subtract | nAltCou | Number of lead/lag alternate units to run to meet stage requirement | |
| Buildings.Controls.OBC.CDL.Logical.And[nEqu] | isReqOrAltAndAva | Return true if equipment required with or without lead/lag alternate, and available | |
| Buildings.Controls.OBC.CDL.Logical.Not[nEqu] | notReqNorAlt | Return true if equipment not required (with or without lead/lag alternate) |
Revisions
-
June 10, 2026, by Antoine Gautier:
First implementation.