created plc controller