RTDE protective Stop

perhaps this thread will help you.