Home› Programming
Discussion
Back to discussions page
jfalk
Posts: 2 Recruit
Receiving Data From UR5e and Decoding |
774 views
|
Answered | |
/ Most recent by jfalk
in Programming
|
3 comments |

in Programming
I am working on a project with a UR5e and we are looking to receive some position data and force data from the arm via a python program written on a ethernet connected PC. I can connect to the arm just fine and I can receive the data over port 30003, but I am not sure where to go next. The data appears to be in a hex string format, see attached file, but I cant manage to decode it into any meaningful data. If needed I can attached some of my python code as an example of what I have tried if needed. Am I trying to get data from the correct port? Is the data in a hex string? Is there a better way to get this data from the robot? All help is appreciated, let me know if there is a better place to post this question. Thanks in advance.
Tagged:
Comments
-
matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,266 Handy
It’s packed as a buffer string. You will need to unpack the data. UR provides the data packet structure on their website. Check out https://www.universal-robots.com/articles/ur-articles/remote-control-via-tcpip/ there is an excel spreadsheet you can download that will show how it’s packed.1 · TwitterFacebook -
jelms Posts: 34 Handy
@jfalk That is the real-time data on port 30003 and is a fixed binary format. The recommended method is to use RTDE data via port 30004. See https://www.universal-robots.com/articles/ur-articles/real-time-data-exchange-rtde-guide/ There is an example python program for download at the bottom.0 · TwitterFacebook -
jfalk Posts: 2 Recruit
Thank you both for your replys, I think we may have found the solution!0 · TwitterFacebook