# Micro 820 Daily Totals

**URL:** <https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304>\
**Category:** Ignition\
**Created:** [November 9, 2022, 4:06pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304 "2022-11-09T16:06:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaleb.s](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kaleb.s](https://forum.inductiveautomation.com/u/kaleb.s)\
**Post date:** [November 9, 2022, 4:06pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/1 "2022-11-09T16:06:32Z")

</div>

Having a weird issue as of yesterday with two of my micro 820's. The daily waterflow totals are no longer updating and the reset didnt occur for the 24hr tag either. No changes were made to either of the micros. All other tags function properly....current water flow, total water flow. Its only the daily totals and daily reset. Anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [November 9, 2022, 7:10pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/2 "2022-11-09T19:10:59Z")

</div>

How do you do the reset the tag?

Do you see quality issues on the tags not working?

How are the 820s talking to Ignition?

---

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [November 9, 2022, 7:20pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/3 "2022-11-09T19:20:22Z")

</div>

How is you time monitored? Just a 24 hr timer or with Time Clock that is update from Internet or server someplace. Did your local time zone update?

---

<div class="post-metadata">

**Author:** ![kaleb.s](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kaleb.s](https://forum.inductiveautomation.com/u/kaleb.s)\
**Post date:** [November 9, 2022, 7:41pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/4 "2022-11-09T19:41:20Z")

</div>

Quality of the tag shows as good in ignition. In the main program there is just a 1D timer that triggers the reset in each flow meter 1-4, There is a MOV instruction to take the temp tag value and move it to the 24hr tag value and then another MOV to reset the temp tag to 0.

Time is just a 24 hour timer dcamp. We went back 1 hour on sunday morning at 2am, but im pretty sure the 24 hour numbers updated fine on monday.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [November 9, 2022, 7:44pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/5 "2022-11-09T19:44:26Z")

</div>

Is the timer in the PLC or Ignition?

---

<div class="post-metadata">

**Author:** ![kaleb.s](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kaleb.s](https://forum.inductiveautomation.com/u/kaleb.s)\
**Post date:** [November 9, 2022, 7:57pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/6 "2022-11-09T19:57:13Z")

</div>

Its in the Micro 820

---

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [November 9, 2022, 9:15pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/7 "2022-11-09T21:15:35Z")

</div>

Did you write this program? If so have you hooked up and in "Debug" mode you can see what is going on with the scan. I have 100's of the Micro800 in the field running all kinds of timers and total tracking routines and I have never had a single problem.

Now I do understand there is always a first. It's just that you say it has happen with 2 units (That in itself is odd) unless there is a problem with program (which is the common between the two)?

These people here my know more about the PLC [Your Personal PLC Tutor Site - Interactive PLC Questions and Answers](http://www.plctalk.net/qanda/) as it is dedicated toward PLC problems.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [November 10, 2022, 2:30pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/8 "2022-11-10T14:30:25Z")

</div>

1. is there any chance it is offline, such as it get turned off at. If it looses power at any point it will throw out your calculations.

Also, can you show you reset logic?

And might there be anything which could conflict with a write?

---

<div class="post-metadata">

**Author:** ![kaleb.s](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kaleb.s](https://forum.inductiveautomation.com/u/kaleb.s)\
**Post date:** [November 30, 2022, 1:52pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/9 "2022-11-30T13:52:00Z")

</div>

So i got the majority of this corrected by just downloading the original program again, im not sure if something happened coincidentally or if i forgot to go offline before closing the program.

Im running into issues with my daily and weekly resets. I have the logic properly for resetting, however its using a timer, which i dont really like because the timer needs to be started at the exact time I want the reset to occur at night 11:59pm and then for weekly reset same thing except on sunday night at 11:59. Is there any way to delay a timer to start counting at the time i need the reset to occur?

I also played around with using RTCSET and tried to create a main program that had a direct coil which would trigger at a specific time daily and also weekly. I then added the variable coil to my meter program so it would MOV the current daily value to a temp tag and then set the current daily value back to zero to start over again. However, I cannot get the main direct coil to trigger the MOV and Reset to 0.

Any ideas?

---

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [November 30, 2022, 3:53pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/10 "2022-11-30T15:53:06Z")

</div>

From AB Support you should download the TOWEEK function block. This will allow you to actually program the Time of day/week you want to trigger. Note: you will have to make sure your DATETIME is correct and maintained.

Then be sure to use a R\_Edge Trigger to start and a F\_Edge to end this way you will get the full time of your program.

---

<div class="post-metadata">

**Author:** ![kaleb.s](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kaleb.s](https://forum.inductiveautomation.com/u/kaleb.s)\
**Post date:** [November 30, 2022, 4:10pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/11 "2022-11-30T16:10:42Z")

</div>

Im not seeing it on their website. Would you happen to have a link? Sorry....

---

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [November 30, 2022, 4:48pm UTC](https://forum.inductiveautomation.com/t/micro-820-daily-totals/66304/12 "2022-11-30T16:48:23Z")

</div>

Be sure when you UNZIP this folder that it actualy creates a .7z file type. Then Import that file and your new function block TOWEEK will be available for you program. I could not find it on the web site either.  
[UDFB\_TOWEEK.zip](https://forum.inductiveautomation.com/uploads/short-url/2z2qivqZ4tWWJitpwvTW2Lakhru.zip) (3.3 KB)
