Internet PLC Forum
General => Technical support => Topic started by: garysdickinson on February 18, 2009, 10:50:47 AM
-
Is there a way to set/clear the RTC.ERR using ladder logic or custom functions? I'd like to clear this bit after setting the TIME[] and DATE[] variables.
I notice that the RTC.ERR bit is cleared via the "Set PLC's Real Time Clock" diaglog in i-TRiLOGI.
I can load the TIME[] and DATE[] with correct time/data info by use of the <READ RTC> NS command. The writing o the TIME[] and DATE[] values does not effect the RTC.ERR status.
Ladder logic can use "RTC.ERROR" as a contact but cannot use this bit at the end of the logic as a COIL (output, relay, ...) nor can it use "RTC.ERROR" as the target for a functions (latch/clear/Reset).
-
If you have r49 or later firmware, then loading a value into TIME[] or DATE[] variable will automatically turn off the RTC.Err light and the bit (I just tested it and it works). Earlier firmware version does not support this.
-
Thanks,
This makes perfect sense, my test board is r42.