How is a PLC different from relay?