# PLC A timeout affecting PLC B scripts and Transaction Groups

**URL:** <https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499>\
**Category:** Ignition\
**Tags:** scripting, ignition81\
**Created:** [April 12, 2021, 4:44pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499 "2021-04-12T16:44:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![karnick](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@karnick](https://forum.inductiveautomation.com/u/karnick)\
**Post date:** [April 12, 2021, 4:44pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499/1 "2021-04-12T16:44:22Z")

</div>

I am having an issue where PLC A going offline is causing my writes to PLC B to wait until the timeout period has elapsed.

I created a project that communicates with two PLCs. The project primarily consists of some timed gateway scripts that write data to tags, as well as transaction groups logging data to a database based on a PLC trigger.

I noticed that if PLC A is offline, PLC B’s scripts do not execute and neither does the transaction group until the operation times out. The timeout is defined by the Request Timeout in the OPC-UA Client Connection Settings. The scripts are Timed Gateway scripts which use system.tag.write(). So, when the write fails on timed script for A, the writes for script B do not occur. The writes are in two totally separate scripts and threads.

This behavior doesn’t really make sense to me. I do not see why a tag write script to PLC A failing (in a dedicated thread) should be affecting a write to PLC B (in another separate dedicated thread) as well as my transaction groups not writing back the Success confirmation signal to PLC B.

The fix has been to check for tag quality before writing to avoid sitting in purgatory as we wait for the timeout to expire, but this seems like a band-aid.

Am I missing a config setting somewhere?

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [April 12, 2021, 4:48pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499/2 "2021-04-12T16:48:26Z")

</div>

If you're on an earlier version, consider upgrading to 8.1.3 (or later) which include this fix:

> **Platform - Tags: Data Model:** Use separate batches for writes to different OPC servers to prevent a slow-responding server from blocking an unrelated write to a fast-responding server.  
> (From [Ignition Release Notes for Version 8.1.3 | Inductive Automation](https://inductiveautomation.com/downloads/releasenotes/8.1.3))

---

<div class="post-metadata">

**Author:** ![BRANDAN\_MCCARTAN](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@BRANDAN\_MCCARTAN](https://forum.inductiveautomation.com/u/BRANDAN_MCCARTAN)\
**Post date:** [August 26, 2022, 12:46pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499/3 "2022-08-26T12:46:22Z")

</div>

I am having the same issue even after updating. Is there a way to change the timeout?  
On the OPC Clients I am able to change the ‘Request Timeout’ to 5000 and that allows all of the Transactions to not be delayed. My Allen Bradley PLC are on OPC UA using the Logix Driver. If I unplug 1 of 8 PLC the ‘Last Duration’ goes to 30 seconds holding up communication to the other 7.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 26, 2022, 1:49pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499/4 "2022-08-26T13:49:12Z")

</div>

Make separate tag groups for each PLC.

---

<div class="post-metadata">

**Author:** ![BRANDAN\_MCCARTAN](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@BRANDAN\_MCCARTAN](https://forum.inductiveautomation.com/u/BRANDAN_MCCARTAN)\
**Post date:** [August 26, 2022, 2:18pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499/5 "2022-08-26T14:18:19Z")

</div>

Image of Transactions  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/4/147a777fb43e2e2b79178e31f3512102e237b7a6.png)  
Is this what you mean?

Image of Tags  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/6/76d7da355ebcb90643da5855c02fb11914733ab0.png)

If I can’t get this to work I feel like I need to go down another route.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/2/02cbbedd0a9af9c06be8791969fc3ac69865ecd4.jpeg)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 26, 2022, 2:20pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499/6 "2022-08-26T14:20:35Z")

</div>

What version of Ignition are you using?

---

<div class="post-metadata">

**Author:** ![BRANDAN\_MCCARTAN](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@BRANDAN\_MCCARTAN](https://forum.inductiveautomation.com/u/BRANDAN_MCCARTAN)\
**Post date:** [August 26, 2022, 2:22pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499/7 "2022-08-26T14:22:04Z")

</div>

Yesterday I went through the process of updating and updating modules. Thanks.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/7/f7df450088ad96e46b77a8f418410499db728798.jpeg)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 26, 2022, 2:31pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499/8 "2022-08-26T14:31:53Z")

</div>

Something must have gone wrong that process, because the current version of Ignition is 8.1.20.

I’d try upgrading, there was a change in ~8.1.15 related to delays when a device wasn’t connected.

If that doesn’t work, or you can’t upgrade, consider using direct OPC items in the transaction groups, instead of OPC tags.

---

<div class="post-metadata">

**Author:** ![BRANDAN\_MCCARTAN](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@BRANDAN\_MCCARTAN](https://forum.inductiveautomation.com/u/BRANDAN_MCCARTAN)\
**Post date:** [August 26, 2022, 3:31pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499/9 "2022-08-26T15:31:10Z")

</div>

Thank you very much. I was able to update to 8.1.20. Everything works great. For my own info how do you create an OPC item instead of the OPC tag? Thanks again.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 26, 2022, 3:43pm UTC](https://forum.inductiveautomation.com/t/plc-a-timeout-affecting-plc-b-scripts-and-transaction-groups/45499/10 "2022-08-26T15:43:42Z")

</div>

[https://docs.inductiveautomation.com/display/DOC81/Item+Types#ItemTypes-CreatingaNewItem](https://docs.inductiveautomation.com/display/DOC81/Item+Types#ItemTypes-CreatingaNewItem)

I assumed from your screenshots you are using tag reference items. if that’s not the case then you can ignore this suggestion.
