PLC input signal converter