News:

  • June 25, 2026, 09:51:07 PM

Login with username, password and session length

Author Topic: Power-up Timer  (Read 8996 times)

russher

  • Jr. Member
  • **
  • Posts: 17
Power-up Timer
« on: August 14, 2014, 12:21:18 PM »
I am using a Do-More H2-DM1E CPU connected by Ethernet to a C-More EA9-T10CL. I want to have a timer in the Do-More that begins timing when the PLC is powered up and resets when the Do-More is powered down so it begins timing again on the next power up.
Any ideas of how to do this?

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Power-up Timer
« Reply #1 on: August 14, 2014, 12:34:17 PM »
Use MATH along with the values stored in SDT0 (Current time), SDT1 (Date and time of last power-down) and SDT2 (Date and time of last power-up).
Or you can put a timer on a rung with NOT ST0.
« Last Edit: August 14, 2014, 12:36:01 PM by plcnut »
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

russher

  • Jr. Member
  • **
  • Posts: 17
Re: Power-up Timer
« Reply #2 on: August 14, 2014, 12:49:05 PM »
A timer on a rung with NOT ST0 is simple and effective. Thanks!

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Power-up Timer
« Reply #3 on: August 14, 2014, 01:00:05 PM »
You're welcome.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3609
  • Darth Ladder
Re: Power-up Timer
« Reply #4 on: August 14, 2014, 07:51:46 PM »
Yup, that's one difference between DL and Do-More.  You have to reset them if you want them to restart on prog-to-run transition (or I guess you could remove them from the retentive timer range).
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.