# URGENT Can my logic make configuration changes and connect to 9 devices simultaneously in the gateway

**URL:** <https://forum.inductiveautomation.com/t/urgent-can-my-logic-make-configuration-changes-and-connect-to-9-devices-simultaneously-in-the-gateway/33596>\
**Category:** Ignition\
**Created:** [April 1, 2020, 6:11pm UTC](https://forum.inductiveautomation.com/t/urgent-can-my-logic-make-configuration-changes-and-connect-to-9-devices-simultaneously-in-the-gateway/33596 "2020-04-01T18:11:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![archana.kachru](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@archana.kachru](https://forum.inductiveautomation.com/u/archana.kachru)\
**Post date:** [April 1, 2020, 6:11pm UTC](https://forum.inductiveautomation.com/t/urgent-can-my-logic-make-configuration-changes-and-connect-to-9-devices-simultaneously-in-the-gateway/33596/1 "2020-04-01T18:11:41Z")

</div>

i am on ignition version 7.9.4 and have created a UDT and 200 instances based on the UDT.  
In the gateway, i have created a device with blank IP address and enabled it.  
An instance of the UDT will wake up at 8 am every morning and will set the ip address using t system.device.setDeviceHostname command into the device and try to connect to that device.  
Like this, there are 9 devices to which , at 8 am every morning , the instances will simultaneously make the IP address change on the gateway level.

the IP addresses on the 9 devices will dynamically change every 2 minutes and it will try to connect to a new device every 2 minutes.

when i tested this, ignition crashed.

my question is , does ignition allow the user to make 9 configuration changes simultaneously at the gateway level to the devices it is connecting. or should i be doing this 1 at a time.

any help is appreciated.

---

<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:** [April 1, 2020, 10:39pm UTC](https://forum.inductiveautomation.com/t/urgent-can-my-logic-make-configuration-changes-and-connect-to-9-devices-simultaneously-in-the-gateway/33596/2 "2020-04-01T22:39:10Z")

</div>

What device, what driver?

FYI I stress tested in a sand box before an upgrade and created multiple (can’t remember now, but maybe up to 100?) connections to a single device, and then scripted over 20K tags to said device.

It ran for a week with 50 clients open without crashing.

8 Core CPU, 32GB RAM.

---

<div class="post-metadata">

**Author:** ![archana.kachru](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@archana.kachru](https://forum.inductiveautomation.com/u/archana.kachru)\
**Post date:** [April 1, 2020, 10:42pm UTC](https://forum.inductiveautomation.com/t/urgent-can-my-logic-make-configuration-changes-and-connect-to-9-devices-simultaneously-in-the-gateway/33596/3 "2020-04-01T22:42:52Z")

</div>

I have 9 devices with blank ip address  
My instances wake up all at the same time and write an IP address into each of these devices.  
It’s a Modbus TCP connection and i am changing the IP address dynamically for 9 devices at a time and trying to connect to them all at the same time.

---

<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:** [April 1, 2020, 10:47pm UTC](https://forum.inductiveautomation.com/t/urgent-can-my-logic-make-configuration-changes-and-connect-to-9-devices-simultaneously-in-the-gateway/33596/4 "2020-04-01T22:47:00Z")

</div>

Well I don’t have more than 1 device powered up on my test rig to run tests for you, why don’t you try a delay between each device IP write?

Note depending on the hardware, some ModBusTCP devices can only have 1 connection established to them so again… what device?

---

<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:** [April 1, 2020, 10:58pm UTC](https://forum.inductiveautomation.com/t/urgent-can-my-logic-make-configuration-changes-and-connect-to-9-devices-simultaneously-in-the-gateway/33596/5 "2020-04-01T22:58:15Z")

</div>

Can you upload the gateway logs that show the errors/crash happening?

---

<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:** [April 1, 2020, 11:43pm UTC](https://forum.inductiveautomation.com/t/urgent-can-my-logic-make-configuration-changes-and-connect-to-9-devices-simultaneously-in-the-gateway/33596/6 "2020-04-01T23:43:06Z")

</div>

Please explain why you need to do this, too, please. Why do you need to re-use device instances instead of just creating all that you need, and simply enabling them when appropriate?

---

<div class="post-metadata">

**Author:** ![archana.kachru](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@archana.kachru](https://forum.inductiveautomation.com/u/archana.kachru)\
**Post date:** [April 1, 2020, 11:54pm UTC](https://forum.inductiveautomation.com/t/urgent-can-my-logic-make-configuration-changes-and-connect-to-9-devices-simultaneously-in-the-gateway/33596/7 "2020-04-01T23:54:33Z")

</div>

i cannot upload logs unfortunately.

the devices are all on 9 different subnets. instances of each subnet wake up simultaneously, set their ip address on the respoective device and try to connect to the plc via modbus tcp.  
we dont want to keep 200+ instances connected to the gateway.so, logic allows them to wake 9 instances in 9 subnets at a time and try to connect to the plc.

---

<div class="post-metadata">

**Author:** ![archana.kachru](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@archana.kachru](https://forum.inductiveautomation.com/u/archana.kachru)\
**Post date:** [April 1, 2020, 11:57pm UTC](https://forum.inductiveautomation.com/t/urgent-can-my-logic-make-configuration-changes-and-connect-to-9-devices-simultaneously-in-the-gateway/33596/8 "2020-04-01T23:57:12Z")

</div>

> [@pturmel](#):
>
> Why do you need to re-use device instances instead of just creating all that you need, and simply enabling them when appropriate?

our previous experience suggested that during fail over, the devices cannot be enabled by the redundant partner. the device enable/disable can be done only by master. so we opted for sethostname to be modified.  
it seems to be working well when we sequentially connect to these devices.  
it only fails when they wake up simultaneously and start changing their device ip addresses.
