New LCC logic added to detect when upper interchange/staging 3-track loops are occupied.
Joe and I added logic to detect when and how many of the 3 track loops are occupied and send the info to a signal mast along the track leading to the staging yard.
The signal is SM101 with explanation in red in picture below indicating conditions.
In this case: red for all loops occupied.
Yellow when one loop is available for entry. Any combination works for all conditions.
Flashing yellow when two loops are available for entry.
Green when all 3 loops are available for entry.
Here's the logic. We learned something new in that parenthesis can be used to define your logic after all the variables are defined. In this case we needed a variable for each loop being occupied and unoccupied and then set up the logic to light the respective signal light for each condition.
Logic for all 4 situations.
The 'virtual' signal is set up on the monitor: I now have to set up the physical one leading into the staging loops.
Will be able to tap into the left side of this LCC signal board.
We enjoyed setting this up as it was very rewarding once we got it working.