# Dashboard Server communication with Siemens S7 PLC

**URL:** <https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835>\
**Category:** Robot Communication\
**Created:** [March 14, 2019, 7:43am UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835 "2019-03-14T07:43:08Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon13182996](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon13182996](https://forum.universal-robots.com/u/anon13182996)\
**Post date:** [March 14, 2019, 7:43am UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/1 "2019-03-14T07:43:08Z")

</div>

For some reason i have problems with my dashboard server communication with my Siemens S7-1200 PLC.

The connection is programmed with TIA.

The connection is working, but there are problems with the Dashboard commands.

With the TIA TSEND block it is possible to send strings to the UR. the commands ‘power on $L’ and ‘power off$L’ are working fine. But it is not possible that commands like ‘brake release’ are undersood by the UR.

Has anyone more experiece with this type of Problem?

---

<div class="post-metadata">

**Author:** ![inu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/inu/32/732_2.png) [@inu](https://forum.universal-robots.com/u/inu)\
**Post date:** [March 14, 2019, 5:17pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/2 "2019-03-14T17:17:05Z")

</div>

Hello @anon13182996,

I was able to get the command to go through using the T\_SEND\_C block and ‘brake release$R$L’ on TIA 15.1. You can also take a look at the auto start sequence if that makes your program easier:

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

---

<div class="post-metadata">

**Author:** ![anon61596550](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@anon61596550](https://forum.universal-robots.com/u/anon61596550)\
**Post date:** [March 21, 2019, 11:43am UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/3 "2019-03-21T11:43:57Z")

</div>

@anon13182996  
Could you show the connection configuration for the TCON block in TIA? I can’t even establish a connection between S7-1200 and UR. With SocketTest on PC it works fine.

---

<div class="post-metadata">

**Author:** ![anon13182996](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon13182996](https://forum.universal-robots.com/u/anon13182996)\
**Post date:** [March 21, 2019, 12:07pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/5 "2019-03-21T12:07:27Z")

</div>

Continuing the discussion from [Dashboard Server communication with Siemens S7 PLC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/3):

Sure. I hope it will help you.

![TCON](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/0/01ca3ab73d68a9ee2e9f13b2b722e8c77bf48d0c.png)

 ![TCON_config](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/8/891159b5bd1f83a3231c37ea4de94dbb49174b6a.png)

---

<div class="post-metadata">

**Author:** ![anon13182996](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon13182996](https://forum.universal-robots.com/u/anon13182996)\
**Post date:** [March 21, 2019, 12:16pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/6 "2019-03-21T12:16:02Z")

</div>

Hi @inu,

I tried this Comand but it doesn’t work. I don’t know why… I gave up on it.  
Now i use the auto start sequence…

But it would be easier with the Dashboard communication because i need the communication for a lot more commands. We use a seperate HMI to operate the robot. The UR Teach-Panel is only for programming in use.

---

<div class="post-metadata">

**Author:** ![anon61596550](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@anon61596550](https://forum.universal-robots.com/u/anon61596550)\
**Post date:** [March 21, 2019, 12:21pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/7 "2019-03-21T12:21:48Z")

</div>

@anon13182996  
Thanks for your answer.  
I have exactly the same configuration. When i execute TCON i’m still getting an error 80A3 - “Attempt being made to re-establish an existing connection” and ‘power on $L’ doesn’t work. Is there anything else i should do to set up the connection?

---

<div class="post-metadata">

**Author:** ![anon13182996](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon13182996](https://forum.universal-robots.com/u/anon13182996)\
**Post date:** [March 21, 2019, 1:27pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/8 "2019-03-21T13:27:00Z")

</div>

![TCOM_com](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/4/4ff01acb2d9935fa0f5ca97c04bade5562aa39b0.png)

If you go online can you see your open user communication? Is it connected?

In the beginning I had similar problems. Then I realized that my PLC has not established a connection.

If there ist no connection delete the TCON and try a new connection with a new ID and a new “PLC\_Connection\_DB”

And check the ID of your TSEND. It has to be the same ID like TCON

You can slso try to use ‘power on $N’ instead of ‘power on $L’

---

<div class="post-metadata">

**Author:** ![inu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/inu/32/732_2.png) [@inu](https://forum.universal-robots.com/u/inu)\
**Post date:** [March 21, 2019, 6:39pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/9 "2019-03-21T18:39:58Z")

</div>

I’m not too familiar with TIA or Siemens hardware in general, but here are the files used to test sending the brake release string. Maybe you can find something in here that will help you out.

[UR\_ver\_zip.zip](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex020/uploads/universal_robots/original/2X/a/ae470c76c3b8fd2bce9800582fce26506b1789cc.zip) (568.9 KB)

Usually I’ve only seen setups that use the PLC to load, play and stop programs since you do have to keep the positioning of the robot/external objects in mind whenever auto starting using any method. But you should still be able to release the brakes through the dashboard.

---

<div class="post-metadata">

**Author:** ![anon13182996](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon13182996](https://forum.universal-robots.com/u/anon13182996)\
**Post date:** [March 22, 2019, 6:24am UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/10 "2019-03-22T06:24:34Z")

</div>

it is not possible for me to open the project. My TIA don’t accept the File: UR\_ver.ap15\_1  
Can you upload the folder again with the archivied programfile?

Thank you

---

<div class="post-metadata">

**Author:** ![anon61596550](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@anon61596550](https://forum.universal-robots.com/u/anon61596550)\
**Post date:** [March 22, 2019, 12:33pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/11 "2019-03-22T12:33:34Z")

</div>

@anon13182996  
Thank you. I had to make new “PLC\_Connection\_DB” with other ID ( it’s strange but with ID=1 it doesn’t work). Now commands ‘power on$R$L’ and ‘power off$L’ work but i’m not able to release the brake too or e.g. show a popup. With SocketTest from PC brake release works fine, but not from PLC. I think the reason is associated with end of line signs like $R$L or $L becouse “power on” works with “$R$L” or " $L" but “power on” must be with “$L” only.

---

<div class="post-metadata">

**Author:** ![anon13182996](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon13182996](https://forum.universal-robots.com/u/anon13182996)\
**Post date:** [March 22, 2019, 1:29pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/12 "2019-03-22T13:29:24Z")

</div>

@anon61596550  
Yes the same problem…  
is it possible for you to receive the UR answer?

I also think that the problem is related to the handling of variable.

If you find some new informations let me know.

---

<div class="post-metadata">

**Author:** ![anon61596550](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@anon61596550](https://forum.universal-robots.com/u/anon61596550)\
**Post date:** [March 22, 2019, 1:39pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/13 "2019-03-22T13:39:25Z")

</div>

Of course I’ll let you know if i get some news. I also want to use the Teach Panel for programming only and have full control over the robot by a dashboard server, so i’ll be working on it.

---

<div class="post-metadata">

**Author:** ![inu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/inu/32/732_2.png) [@inu](https://forum.universal-robots.com/u/inu)\
**Post date:** [March 22, 2019, 3:06pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/14 "2019-03-22T15:06:43Z")

</div>

I edited the upload above, let me know if that works.

These are the specs used on TIA:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/4/49b2b07d79b2bbec9c5a8ed43281c2c68d2f1835.png)

---

<div class="post-metadata">

**Author:** ![anon61596550](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@anon61596550](https://forum.universal-robots.com/u/anon61596550)\
**Post date:** [April 3, 2019, 11:12am UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/15 "2019-04-03T11:12:00Z")

</div>

Finally i found the solution.  
I created TRCV block to see why UR doesn’t work with for example ‘brake release$L’.  
I received this from UR: could not understand: $i¿½$0Ebrake release  
I don’t know why but S7-1200 sends trash at the beginning of the command. I tried to send $Lbrake release$L and it works fine. Now, every command works when you use $L at the beginning and end. $Lplay$L, $Lclose safety popup$L etc.

---

<div class="post-metadata">

**Author:** ![inu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/inu/32/732_2.png) [@inu](https://forum.universal-robots.com/u/inu)\
**Post date:** [April 3, 2019, 2:15pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/16 "2019-04-03T14:15:56Z")

</div>

Great to hear! Thanks for sharing your solution!

---

<div class="post-metadata">

**Author:** ![anon13182996](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon13182996](https://forum.universal-robots.com/u/anon13182996)\
**Post date:** [May 13, 2019, 6:39am UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/17 "2019-05-13T06:39:00Z")

</div>

Hi Lukasz,

thank you for your solution! It works great!

But I still have problems with my TRCV block. Can you send a Screenshot with your configurations?

Regards  
Silas

---

<div class="post-metadata">

**Author:** ![anon61596550](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@anon61596550](https://forum.universal-robots.com/u/anon61596550)\
**Post date:** [May 16, 2019, 10:06am UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/18 "2019-05-16T10:06:16Z")

</div>

I don’t need to use TRCV block so i don’t have it in my program, but the configuration of TRCV is the same as TSEND. In TRCV DATA i had a pointer to DB which consisted of Array[0…100] of Char. LEN parameter of TRCV i made 100. But it didn’t work great, i used it for a while just to know why TSEND didn’t work properly.  
But there is no need to use TRCV block to have a full control over the robot from the PLC. I don’t use TRCV and i control the robot in every situations like violation, emergency stop, collision etc. without teach pendant.  
If you say why do you want to use TRCV maybe i’ll be able to help you.

---

<div class="post-metadata">

**Author:** ![anon13182996](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon13182996](https://forum.universal-robots.com/u/anon13182996)\
**Post date:** [May 23, 2019, 12:45pm UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/19 "2019-05-23T12:45:56Z")

</div>

I know that it is not necessary to have a TRCV. But i think it is a good way to supervise the whole process. With the TRCV it is possible to check if the UR get the right command etc.  
Thank you for your help…

---

<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:** [January 31, 2022, 7:50am UTC](https://forum.universal-robots.com/t/dashboard-server-communication-with-siemens-s7-plc/3835/20 "2022-01-31T07:50:49Z")

</div>

> [@anon61596550](#):
>
> $Lplay$L

Good morning @anon13182996 @anon61596550

I´m Trying to connect my S7 1200 and UR10e.  
But I didnt understand how u guys made it.

I used the TCON like you have posted.

How do i have to setup the TSEND?

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

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

Could u maybe send me some screenshots?

Thank you very much.

Kind regards from Luxembourg
