Author Topic: Using Memory Dynamic With Default  (Read 4978 times)


  • Guest
Using Memory Dynamic With Default
« on: January 12, 2012, 07:25:40 PM »
Just curious how everyone is using these blocks in regards to having the blocks reset to default values when the code is loaded onto a new blank controller.

For example,
Think of a program that has some runtime modifiable parameters stored in memory dynamics that should be set to some standard values when the code is first programmed onto the controller. Assume the memory on the controller is uninitialized therefore the memory dynamics will have random values at first boot up.
I don't want to have to run through all the values and set the defaults manually using the service tool, so I used the Memory Dynamics with default. I setup the standard default values along each memory dynamic, and tied a control signal to each that will set the default value and write that to memory.

The question is how to get the controller to decide when to set everything to default? So i have two ideas:

-Use service tool or the display UI to trigger the set to default. Only problem is that a service tech might forget to do this step and bad things could happen when they start the equipment.

-Add a couple memory dynamics with 'key' values and if they don't match what they should, reset all memory dynamics to default values. This seems like a sound idea but for some reason its not setting well with me.

Has anyone else run into this and how did you handle it?


Offline Neil

  • PLUS+1 Expert
  • ****
  • Posts: 96
  • Karma: +2/-0
Re: Using Memory Dynamic With Default
« Reply #1 on: January 13, 2012, 01:41:34 AM »
Hi there.

I’m not sure if this helps you?
I use this method to set my defaults, all you have to do is load the program and cycle the power on the controller, see the example.
Because at power up EE_AUTOP is not equal to the default value, the compare goes T and flashes the defaults into a list of Dynamic Memory’s. Only flashes the once.

regards Neil


  • Guest
Re: Using Memory Dynamic With Default
« Reply #2 on: January 17, 2012, 04:16:29 PM »
Yes that's exactly what I was thinking. If it is working for you then I will give it a go.