Enable Protective Stop with a Buton or a Signal

Is there any way to “Enable Robot” without touching the teach pendant or without sending a command through dashboard?
Shortly can I enable it via Script Code or with an Input Signal?

It is possible to do “power on” and “break release” automatically without touching teaching pendant.
It is realized by using RTDE and dashboard.

RTDE: getting robot mode.
Dashboard: sending command for “power on” and “break release”

I have created the urcap that do this automatically for making debug work easier.

Nice job! but is it enough to enable robot after “PROTECTIVE STOP”? Actually, I have used an arduino and an ethernet shield to eliminate my problem.