In this video, we will configure the transition logic for Step 2.
I will use the same construction as for the previous rung, but I will change the “compare equal” instruction to compare the step number to two. I have added the “BATCH_START” bit to a “SET OUTPUT” coil as before.
The PIN chart indicates that Step 2 should transition to Step 3 when the total amount of water added is equal to or greater than 1000 liters.
Instead of the bit that indicates that “Valve 5” is closed, I will add a global real variable at MD30 [M D 30] to represent the Water Flow Totalizer, and I add a “compare greater than or equal to” 1000 to the rung.