I just got my limit switches working on my cnc router. They're all wired in a daisy chain with the estop switch and in that daisy chain was the air pressure switch as well. I removed the connections for the air pressure switch because I don't want the machine to estop because of a pressure drop (the only critical need for air pressure is for tool changes). I think it would be better if I could modify the tool change script where the first thing it does is check the input I connect the pressure switch to, and if it's off (no air) then it would pause and a message pop up informing me to check the air, and clicking ok and closing the message would restart the tool change script, and if the air is on then proceed with the tool change and rest of the program.
Are there any basic flaws with this idea? At first I thought it would be pretty short and simple, but the more I comb though these forums/wiki/documentation and try and learn what I have to do it's becoming clear there is a very small chance I'll ever get this to work piecing it together from scratch. Any help or advice would be appreciated.