Control with safety relay with external 24 V supply