how to integrate ai with plc systems