Maybe you can also make the parameters of function block SHLD non-volatile (Persistent parameters).
If you restart your computer and/or download new program then it will not lose the previous stored value.
And storing the value every midnight in a database and then trigger the SETH input would give you a nice overview of the daily consumption.