Martin T.
Member
I think I'm losing my mind!
To make a long story short, guy has been working on a program for 22 months, half of it will only works in manual. So its given to me to debug and correct.
Everything starts out terrible, I've got 14 pages of notes on things I've corrected and have only got 5 out 12? rountines done. While I was testing the last routine I corrected I came across something that has thrown me for a loop. I'm using integer pointers to step through the routine.
At one point in the routine pressure between two cylinders needs to be equalized before the compressor is used(saves time) I'm using an OTE to energize a buffer bit for the valve. After the pressure is close to equal pointer goes to the next step, and the same buffer bit is latched to hold the valve open while the compressor is running. As soon as the pointer moves to the next step to stop the routine when the pressure set point is reached the latched bit unlatches itself.
I can't post the full program for proprietary reasons. So I did a quick example of what I'm seeing.
My test setup:
SLC 5/03, 1747-L531E OS 302 Series C. Using RSLogix 500 ver, 6.20.
What have I forgotten? Or better yet can someone wake my brain up!!!!
To make a long story short, guy has been working on a program for 22 months, half of it will only works in manual. So its given to me to debug and correct.
Everything starts out terrible, I've got 14 pages of notes on things I've corrected and have only got 5 out 12? rountines done. While I was testing the last routine I corrected I came across something that has thrown me for a loop. I'm using integer pointers to step through the routine.
At one point in the routine pressure between two cylinders needs to be equalized before the compressor is used(saves time) I'm using an OTE to energize a buffer bit for the valve. After the pressure is close to equal pointer goes to the next step, and the same buffer bit is latched to hold the valve open while the compressor is running. As soon as the pointer moves to the next step to stop the routine when the pressure set point is reached the latched bit unlatches itself.
I can't post the full program for proprietary reasons. So I did a quick example of what I'm seeing.
My test setup:
SLC 5/03, 1747-L531E OS 302 Series C. Using RSLogix 500 ver, 6.20.
What have I forgotten? Or better yet can someone wake my brain up!!!!