News:

  • September 29, 2026, 12:44:13 PM

Login with username, password and session length

Author Topic: Timer feature request  (Read 9857 times)

TheGreatMarklar

  • Jr. Member
  • **
  • Posts: 18
    • Rix Industries
Timer feature request
« on: February 25, 2019, 01:04:25 PM »
My project uses some timers that are configured by the user via variables. Programming these timers gets messy because the variable must be in ms, which results in some big numbers when dealing with hours-long timers.

Request: Please add the ability to specify the time unit of the timer preset variable.

pbw

  • Hero Member
  • *****
  • Posts: 127
Re: Timer feature request
« Reply #1 on: February 25, 2019, 01:41:27 PM »
If you're a C-more HMI, you can use scaling. The Pic is scaled for seconds, but you could do it minutes, hours......

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: Timer feature request
« Reply #2 on: February 26, 2019, 12:17:29 PM »
You could also have a variable run through a math instruction to create a variableMS for the timer from a variableHR from user.  But yes, I have also thought it might be handy at times to be able to change timer variable rate.  But that would also get confusing at times.

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: Timer feature request
« Reply #3 on: February 26, 2019, 04:41:19 PM »
I have been working on a BRX project with hundreds of user programmable timers in hrs min and seconds down to milliseconds. It is far more manageable to keep the stored value in milliseconds and use the HMI to convert  the hrs-min-sec setpoint entry to and from milliseconds.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: Timer feature request
« Reply #4 on: February 26, 2019, 08:56:11 PM »
The accumulator would have to be REAL to time in Hours.  The HMI would have to be configured differently based in the time base of each individual timer.