Per Shift Energy

Per Shift Energy

I am working on energy per shift .I try it with time control and allocation but I did not get it. This is the only part that is left in my project .please send me step by step procedure with screen shot. Energy per shift HMI is attached with this email
There are three shifts in 24h
1 Night shift(22:30 to 06:30)
2) Day shift(06:30 to 14:30)
3) Swing shift(14:30 to 22:30)
I get the energy variable from relay that is continuously increase
•How I can hold the start value and then subtract this value with current value of energy
For example : start value is 2888kwh and current value is 2889kwh the display value on HMI show 1kwh energy and its continue increase like 1,2,3,4,5,…. then its multiply with cost and display on HMI
•After completing 8h shift the night energy value and cost is hold and swing shift is start
And will hold the value after 8h .
•when day shift complete and daily shift complete 24 hr then all today value and cost of night, swing ,day and daily is shift to yesterday and today session is start again
•how to multiply energy with cost and display it on HMI
These are problems that I face .please help me to program it . :)

This is a migrated post! Originally posted on 14.12.2010 by user tanveerali. Please be aware that information can be outdated.