# Setting Modbus TCP Unit ID in Device Configuration

**URL:** <https://forum.inductiveautomation.com/t/setting-modbus-tcp-unit-id-in-device-configuration/25507>\
**Category:** Ignition\
**Created:** [June 3, 2019, 3:47pm UTC](https://forum.inductiveautomation.com/t/setting-modbus-tcp-unit-id-in-device-configuration/25507 "2019-06-03T15:47:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abishur](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/abishur/32/9096_2.png) [@abishur](https://forum.inductiveautomation.com/u/abishur)\
**Post date:** [June 3, 2019, 3:47pm UTC](https://forum.inductiveautomation.com/t/setting-modbus-tcp-unit-id-in-device-configuration/25507/1 "2019-06-03T15:47:08Z")

</div>

I’m using Ignition 7.9.9 on Windows Server 2016.

I’ve set up my Modbus device and can poll data from it by setting the Tag’s OPC Item Path like so:

```auto
[OPC Device Name]243.HR1

```

Which would poll register 40001 of the device with unit ID 243.

My question is, is there a way to set the unit ID when you configure the device’s settings in the gateway? That way instead of having to manually specify the Unit ID for each tag I could just do:

```auto
[OPC Device Name]HR1

```

---

<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 3, 2019, 3:52pm UTC](https://forum.inductiveautomation.com/t/setting-modbus-tcp-unit-id-in-device-configuration/25507/2 "2019-06-03T15:52:10Z")

</div>

No, it’s part of the address. A single driver connection can address tags from more than one unit/slave id.

---

<div class="post-metadata">

**Author:** ![abishur](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/abishur/32/9096_2.png) [@abishur](https://forum.inductiveautomation.com/u/abishur)\
**Post date:** [June 3, 2019, 4:39pm UTC](https://forum.inductiveautomation.com/t/setting-modbus-tcp-unit-id-in-device-configuration/25507/3 "2019-06-03T16:39:10Z")

</div>

Thanks Kevin, that’s what I figured, but I wanted to make sure.
