# Modbus TCP module issues with Discrete Inputs

**URL:** <https://forum.inductiveautomation.com/t/modbus-tcp-module-issues-with-discrete-inputs/74805>\
**Category:** Ignition\
**Created:** [June 9, 2023, 3:01am UTC](https://forum.inductiveautomation.com/t/modbus-tcp-module-issues-with-discrete-inputs/74805 "2023-06-09T03:01:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![franklepkowski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/franklepkowski/32/4808_2.png) [@franklepkowski](https://forum.inductiveautomation.com/u/franklepkowski)\
**Post date:** [June 9, 2023, 3:01am UTC](https://forum.inductiveautomation.com/t/modbus-tcp-module-issues-with-discrete-inputs/74805/1 "2023-06-09T03:01:00Z")

</div>

Hello,

Having issues with bad tag quality for tags coming from modbus tcp module, specifically discrete inputs. I have other holding registers from the same device and those tags are fine and good quality. I have tried changing settings such as disabling span gaps and messed around with the tag group settings. Nothing works. I’m hoping someone else has seen this before and has some advice. If I go to opc quick and do a read for one of the bad tag addresses it says good, if I subscribe in quick client is shows bad.

Thanks,

Frank

---

<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:** [June 9, 2023, 3:07am UTC](https://forum.inductiveautomation.com/t/modbus-tcp-module-issues-with-discrete-inputs/74805/2 "2023-06-09T03:07:08Z")

</div>

Wireshark will reveal all.

---

<div class="post-metadata">

**Author:** ![franklepkowski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/franklepkowski/32/4808_2.png) [@franklepkowski](https://forum.inductiveautomation.com/u/franklepkowski)\
**Post date:** [June 9, 2023, 3:15am UTC](https://forum.inductiveautomation.com/t/modbus-tcp-module-issues-with-discrete-inputs/74805/3 "2023-06-09T03:15:15Z")

</div>

I don’t claim to know the ins and outs of wireshark. What exactly would I be looking for in trace?

Frank

---

<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:** [June 9, 2023, 3:19am UTC](https://forum.inductiveautomation.com/t/modbus-tcp-module-issues-with-discrete-inputs/74805/4 "2023-06-09T03:19:10Z")

</div>

Record a single successful read, then a subscribe that fails. Feel free to post it here with info about what addresses you’re testing, IP addresses, etc…

---

<div class="post-metadata">

**Author:** ![rpavlicek](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rpavlicek/32/55868_2.png) [@rpavlicek](https://forum.inductiveautomation.com/u/rpavlicek)\
**Post date:** [December 20, 2023, 10:46pm UTC](https://forum.inductiveautomation.com/t/modbus-tcp-module-issues-with-discrete-inputs/74805/5 "2023-12-20T22:46:40Z")

</div>

Has there been anything found out on this? This is currently happening to me as well. It's a new project, so I don't know if it worked prior.

---

<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:** [December 20, 2023, 10:47pm UTC](https://forum.inductiveautomation.com/t/modbus-tcp-module-issues-with-discrete-inputs/74805/6 "2023-12-20T22:47:23Z")

</div>

No, but if you want to follow through on the same advice I gave OP you can do so.

---

<div class="post-metadata">

**Author:** ![rpavlicek](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rpavlicek/32/55868_2.png) [@rpavlicek](https://forum.inductiveautomation.com/u/rpavlicek)\
**Post date:** [December 20, 2023, 11:18pm UTC](https://forum.inductiveautomation.com/t/modbus-tcp-module-issues-with-discrete-inputs/74805/7 "2023-12-20T23:18:39Z")

</div>

Easy workaround, I unchecked "Span Gaps" in the modbus device connection setting and they are reading now. I quickly got this answer by searching the forums more. Not sure if there will be any affect on performance. Seems it has not worked for some people, but for mine it did.

---

<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:** [December 20, 2023, 11:21pm UTC](https://forum.inductiveautomation.com/t/modbus-tcp-module-issues-with-discrete-inputs/74805/8 "2023-12-20T23:21:24Z")

</div>

Probably not a work around, just the required solution.

It means you were, e.g. requesting register 1 and 10, and the driver was sending a single request to read all of registers 1 through 10.

Many devices, if nothing is defined at one of those intermediate registers, will balk and fail the entire request, either by responding with an error code or by not responding at all.

You must disable "Span Gaps" in this case, because the device you're talking to does not allow you to read undefined registers.

The alternative is to reorganize all the data you need in that device to be at contiguous addresses.
