# Simulating Responses for Multiple Modbus Devices?

**URL:** <https://forum.inductiveautomation.com/t/simulating-responses-for-multiple-modbus-devices/102987>\
**Category:** Ignition\
**Created:** [February 27, 2025, 4:06pm UTC](https://forum.inductiveautomation.com/t/simulating-responses-for-multiple-modbus-devices/102987 "2025-02-27T16:06:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yangorang](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@Yangorang](https://forum.inductiveautomation.com/u/Yangorang)\
**Post date:** [February 27, 2025, 4:06pm UTC](https://forum.inductiveautomation.com/t/simulating-responses-for-multiple-modbus-devices/102987/1 "2025-02-27T16:06:12Z")

</div>

So I have a bunch of devices that communicate via Modbus TCP gateways. So every tag would be linked to something like "[{parent\_device}]{protocol\_address}.HR###" or whatever.

Is there some quick way of moving these devices in the project between polling actual devices vs some sort of simulated device? Currently we have been configuring some sort of local modbus simulator to respond to polls, but when the number of devices increases this becomes a problem with only one modbus simulator responding to all.

---

<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:** [February 27, 2025, 4:08pm UTC](https://forum.inductiveautomation.com/t/simulating-responses-for-multiple-modbus-devices/102987/2 "2025-02-27T16:08:45Z")

</div>

> [@Yangorang](#):
>
> but when the number of devices increases this becomes a problem with only one modbus simulator responding to all.

Really? How many devices are you talking about?

---

<div class="post-metadata">

**Author:** ![Yangorang](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@Yangorang](https://forum.inductiveautomation.com/u/Yangorang)\
**Post date:** [February 27, 2025, 4:21pm UTC](https://forum.inductiveautomation.com/t/simulating-responses-for-multiple-modbus-devices/102987/3 "2025-02-27T16:21:15Z")

</div>

Something like 35000 tags across several thousand devices.  
The problem is if they're all sharing one simulator and one set of registers, when you toggle one bit it's total chaos. We work around this to some extent by testing piece-by-piece with multiple modbus simulators using multiple ports and SlaveIDs. But really with that large of an integration test it is a bit of a hassle and we're looking for a better way.

---

<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:** [February 27, 2025, 4:38pm UTC](https://forum.inductiveautomation.com/t/simulating-responses-for-multiple-modbus-devices/102987/4 "2025-02-27T16:38:46Z")

</div>

> [@Yangorang](#):
>
> We work around this to some extent by testing piece-by-piece with modbus multiple simulators using multiple ports and SlaveIDs.

I don't know, this would have been my suggestion if you weren't already doing it. Ignition doesn't have any kind of "simulation mode" for drivers or anything like that.

Maybe somebody else has an idea.

---

<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:** [February 27, 2025, 5:09pm UTC](https://forum.inductiveautomation.com/t/simulating-responses-for-multiple-modbus-devices/102987/5 "2025-02-27T17:09:46Z")

</div>

You probably want to try my alternate Modbus driver, and use multiple nodes in multiple instances, with each instance listening on a different port. You can have 255 nodes per instance, and every node/instance combination will have its own live storage. For efficiency, you should configure each node to only cover a limited range of addresses.

> [@Automation Professionals' Advanced Modbus Driver](https://forum.inductiveautomation.com/t/automation-professionals-advanced-modbus-driver/41312):
>
> Automation Professionals is pleased to announce the first beta for its Advanced Modbus Driver, for Ignition version 7.9. Key features: Server mode, emulating one or more slave [devices](https://www.automation-pros.com/modbus/UserManual.pdf), using any of the three typical connection types, including simultaneous connections of multiple types. Client mode, incorporating all three connection modes in one driver. Support for Modbus Function Codes 20 and 21, File Records. Configure protocol tweaks for troublesome devices per slave unit, enabling suppor…

Consider running an extra Ignition gateway (in trial mode for dev, perhaps) just for such emulation tasks. Give the extra gateway multiple IP addresses if necessary.
