blockStageCompletion
Checks successful completion of stage change
Information
Block that detects a stage change and evaluates whether the stage transition is completed.
The completion of a stage change is considered successful when both of the following conditions have been verified.
- Following a stage transition event, or exactly at the same time, there is a change in the enable command of at least one equipment.
- The equipment status matches the enable command for all units, after any change in the enable command has been detected.
The output signal y1End is true exactly at the time when
the successful completion of the stage change is confirmed.
The output signal y1 is true during the entire time in which
the stage change is in progress.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nin | 0 | Size of input array |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nin] | u1 | Equipment enable command | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nin] | u1_actual | Equipment status | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | y1End | Successful completion of stage change | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | y1 | Stage change in progress | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | uSta | Stage index |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Logical.And[nin] | enaAndOn | True if equipment enabled and on status returned | |
| Buildings.Controls.OBC.CDL.Logical.Nor[nin] | disAndOff | True if equipment disabled and off status returned | |
| Buildings.Controls.OBC.CDL.Logical.MultiAnd | allTru | True if all inputs true | |
| Buildings.Controls.OBC.CDL.Logical.Or[nin] | onOrOff | True if on or off condition met | |
| Buildings.Controls.OBC.CDL.Logical.FallingEdge | endStaPro | True when staging process terminates | |
| Buildings.Controls.OBC.CDL.Logical.Latch | lckChaSta | Lock stage change signal until conditions on equipment command and status met | |
| Buildings.Controls.OBC.CDL.Logical.Change[nin] | cha | True if enable signal changes | |
| Buildings.Controls.OBC.CDL.Logical.Latch | lckAnyCha | Lock equipment command change signal until next stage change | |
| Buildings.Controls.OBC.CDL.Logical.MultiOr | anyCha | True if any enable signal changes | |
| Buildings.Controls.OBC.CDL.Logical.And | chaAndMat | True if enable command changed and equipment status matches command | |
| Buildings.Controls.OBC.CDL.Logical.Pre | preAnyCha | Left-limit of signal to guard against concomitant stage change and command change | |
| Buildings.Controls.OBC.CDL.Integers.Change | chaSta | Return true when stage change is initiated |
Revisions
-
June 26, 2024, by Antoine Gautier:
Replacedholdwithpreto guard against concomitant stage change and command change.
This is for #3787. -
March 29, 2024, by Antoine Gautier:
First implementation.