# Send positioning data to UR3 over Ethernet

**URL:** <https://forum.universal-robots.com/t/send-positioning-data-to-ur3-over-ethernet/24657>\
**Category:** Robot Communication\
**Created:** [October 27, 2022, 6:59am UTC](https://forum.universal-robots.com/t/send-positioning-data-to-ur3-over-ethernet/24657 "2022-10-27T06:59:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert.kristof](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@robert.kristof](https://forum.universal-robots.com/u/robert.kristof)\
**Post date:** [October 27, 2022, 6:59am UTC](https://forum.universal-robots.com/t/send-positioning-data-to-ur3-over-ethernet/24657/1 "2022-10-27T06:59:35Z")

</div>

Hello,

I want to build a Visual Basic Program where I will send over ethernet positioning data.  
How can I do this? Is there a special syntax to get data sent over Ethernet?

Thanks

---

<div class="post-metadata">

**Author:** ![fujikit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/fujikit/32/6042_2.png) [@fujikit](https://forum.universal-robots.com/u/fujikit)\
**Post date:** [October 27, 2022, 7:15am UTC](https://forum.universal-robots.com/t/send-positioning-data-to-ur3-over-ethernet/24657/2 "2022-10-27T07:15:49Z")

</div>

It is possible to sending script into primary interface with the socket.

[Remote Control Via TCP/IP - 16496 (universal-robots.com)](https://www.universal-robots.com/articles/ur/interface-communication/remote-control-via-tcpip/)

---

<div class="post-metadata">

**Author:** ![anon19161558](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@anon19161558](https://forum.universal-robots.com/u/anon19161558)\
**Post date:** [October 27, 2022, 7:24am UTC](https://forum.universal-robots.com/t/send-positioning-data-to-ur3-over-ethernet/24657/3 "2022-10-27T07:24:00Z")

</div>

There are different ways , the most simple one i think is with primary interface , i made this small code . Basicly if you send any UR command with s.send + encode utf8 at the end , it should understand it.  
But remember that robot doesn´t return anything , so when you send a pose , python doesn´t know when the pose is reached. It´s not the bets way , but it works.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/e/e3161b50863b359cab444ac367e88bfd453544fe.png)

import socket

import time

HOST = “192.168.101.15”

PORT = 30002

s = socket.socket(socket.AF\_INET, socket.SOCK\_STREAM)

s.connect((HOST, PORT))

#s.send ((“movel (p[0.35963,-0.37947,0.03807,0.0,0.0,5.498], a=0.2, v=0.1)”+“\n”).encode(“utf8”))

#time.sleep(6)

#s.send ((“movel (p[0.35963,-0.37947,0.43807,0.0,0.0,5.498], a=0.2, v=0.1)”+“\n”).encode(“utf8”))

#time.sleep(6)
