Why relay is used in plc | PLC relay logic