Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: TheGreatMarklar on February 25, 2019, 01:04:25 PM

Title: Timer feature request
Post by: TheGreatMarklar 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.
Title: Re: Timer feature request
Post by: pbw 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......
Title: Re: Timer feature request
Post by: Bolt 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.
Title: Re: Timer feature request
Post by: ATU 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.
Title: Re: Timer feature request
Post by: franji1 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.