PLC I/O adapter