# Motor UDT using Interlocks and Faults

**URL:** <https://forum.inductiveautomation.com/t/motor-udt-using-interlocks-and-faults/71331>\
**Category:** Ignition\
**Created:** [March 20, 2023, 7:46pm UTC](https://forum.inductiveautomation.com/t/motor-udt-using-interlocks-and-faults/71331 "2023-03-20T19:46:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timothy\_Runnoe](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Timothy\_Runnoe](https://forum.inductiveautomation.com/u/Timothy_Runnoe)\
**Post date:** [March 20, 2023, 7:46pm UTC](https://forum.inductiveautomation.com/t/motor-udt-using-interlocks-and-faults/71331/1 "2023-03-20T19:46:19Z")

</div>

I am attempting to create a template project that my coworkers can use in the future to increase the speed we create ignition projects in. We exclusively work with Allen-Bradley PLCs and we usually use this as our format for bits in Logix.

 ![Screenshot 2023-03-20 143110](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/4/340ceb8d11ce12a62ec54729546247c2b07b0f4e.png)

My current issue is that I made a Motor UDT that references the majority of these inside of ignition and I am currently working on trying to get the interlocks and faults to work.

We usually have 10 interlocks and faults available to reference but that does not mean we use them for each motor or fan.

 ![Screenshot 2023-03-20 143355](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/8/287f33a0f67bf4f402ab6aebce5a14b46532a493.png)

With my current setup if I drag the F1A Fan tag onto one of these templates I only get the information for Interlocks\_0\_ but if I attempt to use one of the Interlocks folders it does not work as it doesn't refer to itself as a Motor type bit which I use as the Drop Target.

 ![Screenshot 2023-03-20 144449](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/9/d90c6553a9f03261485dbd9f4912dfa468df9361.png)

What's the proper way to go about this? I've attempted making an Interlocks UDT but it gets messy and I've struggled with making it so it adjusts the information properly based on the Interlocks number.

---

<div class="post-metadata">

**Author:** ![richardNZ15](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/richardnz15/32/33373_2.png) [@richardNZ15](https://forum.inductiveautomation.com/u/richardNZ15)\
**Post date:** [March 20, 2023, 8:31pm UTC](https://forum.inductiveautomation.com/t/motor-udt-using-interlocks-and-faults/71331/2 "2023-03-20T20:31:35Z")

</div>

I've done something similar for a device popup where there is an "interlocks" tab, which shows all "created" interlocks, as well as which are active.  
To achieve this, i used a template repeater, which you provide the tag path to the main "interlocks folder" and then an index number 0-10 that you can combine in the template itself to create a full path.  
Which ends up looking something like this:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/f/6f777773dabad84291760400caef291df5610d0f.png)

I would definitely recommend making proper UDTs for objects like Drives etc... so that it maps nicely from PLC tag structure to Ignition popup.  
But that is probably another topic 🙂
