PLC vs relay