{set the bus status for the incoming feeds to the dependent bus below in the
distribution hierarchy. The IF_THEN
statements in this section traverse the hierarchy from top to bottom, left to right, and then bottom to top, right to left.} bus6 = 0;
bus7 = 0;
{two main feeds }
IF (bus1 AND brk1_s) THEN bus3 = 1;
ENDIF;
IF (bus2 AND brk2_s) THEN bus4 = 1;
ENDIF;
{left to right across tie breaker } IF (bus3 AND brk3_s) THEN
bus4 = 1;
ENDIF;
IF (bus4 AND brk4_s) THEN bus5 = 1;
ENDIF;
{two outgoing feeders }
IF (bus3 AND brk5_s) THEN bus6 = 1;
ENDIF;
IF (bus5 AND brk6_s) THEN bus7 = 1;
ENDIF;
{back feed from two outgoing feeds } IF (bus7 AND brk6_s) THEN
bus5 = 1;
ENDIF;
IF (bus6 AND brk5_s) THEN bus3 = 1;
ENDIF;
{right to left across tie breaker } IF (bus5 AND brk4_s) THEN
bus4 = 1;
ENDIF;
IF (bus4 AND brk3_s) THEN bus3 = 1;
ENDIF;
{two incoming feeds }
IF (bus5 AND brk2_s) THEN bus2 = 1;
ENDIF;
IF (bus3 AND brk1_s) THEN bus1 = 1;
ENDIF;
60 | PMCS Interface Toolkit |