Home› Integration
Discussion
Back to discussions page
wileydavis
Posts: 11 Apprentice
What's The Best Way To Integrate the UR With A Python Program? |
101 views
|
Answered | |
/ Most recent by louis_bergeron
in Integration
|
1 comment |

in Integration
Hi,
I'm working on a python application that takes photos of our machine at various stages and compares them with reference images to ascertain that all is well. the plan is to integrate that with our UR5 where the UR signals that a new photo needs to be taken and waits to receive an "all's well" signal from the laptop running the image processor.
What would be the best way to have a laptop running python communicate with the UR? In an ideal world I'd run an ethernet cable from the UR to our shop's wifi router and then connect the laptop wirelessly, but that might be a pipedream
Anyway, since this is pretty much all new to me I figured I'd ask for the best direction to head. Thanks.
I'm working on a python application that takes photos of our machine at various stages and compares them with reference images to ascertain that all is well. the plan is to integrate that with our UR5 where the UR signals that a new photo needs to be taken and waits to receive an "all's well" signal from the laptop running the image processor.
What would be the best way to have a laptop running python communicate with the UR? In an ideal world I'd run an ethernet cable from the UR to our shop's wifi router and then connect the laptop wirelessly, but that might be a pipedream

The simplest way could be to implement a socket connection with the controller. You can get an example in our Application package Streaming data from sensor to communicate through ethernet socket between a Python program and the UR.
You can also use the already available Modbus TCP communication in the UR and get a free python Modbus TCP library on the web to do it.
Integration Coach
robotiq.com
[email protected]