PLC Control system