# Connecting UR Cobot over Modbus TCP

**URL:** <https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653>\
**Category:** Ignition\
**Created:** [December 12, 2019, 8:25am UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653 "2019-12-12T08:25:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![stdima98](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@stdima98](https://forum.inductiveautomation.com/u/stdima98)\
**Post date:** [December 12, 2019, 8:25am UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653/1 "2019-12-12T08:25:17Z")

</div>

Hello,

I am working on connecting a UR5 cobot via Modbus TCP and extracting data in Ignition (v.7.9.7) to determine the number of times the robot enters protective stop.

As of right now I’ve managed to connect the cobot to ignition and extract data, but if it’s reconnected (either by restarting the cobot or accidentally disconnecting it by removing the Ethernet cable) it will enter a loop where it’s state fluctuates between Connected/Disconnected. The only solution that I have at the moment is editing the tags in designer (open tag, press ‘ok’), which seems to help reestablish the connection, but that has to be done manually. Is there a way I can avoid that by using an automatic reload tags function after a set time amount (5-10 minutes) or is there another way of solving the root problem?

Thank you,  
Stefan

---

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [February 10, 2023, 7:36pm UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653/2 "2023-02-10T19:36:17Z")

</div>

did you ever figure out a solution for this? we are having the exact same issue and band-aid fix with a UR10E cobot over here

it still sends modbus to the HMI it has connected to it normally , The Cobot is only blocking the data to ignition specifically

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [February 10, 2023, 11:49pm UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653/3 "2023-02-10T23:49:39Z")

</div>

Never played with a UR10E however you could maybe set a periodic script of tag.configure etc, but not actually make any changes, or do disable the tag then reenable

[https://docs.inductiveautomation.com/display/DOC81/system.tag.configure](https://docs.inductiveautomation.com/display/DOC81/system.tag.configure)

---

<div class="post-metadata">

**Author:** ![Caseyf](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@Caseyf](https://forum.inductiveautomation.com/u/Caseyf)\
**Post date:** [February 13, 2023, 9:29pm UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653/4 "2023-02-13T21:29:11Z")

</div>

We've had the same sort of issue with our UR5 with Ignition 7.9, and 8.1. Sometimes it's a problem, sometimes not. Sometimes I can get the problem to go away by simply launching Designer and having it actually start communicating with the Cobot.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [February 13, 2023, 9:44pm UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653/5 "2023-02-13T21:44:54Z")

</div>

This is interesting as I am starting to deal with them more.

Maybe you can monitor the device connection and run something to refresh it when it happens.

---

<div class="post-metadata">

**Author:** ![karolld](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@karolld](https://forum.inductiveautomation.com/u/karolld)\
**Post date:** [February 23, 2023, 9:46pm UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653/6 "2023-02-23T21:46:59Z")

</div>

I'm running into a similar Connected/Disconnected issue but it happens immediately on configuring the device which doesn't allow me to ever view data at all. Has anyone run into this issue and resolved it?

EDIT: I have been able to establish a connection by first adding a tag, then changing its OPC Item Path after being created. This seems to switch the device to a Connected State, even if the original OPC item path was a valid. For example, if I add [UR]HR0, then switch it to [UR]HR1, the state becomes connected. If I change the path back to [UR]HR0, it remains connected. Any edit to the OPC-UA Device Settings or restart of the robot controller puts it back into the Connected/Disconnected Loop. Just simply editing the tag and pressing okay or disabling/enabling the tag doesn't seem to restore communication.

Can any IA driver gurus speculate why this may be happening?

---

<div class="post-metadata">

**Author:** ![karolld](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@karolld](https://forum.inductiveautomation.com/u/karolld)\
**Post date:** [March 17, 2023, 11:46am UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653/7 "2023-03-17T11:46:54Z")

</div>

For anyone reading this in the future, after a call to tech support and trying a few different things we found that editing the Tag Groups OPC Settings Data Mode to "Polled" fixed the issue.

---

<div class="post-metadata">

**Author:** ![Caseyf](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@Caseyf](https://forum.inductiveautomation.com/u/Caseyf)\
**Post date:** [March 20, 2023, 4:32pm UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653/8 "2023-03-20T16:32:53Z")

</div>

That sounds promising. Can you please explain how to get to that point? I'm still very new to Ignition and can't seem to find a place to change Tag Groups OPC Settings Data Mode to "Polled". I'm sure I'm not looking in the right places.  
Thank you

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [March 20, 2023, 6:33pm UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653/9 "2023-03-20T18:33:08Z")

</div>

OPC Settings  
Data Mode This mode dictates how OPC values are obtained. The default mode, **Subscribed** , is preferred because it is more efficient than a read.

**Subscribed**  
All OPC Tags in the Tag Group will be subscribed according to the Tag Group rate. Values will come in asynchronously as they change.

**Polled**  
Tags will not be subscribed, but will instead be synchronously read each time the Tag Group executes. This operation is less efficient, but allows more precise control over when values are obtained. This mode is particularly useful when collecting data over a slow or expensive connection for display. When combined with the **one-shot** execution mode above, and a static Tag tied to a momentary button, it's easy to create a manual refresh button on a screen that pulls data on-demand.

[https://docs.inductiveautomation.com/display/DOC81/Tag+Groups](https://docs.inductiveautomation.com/display/DOC81/Tag+Groups)

---

<div class="post-metadata">

**Author:** ![Caseyf](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@Caseyf](https://forum.inductiveautomation.com/u/Caseyf)\
**Post date:** [March 21, 2023, 3:31pm UTC](https://forum.inductiveautomation.com/t/connecting-ur-cobot-over-modbus-tcp/30653/10 "2023-03-21T15:31:22Z")

</div>

That worked, thank you
