Author Topic: Set/Clear of RTC.ERR  (Read 5150 times)

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
Set/Clear of RTC.ERR
« 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).

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:Set/Clear of RTC.ERR
« Reply #1 on: February 19, 2009, 12:22:59 AM »
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.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
Re:Set/Clear of RTC.ERR
« Reply #2 on: February 19, 2009, 08:50:58 AM »
Thanks,

This makes perfect sense, my test board is r42.