I would like for my robot to deactivate its active IO whenever it crashes.The robot and the IO will both shut off during a crash. But when i power the robot back on- the grinder/sander also activates while still making contact with the piece it was sanding/grinding, and can cause damage.
Apologies for duplicate post, after submitting I was told the gateway timed out each time. Mods please delete.
Go to the IO setup on the Installation tab and set the outputs to be low when not running. This will drop the output signals anytime the robot program stops executing, pause, stop, protective stop, etc. You will need to handle getting the outputs back running again. We usually do this by calling a flag in the main program and then use a thread to set the state of the output based on the state of that flag. That way when the program stops the output turns off and when the program resumes we just set it to whatever state it should be.
I would like for my robot to deactivate its active IO whenever it crashes.
The robot and the IO will both shut off during a crash. But when i power the robot back on- the grinder/sander also activates while still making contact with the piece it was sanding/grinding, and can cause damage.