# 連上網路線後在本地電腦執行script檔

**URL:** <https://forum.universal-robots.com/t/script/33083>\
**Category:** 中文提问(Questions in Chinese)\
**Created:** [March 4, 2024, 1:17pm UTC](https://forum.universal-robots.com/t/script/33083 "2024-03-04T13:17:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tizh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tizh/32/4176_2.png) [@tizh](https://forum.universal-robots.com/u/tizh)\
**Post date:** [March 11, 2024, 3:08am UTC](https://forum.universal-robots.com/t/script/33083/2 "2024-03-11T03:08:26Z")

</div>

你好，机器人示教器中只能选择URP执行。如果想使用电脑直接发送脚本给机器人运行，可通过TCP/IP端口，比如30001  
详细说明可参考

> [@Guide and example: UR Remote Control via TCPIP](https://forum.universal-robots.com/t/guide-and-example-ur-remote-control-via-tcpip/32973/9):
>
> Hi, Thanks for the comment. about using .URP, there is a rtde\_control\_loop.urp file in the python library download page, which can be used as start point. please copy it to UR robot then run it. there are two ways to transfer URP to robot other than using USB: using FTP to put the urp into robot controller memory; the urp is finally transferred to UR Script to run in robot controller. So you can draft the function as script lines, then use 30001 port to send it to robot controller, as expla…

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

谢谢

---

_[View the full topic](https://forum.universal-robots.com/t/script/33083)._
