Posted 10 Sep 2018 Hi, "CJ2M-CPU32 PLC" CX Programmer V: 9.63 I'm working on one of the projects where I'm using DT function for comparing the daily, monthly and yearly water flow. I'm able to get daily totalizer but having difficulty while having totalizer for monthly and yearly basis via using DT function. Can anyone guide how can I link the calendar with DT function subjected that every month is with different numbers i.e. 30,31 and 28/29 days. How can I add exact flow rate into monthly totalizer? note: 1 pulse = 1m3 (I'm not having problem for pulse count etc- its just with monthly & yearly totalizer while using DT function). Thanks Share this post Link to post Share on other sites
Posted 11 Sep 2018 (edited) I don't know about DT function but I think you should try to use day 1st at 00:00:00 to calculate monthly toatalizer it just easier than use last day in month. Edited 11 Sep 2018 by Wasan Share this post Link to post Share on other sites
Posted 11 Sep 2018 Thanks Wasan, but each month is different, I need to make totalizer in reference to calendar i.e. each month have different days like 30,31 and then 28,29. So i need to make the program at once and all should work in auto. Share this post Link to post Share on other sites
Posted 12 Sep 2018 That is why the suggestion to do it on 1st at 00:00:00 - does not matter how many days then. Share this post Link to post Share on other sites