# Adding a UDT in Ignition

**URL:** <https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495>\
**Category:** Ignition\
**Created:** [July 15, 2025, 4:22pm UTC](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495 "2025-07-15T16:22:07Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [July 16, 2025, 6:16pm UTC](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495/21 "2025-07-16T18:16:27Z")

</div>

Heres an example of one of mine for Rockwell. Onsite and little time, so sorry for the crappy picture quality. First pics show UDT structure...last pics show tag and resultant tag path formation.

[PLC\_Process] is the Device ID declared in the Gateway. I assume you've added a device for siemens in your gateway.

 ![20250716_141235](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/b/1b5e0f878ef8dd8f31db056356382e206cc477a8.jpeg)  
 ![20250716_141250](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/4/b4cf854ef19b9ee014bee322f79bd6f6c59d9ec7.jpeg)  
 ![20250716_141323](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/6/869c61f448f69bdf005ccf64d09503cf6cdedb02.jpeg)  
 ![20250716_141419](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/f/3fdda9c73f4037879aeb946bd67ce8ddb44a5dc0.jpeg)  
 ![20250716_141439](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/e/9e507cfd5b511df091e364c9dcd160097f47aba5.jpeg)

---

<div class="post-metadata">

**Author:** ![bessahi](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bessahi](https://forum.inductiveautomation.com/u/bessahi)\
**Post date:** [July 16, 2025, 6:42pm UTC](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495/22 "2025-07-16T18:42:38Z")

</div>

Here you go :

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/e/9edcb940f9aa71a2ac1ed2e4076b881260bb4fa2.png)  
And this is the OPV Browser view :  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/3/e3a98bf4df86f5a6d0d1bd93cf1ee05927943380.png)

---

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [July 16, 2025, 7:32pm UTC](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495/23 "2025-07-16T19:32:04Z")

</div>

So for your parameter, for the tag you'll want everything up to ".....Cv-001" including the quotes.

In your UDT for the start pb member, youll want {DeviceName}."cmd"."bStartPB".

Then, the path will be formed to include the value in your Parameter DeviceName + the remaining part from the UDT definition, such that it matches the one tag you show.

Im not sure if the "" quotes will resolve correctly, so you might have to play around with that if they are stripped out on forming the final path.

---

<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:** [July 16, 2025, 7:37pm UTC](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495/24 "2025-07-16T19:37:14Z")

</div>

Split this topic on July 16, 2025, 7:37pm UTC

2 posts were split to a new topic: [Modbus Byte Swap](https://forum.inductiveautomation.com/t/modbus-byte-swap/108575)

---

<div class="post-metadata">

**Author:** ![bessahi](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bessahi](https://forum.inductiveautomation.com/u/bessahi)\
**Post date:** [July 16, 2025, 11:12pm UTC](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495/25 "2025-07-16T23:12:23Z")

</div>

Thank you so much for the time, it did work

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 17, 2025, 12:44am UTC](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495/26 "2025-07-17T00:44:23Z")

</div>

fwiw, if you're wanting to pass in the OPC namespace ("nsu=...") then I would definitely separate this out and have this as a separate parameter to the device name. Otherwise it will be a pain to create these.

E.g.  
Parameters:

- PLCOpcServer [string] e.g. `PLC_1`
- OpcNamespace [string] e.g. `nsu=http://www.siemens.com/simatic-s7-opcua` - you could also just statically define this in the tags since this won't practically ever change
- OpcIdentifierPrefix e.g. `"opc-ua-data".` - you could also just statically define this in the tags since this won't practically ever change
- PlcInstanceName [string] e.g. `CV-001`

Then your tag's props would be set to:

- Opc Server:  
`{PlcOpcServer}`
- OpcItemPath:  
`{OpcNamespace};s={OpcIdentifierPrefix}"{PlcInstanceName}"."cmd"."bStartPB"`  
or  
`nsu=http://www.siemens.com/simatic-s7-opcua;s="opc-ua-data"."{PlcInstanceName}"."cmd"."bStartPB"`

Doing this you only have to worry about the PlcInstanceName and the PlcOpcServer. You can bake the `OpcIdentifierPrefix` and `OpcNamespace` values into the default parameter value and not have to change that (for siemens plcs)

**Important note RE Siemens OPC-UA:**  
The siemens PLC OPC-UA servers only support a limited number of subscribed tags, it depends on the PLC as to how many are supported, but typically 4000 for S7 \<=1516 or 24000 for \>=1517 processors _with at least v3 firmware_. Older FW is drastically lower.

I would recommend either waiting until 8.3 comes out with the new Siemens driver that talks direct to the PLCs with symbolic addressing, without onboard OPC-UA, or you use the Siemens OPC-UA server ([Simatic Net SoftNet-IE Lean](https://mall.industry.siemens.com/mall/en/WW/Catalog/Product/6GK17041LW180AA0)) which similarly exposes symbolic addresses.

The alternative (reading the whole UDT instance structure and then using derived tags to reference each tag within it) is a B-grade horror show.

---

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [July 17, 2025, 2:20am UTC](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495/27 "2025-07-17T02:20:04Z")

</div>

Just curious, whats the advantage of creating a separate namespace parameter, but then baking it in as a constant? Granted, I'm nearly 100% rockwell, so ns=1 is pretty concatenated. Its just easy to copy/paste the full OPC path or even use the multi instance wizard. I'm not understanding the advantage. Especially since UDTs are in my case married to their tag provider which is married to a single PLC.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 17, 2025, 3:36am UTC](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495/28 "2025-07-17T03:36:00Z")

</div>

There are a few advantages:

- it becomes (somewhat) more portable across different PLCs, sort of..
- separating the namespace from the udt instance name is the biggest advantage as it allows you to display this in the UI for easier diagnostics. E.g. an engineer can easily see that the Ignition UDT is tied to the PLC's "AIT101" UDT instance, and not have to decipher it from `nsu=http://www.siemens.com/simatic-s7-opcua;s="asdas das dasd as"."AIT101"`
- it's also simpler to read in the Designer as well, particularly for something like that horrible Siemens nsu, it's so long that the udt instance name can get cut off if you don't have an 8K screen and the dialogue isn't as wide (slight exaggeration 🤭)
- it aids in bulk creation via Excel, as you don't have to worry about combining parts together and you can just have columns for the namespace and the PLC UDT instance name etc.

In general however, I do actually fix the namespace in my Ignition UDTs in the opcitempath, as in reality, another plc type will inevitably require a new set of UDTs. So I would just set it to `ns=1;s=[{PLCName}]{PLCInstanceName}.cmd.startCmd`

I edited my previous reply to include more notes on this

> [@robertm](#):
>
> use the multi instance wizard

I haven't used this in a long time since most of my UDTs contain nested UDTs that have default Parameter values defined pointing to the parent's Parameter values, and the wizard would override these and set them to blank strings, at least they did in v7.8.. I also have my own bulk tag creation tools to use with excel

---

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [July 17, 2025, 10:44am UTC](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495/29 "2025-07-17T10:44:43Z")

</div>

If you note on my examples, i use a device ID for that purpose of diagnostics, and my tag name UDT instence matches the tag name in the PLC. While my IDs follow P&ID nomenclature, my customers prefer real descriptive tag names in the PLC instead of device names. So, I accomodate that with the extra ID parameter that binds to all alarms, mouseovers, popup titles, etc.

Thanks for your insight...always learning.

[Previous page](https://forum.inductiveautomation.com/t/adding-a-udt-in-ignition/108495.md?page=1)
