I am trying to pause the UR program and resume from the current program node if my URcap has met with any errors, similar to how UR reacts to protective stops or deviation of joints.
Any idea for me to do that? I have been trying to send pause command to dashboard server via socket embedded inside my URscript code. But it does not seem to be working well.
If you want the user to know, that something went wrong, and prompt them, then you could also use the popup() script code, which awaits the user to click “Continue” or “Stop” before continuing in the process.
You don’t want them to be using the pendant, but it will be the user proactively resuming the program? Would a push button connected to a digital input configured to play the program be acceptable? This can be configured under the IO Setup menu of the installation tab.