# 連上網路線後在本地電腦執行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:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LSH923](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/lsh923/32/5873_2.png) [@LSH923](https://forum.universal-robots.com/u/LSH923)\
**Post date:** [March 4, 2024, 1:17pm UTC](https://forum.universal-robots.com/t/script/33083/1 "2024-03-04T13:17:09Z")

</div>

我的系統是ubuntu20.04，我想在使用網路線連線成功後（輸入指令ping成功連上），在我的電腦使用vscode執行寫好的URScript程式（script檔），但執行失敗。  
然後我想把該檔案丟入隨身碟想copy至UR手臂的電腦中卻發現，電腦只能看到urp檔，看不到script檔。

---

<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)

谢谢
