I'm new to PLC's and I'm working through an exercise to manually control filling and draining a tank which I completed but the automatic function has me stumped. I know the limits and can get the tank filled and drained to the levels but I can't figure out how to open and close the "valves" automatically when the certain levels are reached. I'm working on Rockwell software. Any help is greatly appreciated.