# Tag Historical Deadband binding

**URL:** <https://forum.inductiveautomation.com/t/tag-historical-deadband-binding/41512>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [December 14, 2020, 10:00pm UTC](https://forum.inductiveautomation.com/t/tag-historical-deadband-binding/41512 "2020-12-14T22:00:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [December 14, 2020, 10:00pm UTC](https://forum.inductiveautomation.com/t/tag-historical-deadband-binding/41512/1 "2020-12-14T22:00:14Z")

</div>

Is there any way to bind the tag historical deadband setting for a UDT Tag to the value of another UDT Tag?

We have UDTs that have EUMin/EUMax on them for configuration and based on the EUMax we would like to change the HistoricalDeadband appropriately. IE if the EUMax for this UDT tag is set for 40000 we would automatically set the HistoricalDeadband to 5, but if the EUMax is 0.5 we would set it to 0.001. I can get it working just fine as a UDT parameter, but I’d like it to be a bit more behind the scenes and automatic if at all possible.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [December 15, 2020, 4:53am UTC](https://forum.inductiveautomation.com/t/tag-historical-deadband-binding/41512/2 "2020-12-15T04:53:14Z")

</div>

Create a parameter in your UDT and bind it to your deadband.  
After it create expression tag called deadband and formulate your deadband value as you described  
Now in deadband tag add value change script and update your parameter.  
You call also write directly to deadband value in 8.0 with python.  
For preserve memory I also use parameter for my alarm setpoint instead of using tag.

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [December 15, 2020, 4:52pm UTC](https://forum.inductiveautomation.com/t/tag-historical-deadband-binding/41512/3 "2020-12-15T16:52:16Z")

</div>

I thought about the tag change script… I was hoping for a direct binding.

I’ll try it out and let you know what I find.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [December 15, 2020, 5:04pm UTC](https://forum.inductiveautomation.com/t/tag-historical-deadband-binding/41512/4 "2020-12-15T17:04:23Z")

</div>

My best solution is to hit directly to that property in python with system.tag.config but believe me it’s tricky and hard but possible

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [December 15, 2020, 5:54pm UTC](https://forum.inductiveautomation.com/t/tag-historical-deadband-binding/41512/5 "2020-12-15T17:54:55Z")

</div>

Thanks @nader.chinichian. Using system.tag.getConfiguration and then system.tag.configure worked like a champ.

It would be nice though if the various settings were bindable to tags in the UDT.

Thanks again for the help!
