PLC and robot control seamlessly integrated