Communication UR10e with Siemens PLC (TIA) via Dasboard Server

Good morning together,

I´m struggling to get a running communication between my UR10e and my Siemens PLC (CPU 1212 TIA15.1) via Dashboard Server.

To do the data exchange I use a OUC Communication which is established via TCON (and deactivated via TDISCON):

For sending and receiving data i have to use the blocks TSend and TRCV:

The syntax of a command looks like this (you can see on the left site of the following pic).

By pressing a Button on HMI the String (from left site) will be moved to the string on the right site and then will be send to the UR.

That works fine.

Now i try to read the answer from the UR.

I put the Robot on Remote control, then i activate the OUC Communication on my PLC.
If i press now “Start” on my Siemens PLC, the string for example for “Stop” it looks like this:

I send the stop command (on Robot HMI i can see that the Robot is stopped).

But the Robot itself sends (to me) nonsense to the Siemens PLC.
For my process it is very important, that i can get a correct feedback from the UR at my Siemens PLC, as i not only want to start/ stop the robot from here… I also want to open different Robot-Programms from my Siemens PLC. For that i have to get a correct answer of which program (on Robot) is loaded.

When i try this Dashboard Server Communication with the SocetTester i can receive the answers like its explained in the Dashboard Server Manual:

https://www.universal-robots.com/articles/ur/dashboard-server-e-series-port-29999/

Does anyone has and Idea?

Thank you very much in advance.

Many greetings from Luxembourg.

2 Likes

Update:

I´ve changed the Receiving Datablock Format. Instead of receiving a string, I´m using now an Array [0…100] of CHAR.

Now the answer from the Robot looks like this:




Why does the Robot send “readable” Data only from CHAR68?
When i Send a new Command to the Robot, the Answer starts from somewhere else…
I don´t understand how the answer of the UR is created…

Hello Kadams,
please can you write how do create the DB “DB_Dashboard_Command”. What document by UR describes these commands, please ? Only the DashboardServer_e-Series_2022.pdf ? TNX Igor

Hi @igor.lana,

the DB “DB_Dashboard_Command” looks like this (the Syntax is SUPER Important):

Tbh I don´t remember which Document i used… cause most of the time it was like “Trial n error” until i found a good way to send the commands to the UR.

This one helped me to find out which commands are existing:

DashboardServer_e-Series.pdf (115.4 KB)

Information about the Syntax of the Commands i had to find out on my own.

I believe it’s something to do with the Siemens PLC. I received the same garbages data too. You can filter out them and retain only alphanumerics maybe

Hi @kxpang

forget about the Post :smiley:

U will receive CHAR from the UR… but to use it in a propper way at ur PLC u have to convert it into Strg and only read the lenght of the received aswer…


Only then u will get a (more or less) usfeull answer from the UR.

I remember that i still faced some issues when i send the same command twice, or when i send a command, while the UR was still answering the first command… Did u face similar problems?

Greetings from Luxembourg!

1 Like

Yup I have the same issue. I make the PLC to send send the command a few times to make sure the PLC receives the correct answer