# Could not understand after loading program using dashboard

**URL:** <https://forum.universal-robots.com/t/could-not-understand-after-loading-program-using-dashboard/27104>\
**Category:** Robot Communication\
**Created:** [March 2, 2023, 6:26am UTC](https://forum.universal-robots.com/t/could-not-understand-after-loading-program-using-dashboard/27104 "2023-03-02T06:26:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon12897332](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@anon12897332](https://forum.universal-robots.com/u/anon12897332)\
**Post date:** [March 2, 2023, 6:26am UTC](https://forum.universal-robots.com/t/could-not-understand-after-loading-program-using-dashboard/27104/1 "2023-03-02T06:26:48Z")

</div>

Hello, I am trying to control URsim via tcp/ip. I have got a Socket to DashBoard server and want to load a urp on UR then play it. When I send “load .urp”, DashBoard gives me the right answer. But the “play” message after that gets a “could not understand” answer. And every message becomes “could not understand” after I send the “load .urp” message. I have tried to change the order of messages, if I send messages before “load .urp”, they all work well.

---

<div class="post-metadata">

**Author:** ![cags](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/cags/32/6304_2.png) [@cags](https://forum.universal-robots.com/u/cags)\
**Post date:** [March 2, 2023, 10:49am UTC](https://forum.universal-robots.com/t/could-not-understand-after-loading-program-using-dashboard/27104/2 "2023-03-02T10:49:50Z")

</div>

Are you literally sending “load .urp”? The command is load \<PROGRAM\_NAME\>.urp, being \<PROGRAM\_NAME\> whatever program name you wanna load, such as “load program1.urp”, “load example\_program.urp”, and so on.

---

<div class="post-metadata">

**Author:** ![anon12897332](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@anon12897332](https://forum.universal-robots.com/u/anon12897332)\
**Post date:** [March 3, 2023, 1:09am UTC](https://forum.universal-robots.com/t/could-not-understand-after-loading-program-using-dashboard/27104/3 "2023-03-03T01:09:32Z")

</div>

I have sent the right program name “load test.urp”, and the answer from dashboard server was correct.

---

<div class="post-metadata">

**Author:** ![kadams](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/kadams/32/4024_2.png) [@kadams](https://forum.universal-robots.com/u/kadams)\
**Post date:** [March 3, 2023, 5:06am UTC](https://forum.universal-robots.com/t/could-not-understand-after-loading-program-using-dashboard/27104/4 "2023-03-03T05:06:35Z")

</div>

Hi @anon12897332

i remember that i always got taht answer “could not understand…”, when i have send the same command twice in a row.  
And i think i got that answer when i have send a new command, while the UR was still working/ responding on the previous command.

---

<div class="post-metadata">

**Author:** ![cags](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/cags/32/6304_2.png) [@cags](https://forum.universal-robots.com/u/cags)\
**Post date:** [March 3, 2023, 6:52am UTC](https://forum.universal-robots.com/t/could-not-understand-after-loading-program-using-dashboard/27104/5 "2023-03-03T06:52:33Z")

</div>

How long do you wait between commands? Some programs can be very long and after sending a `load` you need to wait for the program to be fully load, otherwise it will have an error.  
Some programs might seem short, but if they have an URCap, the `.script` file underneath might be long. I got once a program with URCaps that generated threads on the program and had to wait like 2 seconds before sending the `play`.

---

<div class="post-metadata">

**Author:** ![kadams](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/kadams/32/4024_2.png) [@kadams](https://forum.universal-robots.com/u/kadams)\
**Post date:** [March 3, 2023, 6:57am UTC](https://forum.universal-robots.com/t/could-not-understand-after-loading-program-using-dashboard/27104/6 "2023-03-03T06:57:06Z")

</div>

I guess it would b best to do it like this:

→ Load Program —\> Delay of 2 s → Get Loaded Program → Check if loaded program = the program that u wanted to load → Command Play

(That´s how i do it with my PLC ↔ UR signal exchange)

---

<div class="post-metadata">

**Author:** ![dsh](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@dsh](https://forum.universal-robots.com/u/dsh)\
**Post date:** [March 8, 2023, 10:16pm UTC](https://forum.universal-robots.com/t/could-not-understand-after-loading-program-using-dashboard/27104/7 "2023-03-08T22:16:16Z")

</div>

@anon12897332  
Did you include a new line character between the original load command and the new command you sent?  
For example if I’m writing a program in Python to connect to the robot to Dashboard server I would establish the connection and then send the command with a newline attached to it:

```auto
self.sock.sendall((command + '\n').encode())

```

Where “command” would be the text command I want to send to the robot.
