Author Topic: Memory condition that is not lost after power off.  (Read 8064 times)

bgtwuk

  • Guest
Memory condition that is not lost after power off.
« on: May 11, 2013, 02:54:33 PM »
Gents

How can I safe a latched condition and have it available on my next boot.

It will be a memory of a failure.

Bgtwuk

Offline Jakob

  • PLUS+1 Expert
  • ****
  • Posts: 98
  • Karma: +2/-0
Re: Memory condition that is not lost after power off.
« Reply #1 on: May 11, 2013, 09:55:48 PM »
Hi Bgtwuk
You can make a parameter that your program writes into.
And when system boots up, the program reads the parameter.
It is not difficult, I believe there are examples somewhere :)

I have done this to log machine overload and other useful info.
If you want more details you could make a timestamp value and number of failures.


Jakob
« Last Edit: May 13, 2013, 11:53:06 AM by Jakob »

bgtwuk

  • Guest
Re: Memory condition that is not lost after power off.
« Reply #2 on: August 27, 2013, 02:59:36 PM »
THANK YOU

Offline Jakob

  • PLUS+1 Expert
  • ****
  • Posts: 98
  • Karma: +2/-0
Re: Memory condition that is not lost after power off.
« Reply #3 on: August 27, 2013, 09:48:29 PM »
Did you make it work, Bgtwuk?

Might also be a good idea to prevent frequent status logs, the controller memory is just not made for it. According to the documentation, it will wear out the memory after a few million logs or there about. Display memory is different so if you have a display that is where I would store logs.

/Jakob