Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 07, 2012, 09:19:18 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Retentive memory?  (Read 1184 times)
DBen
Newbie
*
Posts: 5


« on: March 30, 2009, 12:31:02 pm »

Greetings,

Is there a way to keep counter data retentive through a power cycle of the CTRIO?

Specifically, for encoders?

David
Logged
BobO
Host Moderator
*****
Posts: 1112


Yes Pinky, we *are* going to control the world!


« Reply #1 on: March 30, 2009, 02:15:09 pm »

Yes and no.

We have considered adding retentive memory to the counter, and even prototyped a NVRAM version, but never released it. So, in the CTRIO itself? No.

There is a workaround though. If you publish the counter values into the PLC's retentive memory, you can then use a CTRIO System Command to reset the CTRIO's internal register at startup. Not great, but it works.
Logged

BobO

The Constitution does not guarantee us freedom from being offended...but we can choose not to be, and life gets so much easier.
DBen
Newbie
*
Posts: 5


« Reply #2 on: March 30, 2009, 02:56:30 pm »

Thanks for the tip Bob.

The workaround will be fine for my application.
Logged
Greg
HOS†ech
Hero Member
*****
Posts: 284


Hmmm...


WWW
« Reply #3 on: March 31, 2009, 12:36:37 pm »

There is a sample project that does this that gets loaded on your PC when you install DirectSOFT. It is located:

c:\HAPTools\Examples\CTRIOwb2

...and is called: Retentive Current Count.PRJ


Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM