Oh sorry.There is a mistake in the discription of my problem.
The soloutions written describes how to subtract meter2 - meter1 = difference between these two values.
That is a misunderstanding.
I need the difference between two values from one and the same meter. Like this:
Meter 1 @ 13:00 = 1200kWh --->into logfile1
Meter 1 @ 13:15 = 1250kWh --->into logfile1
-------------------------------------------
difference @ 13:50 = 50kWh ----> into logfile2
And this procedure for 2 Meters.
I have to visualize it with a Logfile-Graph in Ilon-Vision. Maybe the one an only solution is to have an script (maybe java) which calculates the difference.