Close protective stop with a button

Hello,

Is it possible to, when a protective stop happens, we press a button and the “popup” closes?
I want to make this step automatic, and so when the stop happens, the operator can press the reset button and the robot goes back to home position.

I already have the button connected to the digital inputs of the robot.
The robot is a UR10.

Best Regards,
Vasco Dias