# Tag Historian not logging zero

**URL:** <https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972>\
**Category:** Ignition\
**Created:** [March 26, 2021, 6:16pm UTC](https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972 "2021-03-26T18:16:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [March 26, 2021, 6:16pm UTC](https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972/1 "2021-03-26T18:16:15Z")

</div>

I don’t know what I did wrong, or what I don’t understand, but my tag historian is not logging any 0. The tag is the speed in FPM of a rollformer. Is it a normal behavior?

Tag Setup  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/e/1e33a9fc605c4f5aa7882350723d03ddcb3f14e1.png)

Data in Sql DB  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/9/4920b275b585cd325ecece9f0094fcecbaaa9725.png)

Here the history setup I have  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/e/7e86de504c5cc306769922b397c4323b0756f7a8.png)

---

<div class="post-metadata">

**Author:** ![bpreston](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bpreston](https://forum.inductiveautomation.com/u/bpreston)\
**Post date:** [March 26, 2021, 6:24pm UTC](https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972/2 "2021-03-26T18:24:58Z")

</div>

Maybe I’m missing something but looks like you have it set up to do a minimum sample of 1 a second and the entries that your showing are about a second apart and it is showing variation in your data. Was it actually 0 at any of those points or is it just speeding up and slowing down but not sitting at 0?

---

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [March 26, 2021, 6:26pm UTC](https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972/3 "2021-03-26T18:26:43Z")

</div>

Last value in database is 3 hours old

---

<div class="post-metadata">

**Author:** ![bpreston](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bpreston](https://forum.inductiveautomation.com/u/bpreston)\
**Post date:** [March 26, 2021, 6:37pm UTC](https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972/4 "2021-03-26T18:37:46Z")

</div>

I’m assuming your actual tag value is 0 and your tag quality is good? I would expect it to log 0 if it went to 0 from the values you showed but I will admit in the past I have had the deadband affect values in ways I didn’t expect it to. I wouldn’t think that should be the case here though with as big of a jump as it would have to make to go from the last point down to 0.

---

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [March 26, 2021, 6:44pm UTC](https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972/5 "2021-03-26T18:44:00Z")

</div>

Yes, tag quality is good, and equipment is done for today, so speed is 0. I will do some test with the deadband on Monday

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [March 26, 2021, 7:35pm UTC](https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972/6 "2021-03-26T19:35:24Z")

</div>

Your max time between samples should be 1 second, not the min time.  
A value of 0 with an old value of 0 will not trigger a deadband log event.

---

<div class="post-metadata">

**Author:** ![rberghammer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rberghammer/32/7150_2.png) [@rberghammer](https://forum.inductiveautomation.com/u/rberghammer)\
**Post date:** [March 26, 2021, 8:32pm UTC](https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972/7 "2021-03-26T20:32:58Z")

</div>

Try changing your Deadband Style to Discrete. I typically have to do this with anything that goes from zero to non-zero like motor speed or pump flow rates. I only use Analog Deadband Style for things like temperature or tank level which are (hopefully) always non-zero.

---

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [March 26, 2021, 10:00pm UTC](https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972/8 "2021-03-26T22:00:07Z")

</div>

Moving to discrete looks promising, but I’ll confirm Monday

---

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [March 26, 2021, 10:05pm UTC](https://forum.inductiveautomation.com/t/tag-historian-not-logging-zero/44972/9 "2021-03-26T22:05:18Z")

</div>

Old value is over 100, not 0
