News:

  • June 10, 2026, 02:29:30 AM

Login with username, password and session length

Author Topic: Timer present value  (Read 15320 times)

Henryp

  • Hero Member
  • *****
  • Posts: 161
Timer present value
« on: April 27, 2015, 02:43:24 PM »
Is it possible in a Do-More to read a timers preset value if it is hard coded?

Thanks

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: Timer present value
« Reply #1 on: April 27, 2015, 02:47:28 PM »
Doesn't look like it.  Back in the old TI days, there was T1.Pre, but if you put T1 in a DMD data view, it looks like it's just Acc and flags.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

Henryp

  • Hero Member
  • *****
  • Posts: 161
Re: Timer present value
« Reply #2 on: April 27, 2015, 03:00:05 PM »
Long live the 5TI and PM550.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: Timer present value
« Reply #3 on: April 27, 2015, 03:06:54 PM »
Is it possible in a Do-More to read a timers preset value if it is hard coded?

Thanks

Sorry, no.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Re: Timer present value
« Reply #4 on: April 27, 2015, 06:43:28 PM »
What would you do with it if you could?  Look at the value and say "I'm screwed!"?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: Timer present value
« Reply #5 on: April 27, 2015, 07:25:19 PM »
It's useful from an HMI. Beyond that, yeah, not much you can do with it.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Timer present value
« Reply #6 on: April 27, 2015, 08:59:20 PM »
What would you do with it if you could?
Calculate time remaining XOR time passed based on whether it was timing up or down.

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Timer present value
« Reply #7 on: April 27, 2015, 09:56:22 PM »
I tried to set it as a variable a couple weeks ago, thinking it would simplify that little brain teaser someone posed on ADC's forum (that I used the Drum instruction on instead (that was acting quirky due to my not clearing the simulator memory.))

Anyway, I posit that it would be cool to skip the memory location for a timer's variable preset and simply be able to write (or read) T0.PRE because it would be cleaner.

Well, it would, but I realize it is probably one of those "all you gotta do" type requests.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: Timer present value
« Reply #8 on: April 28, 2015, 12:35:38 AM »
Calculate time remaining XOR time passed based on whether it was timing up or down.

Or if you're using a single timer as a sequencer, you could do stuff at various percentages of timer completion if you know the Pre.  Then, you can speed up or slow down the entire sequence by changing that one number.  Easy enough to do even now just by using a variable as the setpoint.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: Timer present value
« Reply #9 on: April 28, 2015, 12:37:13 AM »
Long live the 5TI and PM550.

...and the 5x0/5x5!  Nice PLC's both.   :)
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.