CompactLogix tag reset on powerup

almog44

Member
Join Date
Oct 2015
Location
Israel
Posts
26
I have string array, that after powerup all the data at this array is reset to 0
I need it to save the value it was before the powerup
is it possible ?
 
Assuming no hardware issue, tag values are retained on power loss. What model CompactLogix?

Does code exist that clears the strings? If so, what are its conditions to do so?
 
Another consideration from memory...

...Assuming no hardware issue, and assuming no code that "initializes" the array, does the "CompactLogix" have a CompactFlash memory card (older model) or an SD card (newer model)?

A memory card can be configured to load a copy of a project file on powerup into the controller's memory. This copy could have certain zero tag values, or indeed any valid tag values. The memory card will also take load priority over a project marked valid in the backed up RAM.

If code, then another (outside) possibily on the memory card...

In v16 or higher controllers, there is also the option to use code to read just tag values from a memory card to user selectable tags. This would require the controller to go to Run Mode first and then execute the "read" code. It is possible that such code could be executed on first scan. But more often I see initialization values are just done directly in code, without the need for a memory card. Unless more than one memory card is being used to load recipe type tag values, rather than say from a HMI or DCS/SCADA system.

Regards,
George
 
If you just want to store the string data at power up use the S:FS bit. The the First Scan bit. Use that to first copy the array to your storage array and then clear it.
 

Similar Topics

Hi I'm having an issue with a compactlogix that is retaining the controller and program tag data from the last power down and not resetting the...
Replies
5
Views
4,736
My PLC has a Boolean consume tag that gets data from another PLC via ethernet. Is there a way to make the consume tag fail to 0 when the ethernet...
Replies
6
Views
2,749
We manufacture machines with lots of variable parameter set points, mostly DINT's but some BOOL. The issue we have is if a software/project...
Replies
9
Views
2,089
Good Morning , We have a HMI application that has not saved recipes since it was put in a few years ago. Just briefly I looked at the...
Replies
4
Views
2,856
Good Evening , I have 2 CompactLogix PLC's , that I am going to use Produced / Consumed Tags . I would like to tell if both are...
Replies
11
Views
4,062
Back
Top Bottom