Hi all. I am Tweeking an existing program i did last year, I am wondering what better way there is to program the following,
Sequence
step 1 open product valve at fill tank to 8" (Tank is maintained at 8" elsewhere in the program)
step 2 open drain valve
step 3 horn sounds for 2 seconds
step 4 start piston cycle
step 5 do this for 2 mins
step 6 open and close product valve 5 times
step 7 sound horn for 2 seconds
step 8 wait 5 seconds
step 9 overflow tank for 2 mins
step 10 drain tank own to 8 inches
step 11 sound horn for 3 seconds
step 12 start again
If any of the levels are not met or fall below during the cycle everything holds untill level is met again..
Here is the code i wrote (Be nice!! it was first real AB program!!)
Ignore all the rung errors..i just yanked the sub routine out of the main program and created a new one..the errors are becouse i didnt re-create the tags..
Any suggestions/guidance would be appreciated
Sequence
step 1 open product valve at fill tank to 8" (Tank is maintained at 8" elsewhere in the program)
step 2 open drain valve
step 3 horn sounds for 2 seconds
step 4 start piston cycle
step 5 do this for 2 mins
step 6 open and close product valve 5 times
step 7 sound horn for 2 seconds
step 8 wait 5 seconds
step 9 overflow tank for 2 mins
step 10 drain tank own to 8 inches
step 11 sound horn for 3 seconds
step 12 start again
If any of the levels are not met or fall below during the cycle everything holds untill level is met again..
Here is the code i wrote (Be nice!! it was first real AB program!!)
Ignore all the rung errors..i just yanked the sub routine out of the main program and created a new one..the errors are becouse i didnt re-create the tags..
Any suggestions/guidance would be appreciated