RTC Control Command

The user can set the time and date using “RTCR” and “RTCW” commands. The write command requires a password (“PIC” by default). Ensure that the format used when typing the command is exactly the same shown in the example below.

; Read the RTC
RTCR
Present RTC is (yy-mm-dd w hh:mm:ss):
22-11-17 4 09:59:02
; Set the RTC
RTCW[PIC](22-11-17 04 10:23:40)
Set RTC is ok !
; Read the RTC again
RTCR
Present RTC is (yy-mm-dd w hh:mm:ss):
22-11-17 4 10:23:42
Note:
  • "w" corresponds to the current day in the current week. The RTC peripheral supports a range from 1 to 7. The coding of the number (which number represents which day) is user-defined as it has no effect on the date counter.
  • Depending on the Demo Meter Application version, the temporal variables storing the demand and energy accumulated are erased each time the Time Of Use ("TOUW" command) or RTC ("RTCW" command) are programmed.