hello all,
Can anyone help me figure out this problem?
I have a subroutine for controlling diverter valves on three levels: 401L, 1401L & 2402L. The control is same for all three levels. The diverter valve of each level has 2 directions. For example, the 401L one has 600L direction and 1401L direction. Each direction has a limit switch indicating the fully open status. Normally, the valve will be fully open within 30 seconds. I used a TOF timer to shut down the motor if the LS wasn't fully open within 30s, and set a switch_not_ok tag. I tried TON timer, OSF, OSR. All seems not working.
The rung 0 to rung 3 of the attached file is my test rungs. Rung 14 to 23 is the typical 401L diverter valve control.
What's wrong with my program? Any suggestion?
Thanks in advance,
Eric
Can anyone help me figure out this problem?
I have a subroutine for controlling diverter valves on three levels: 401L, 1401L & 2402L. The control is same for all three levels. The diverter valve of each level has 2 directions. For example, the 401L one has 600L direction and 1401L direction. Each direction has a limit switch indicating the fully open status. Normally, the valve will be fully open within 30 seconds. I used a TOF timer to shut down the motor if the LS wasn't fully open within 30s, and set a switch_not_ok tag. I tried TON timer, OSF, OSR. All seems not working.
The rung 0 to rung 3 of the attached file is my test rungs. Rung 14 to 23 is the typical 401L diverter valve control.
What's wrong with my program? Any suggestion?
Thanks in advance,
Eric