News:

  • June 07, 2026, 02:40:24 PM

Login with username, password and session length

Author Topic: Restarting the counter and preset table.  (Read 20193 times)

ERokc

  • Hero Member
  • *****
  • Posts: 118
Restarting the counter and preset table.
« on: November 02, 2014, 11:44:49 PM »
I need to reset the counter and load a preset table to produce an output on corresponding count values.
Prior to completion of the preset table I need to reset the counter and start the table over.

Do I need to clear the table and reload it when the counter gets cleared?

If I load a table without clearing first will it load over the old one?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: Restarting the counter and preset table.
« Reply #1 on: November 03, 2014, 10:13:11 AM »
Do I need to clear the table and reload it when the counter gets cleared?

No. Resetting the counter also resets the table.

If I load a table without clearing first will it load over the old one?

Yes.
"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

ERokc

  • Hero Member
  • *****
  • Posts: 118
Re: Restarting the counter and preset table.
« Reply #2 on: November 03, 2014, 09:49:30 PM »
That's the answer I wanted.  I simply want to reset the counter and start the same table again.

Thanks

ERokc

  • Hero Member
  • *****
  • Posts: 118
Re: Restarting the counter and preset table.
« Reply #3 on: November 04, 2014, 12:59:40 PM »
I'm writing my instructions and realize the photo sensors detecting an edge are offset from the datum.  I need to set the counter to 750, not zero.  That I can do but how do I reset the preset table that's loaded?  Load it again or is there a table reset function?
 

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: Restarting the counter and preset table.
« Reply #4 on: November 04, 2014, 03:11:19 PM »
The table is reset by the counter being reset. Just use CTREGWR to update the counter with the desired reset value, then reset the counter however you normally do.
"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