Bernie:
I need to show on the HMI the total KWH consumption every hour for the last 24 hours. If time shows hour number 6 am then the KWH value should be stored on register N102:6. But!
What happens if there is not electric power and the PLC is down for two hours. Next time is turn back on, how would she knows where to store the next KWH value if the control word R6:2 is not synchronized any longer? The way I wanted to do it was using the S:40 to synchronize. Do I make sense?