logo Welcome, Guest. Please Login or Register.
July 22, 2018, 04:26:21 AM
Home Help Search Login Register
 News: Self-Registration temporarily suspended due to abuse.To Register as a member, please email to webmaster@triplc.com with your email and username.

  Internet PLC Forum
  General
  Frequently Asked Questions
(Moderator: support)
  Using MX-RTC / MX-RTC Battery Life
? previous next ?
Pages: [1] Go Down Reply Notify of replies Send the topic Print
   Author  Topic: Using MX-RTC / MX-RTC Battery Life  (Read 10479 times)
support
Global Moderator
*****

Posts: 3070





View Profile WWW E-Mail
Using MX-RTC / MX-RTC Battery Life
« on: October 27, 2005, 01:35:21 AM »
Reply with quote

MX-RTC is an optional battery backed real time clock module that you add between the 28pin SRAM and the 28pin socket on any T100MD+ or T100MX+ PLC. It keeps the real time clock running even when all power to the PLC has been shut down.

If you turn on DIP Switch #1 to the PLC, then MX-RTC will preserve the values of all the internal variables when power is removed. These includes A to Z, A$ o Z$, DM[1] to DM[4000], as well as timers  and counters present value.

There are also data and logic states that are NOT PRESERVED,such as the values of INPUT[], OUTPUT[], PWM output, DAC outputs and Stepper motor ouputs.  The PLC will reset all the outputs regardless of the presencee of MX-RTC. This is to prevent a situation where after a power failure, some outputs that should NOT be turned ON unless with some user intervention to ensure that it is safe to do so, became active due to its ON state before power failure.

As such a scenario may be hazardous, it was decided that the output logic states will not be preserved after a power on reset. However, all internal relay logic status are preserved. So if your program requires that an output must return to its pre-power down states, then you can turn on an internal relay first and the contact of the internal relay is then used to drive the output. This give a degree of control to the user to determine which output is allowed to be turned ON based on its pre-power down logic state. Similarly, all PWM output and DAC outputs will not be set to their pre-power down values, so the programmer must take this fact into consideration.
« Last Edit: March 11, 2011, 09:40:21 AM by support » Report to moderator   Logged

Email: support@triplc.com
Tel: 1-877-TRI-PLCS
support
Global Moderator
*****

Posts: 3070





View Profile WWW E-Mail
MX-RTC Battery Life
« Reply #1 on: June 18, 2007, 12:54:16 PM »
Reply with quote

Q: How Long does the battery last in MX-RTC?

Ans: 
a) MX-RTC contains Lithium battery that has shelf life of 10 years

b) When PLC is powered up, MX-RTC battery is not used. Hence if system is up most of the time then the battery life is determined by its shelf life.

c)  When power is not applied to the PLC with MX-RTC installed, the internal battery is used to keep the RTC running and maintain the contents of the RAM data. For system that are running in the day but turned OFF at night the battery life should last for 5 years or longer.

d) Battery inside MX-RTC is NOT rechargeable and NOT replaceable. The whole MX-RTC need to be replaced when its battery is depleted.

« Last Edit: June 18, 2007, 12:55:38 PM by support » Report to moderator   Logged

Email: support@triplc.com
Tel: 1-877-TRI-PLCS
support
Global Moderator
*****

Posts: 3070





View Profile WWW E-Mail
Real Time Clock Application Demo Program
« Reply #2 on: July 20, 2009, 08:50:13 AM »
Reply with quote

A demo .PC6 program based on some code fragment contributed by a user is posted at the following web page.

http://www.tri-plc.com/trilogi/RTCAppByGDK.zip

You can simply include the program into your own codes and then all you need to do is to use the relay contacts #17 to #24 as flags to either turn ON/OFF outputs or trigger custom functions to perform required tasks.
« Last Edit: July 21, 2009, 11:11:42 PM by support » Report to moderator   Logged

Email: support@triplc.com
Tel: 1-877-TRI-PLCS
garysdickinson
Expert Member
****

Posts: 404



Old PLC Coder

View Profile E-Mail
Re:Using MX-RTC
« Reply #3 on: July 29, 2009, 08:09:54 PM »
Reply with quote

I have modified the demo program for improved reliability. I have added a routine to access the TIME[] registers to ensure that the correct time is returned.  I would be happy to e-mail my modified program.  Please let me know.

Gary thingyinson
Report to moderator   Logged
support
Global Moderator
*****

Posts: 3070





View Profile WWW E-Mail
Re:Using MX-RTC
« Reply #4 on: July 30, 2009, 04:58:04 AM »
Reply with quote

We will be happy to receive your contribution. Thank you very much! Please email to support@tri-plc.com and we will post your modified version.

Update: We have just posted the latest contribution by Gary. Please download from the following link:

http://www.tri-plc.com/trilogi/RTCAppByGDK.zip
« Last Edit: July 30, 2009, 12:21:44 PM by support » Report to moderator   Logged

Email: support@triplc.com
Tel: 1-877-TRI-PLCS
Pages: [1] Go Up Reply Notify of replies Send the topic Print 
? previous next ?
Jump to: 


Login with username, password and session length

Powered by MySQL Powered by PHP Internet PLC Forum | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!