# Can't pause program using dashboard server

**URL:** <https://forum.universal-robots.com/t/cant-pause-program-using-dashboard-server/1971>\
**Category:** URScript\
**Created:** [May 11, 2018, 1:31am UTC](https://forum.universal-robots.com/t/cant-pause-program-using-dashboard-server/1971 "2018-05-11T01:31:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon21910823](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon21910823](https://forum.universal-robots.com/u/anon21910823)\
**Post date:** [May 11, 2018, 1:31am UTC](https://forum.universal-robots.com/t/cant-pause-program-using-dashboard-server/1971/1 "2018-05-11T01:31:56Z")

</div>

For some reason, I cannot pause my program using the dashboard server. I always get back “Failed to execute: pause”. I am sending my program via TCP/IP on port 30001.

Any help would be much appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![anon42905246](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@anon42905246](https://forum.universal-robots.com/u/anon42905246)\
**Post date:** [May 11, 2018, 6:31am UTC](https://forum.universal-robots.com/t/cant-pause-program-using-dashboard-server/1971/2 "2018-05-11T06:31:32Z")

</div>

🤔 Dashboard server is running on 29999.

---

<div class="post-metadata">

**Author:** ![anon21910823](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon21910823](https://forum.universal-robots.com/u/anon21910823)\
**Post date:** [May 11, 2018, 10:16am UTC](https://forum.universal-robots.com/t/cant-pause-program-using-dashboard-server/1971/3 "2018-05-11T10:16:05Z")

</div>

Sorry should of been more clear. I am sending the poses via port 30001 and using the dashboard server (port 29999) to pause.

---

<div class="post-metadata">

**Author:** ![anon42905246](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@anon42905246](https://forum.universal-robots.com/u/anon42905246)\
**Post date:** [May 11, 2018, 11:25am UTC](https://forum.universal-robots.com/t/cant-pause-program-using-dashboard-server/1971/4 "2018-05-11T11:25:32Z")

</div>

Ok. If you don’t load the program in Polyscope, it will not to be able to pause. Anybody please correct me, if I’m mistaken.

---

<div class="post-metadata">

**Author:** ![anon21910823](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon21910823](https://forum.universal-robots.com/u/anon21910823)\
**Post date:** [May 13, 2018, 10:57pm UTC](https://forum.universal-robots.com/t/cant-pause-program-using-dashboard-server/1971/5 "2018-05-13T22:57:25Z")

</div>

Thanks for the information

---

<div class="post-metadata">

**Author:** ![anon79795599](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@anon79795599](https://forum.universal-robots.com/u/anon79795599)\
**Post date:** [January 4, 2019, 6:19pm UTC](https://forum.universal-robots.com/t/cant-pause-program-using-dashboard-server/1971/6 "2019-01-04T18:19:41Z")

</div>

The following two lines of code in the Polyscope will cause the robot to pause.

Use the assignment feature under structure to create the following.

open\_db=socket\_open(“127.0.0.1”,29999,“dbsocket”)  
send\_db=socket\_send\_line(“pause”,“dbsocket”)

Running these two lines will send the pause command (the scoket\_send\_line command takes care of the \n) to the dashboard server and pause the robot.

You can replace “pause” with any other dashboard command to execute it.

Mark
