How does a Safety PLC Work?