Gateway interface between PLC and PC