This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

save the value of a variable in the LM

I would like to know how I can save the value of a variable inside the memory of the LM, but that this value will never be erased.
the idea is that I keep the value of a meter variable one month (for example March), the next month (for example April) I create another variable and I keep the value of that month in that variable. Then I take the value of the first variable and I make a difference between the first and the second variable. this to make a comparison of consumption.

I've been looking for a similar example but I have not found anything.

thank you Big Grin
Just use trend and counter and all this will be done for you automatically
Thank you, but I do not know if you have an example of how to use the trend and the accountant is honestly new to this
I would really apreciate it
How do you want to display the data? If via trend then in there you have ready solution to compare the same trend with different period. If you want the value itself then fetch the data via this.

Forum Jump: