So, I have a FANUC 2 robot welding setup that I am trying to toggle the error between global to local. The arms are far enough apart that collision is not a concern, so I'd like one robot to be able to finish its weld if the other has an error. I have a background program that appears to be working, with the variable menu open I can watch the value go between true and false, but it does not stop the program as I'd hoped. My best guess is that the global variable only gets checked at the initial call and it changing during execution does not affect anything. If I am right is there a way around that or any other suggestions that would meet the same goal? Background progam is below, DO[]s are the arc on for each welder.