# Historical Deadband - Percent

**URL:** <https://forum.inductiveautomation.com/t/historical-deadband-percent/71793>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [March 29, 2023, 6:34pm UTC](https://forum.inductiveautomation.com/t/historical-deadband-percent/71793 "2023-03-29T18:34:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ISEMAREN\_AAG](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@ISEMAREN\_AAG](https://forum.inductiveautomation.com/u/ISEMAREN_AAG)\
**Post date:** [March 29, 2023, 6:34pm UTC](https://forum.inductiveautomation.com/t/historical-deadband-percent/71793/1 "2023-03-29T18:34:37Z")

</div>

Hello.  
How exactly does the **historical deadband** work when the deadband mode is _ **percent** _?  
If historical deadband is 1, does it mean that the tag will register when there has been a 1% change from its previous value?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/d/2d822b1aa1dce961e792c92a1f9d4faf1a0900a1.png)

Best Regards.

---

<div class="post-metadata">

**Author:** ![andrew.budaiev](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.budaiev/32/72921_2.png) [@andrew.budaiev](https://forum.inductiveautomation.com/u/andrew.budaiev)\
**Post date:** [March 29, 2023, 11:49pm UTC](https://forum.inductiveautomation.com/t/historical-deadband-percent/71793/2 "2023-03-29T23:49:59Z")

</div>

Yes.

> **[Configuring Tag History Video at Inductive University](https://www.inductiveuniversity.com/videos/configuring-tag-history/8.0/8.1)**
>
> Tag History is a built-in way of saving historical data on a tag to a database. Learn how to configure tag history on a tag from the Tag Editor.

Edit: Well actually no, UI videos got me confused, listen to @nminchin.

Edit 2: I've seen two UI videos talking about "the previous value", even though it doesn't make sense. The information in the videos is obviously wrong.

---

<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:** [March 30, 2023, 12:16am UTC](https://forum.inductiveautomation.com/t/historical-deadband-percent/71793/3 "2023-03-30T00:16:00Z")

</div>

The deadband % change is based on the Engineering Range of the tag.

If your engineering range is 0-200 and your deadband is percent and set to 1%, then if the tag value changes by more than or equal to 1% of 200 (2), then the value will be passed to the historian to be assessed for recording. Whether it will actually be recorded or not depends on your "Deadband Style" setting. If this is set to "Discrete", then it will be logged. If it's set to "Analogue", then it'll use the analogue algorithm to determine whether or not to store the point or not.

The same thing applies to the tag's numeric deadband as well; this uses the % of the engineering range to determine whether or not to update the tag's value.

You can demonstrate this with a memory tag and an expression tag, where the memory tag acts as the "source" tag, and the expression tag acts as for example a tag bound to an opc value:

```auto
{
  "name": "Deadbands",
  "tagType": "Folder",
  "tags": [
    {
      "valueSource": "expr",
      "expression": "{[.]Source}",
      "name": "Tag",
      "deadband": 10.0,
      "deadbandMode": "Percent",
      "tagType": "AtomicTag"
    },
    {
      "valueSource": "memory",
      "name": "Source",
      "value": 71,
      "tagType": "AtomicTag"
    }
  ]
}

```

The "Tag" is set to 10% deadband and it's value is tied to the "Source" tag. If you change the "Source" tag value, you'll see how the "Tag" value behaves.

This is from the tag alarm properties section in the user manual, but applies to history and numeric value as well:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/b/fbeb5ccf929d728273b8d6112df8e4456bd7a00b.png)

---

<div class="post-metadata">

**Author:** ![ISEMAREN\_AAG](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@ISEMAREN\_AAG](https://forum.inductiveautomation.com/u/ISEMAREN_AAG)\
**Post date:** [March 30, 2023, 8:47am UTC](https://forum.inductiveautomation.com/t/historical-deadband-percent/71793/4 "2023-03-30T08:47:09Z")

</div>

@andrew.budaiev and @nminchin, thanks for the explanation.

So it's not possible to record a value **when it changed a certain percentage from its previous value**?  
For example, I want to log a value when it changes 1%:

- Historical DeadBand: 1%
- Previous Value: 5
- Current Value: 5.06
- Register?: ((5.06 - 5) / 5) x 100 = 1.2%.  
1.2% \> 1% -\> Yes

Best Regards.

---

<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:** [March 30, 2023, 11:50am UTC](https://forum.inductiveautomation.com/t/historical-deadband-percent/71793/5 "2023-03-30T11:50:19Z")

</div>

No, I don't believe you can have a non-linear deadband like that, although it does sound kind of useful for high ranging values. It sounds like more load for the tag system though, constantly recalculating the deadbands of every tag. For one of our systems with 600k+ tags, that wouldn't be a good thing!

---

<div class="post-metadata">

**Author:** ![ISEMAREN\_AAG](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@ISEMAREN\_AAG](https://forum.inductiveautomation.com/u/ISEMAREN_AAG)\
**Post date:** [March 30, 2023, 1:04pm UTC](https://forum.inductiveautomation.com/t/historical-deadband-percent/71793/6 "2023-03-30T13:04:06Z")

</div>

Ok.  
Thanks.
