gbradley
Lifetime Supporting Member
OK let me first explain how I am doing something and then you can tell me how I can do it better.
I move the current day, Month, Hour and Minute into a register
MOV RTC:0.DAY L9:6
MOV RTC:0.MON L9:7
MOV RTC:0.HR L9:8
MOV RTC:0.MIN L9:9
I move the current count to another register
MOV L9:0 L9:10
I want the HMI to show the last 20 Resets, so that it will look like
07 May 13:27 8,356
04 May 22:13 7,301
04 May 17:27 8,806
etc...
Where the data values are:
Day Month Hour Minute
This requires 4 numeric displays in the HMI for the date
Or is there one numeric value in the RTC that you can you can give to the HMI?
Sort of like in Excel where 41037 = 5/8/2012
I move the current day, Month, Hour and Minute into a register
MOV RTC:0.DAY L9:6
MOV RTC:0.MON L9:7
MOV RTC:0.HR L9:8
MOV RTC:0.MIN L9:9
I move the current count to another register
MOV L9:0 L9:10
I want the HMI to show the last 20 Resets, so that it will look like
07 May 13:27 8,356
04 May 22:13 7,301
04 May 17:27 8,806
etc...
Where the data values are:
Day Month Hour Minute
This requires 4 numeric displays in the HMI for the date
Or is there one numeric value in the RTC that you can you can give to the HMI?
Sort of like in Excel where 41037 = 5/8/2012