Author Topic: Corrupt EEPROM  (Read 19024 times)

xfmrhelp

  • Newbie
  • Posts: 4
  • I'm a llama!
    • View Profile
Corrupt EEPROM
« on: January 05, 2009, 12:37:56 PM »
My company has been using your PLCs pretty successfully for years now and have never encountered corrupted EEPROMs.  We're using the 2018 eeprom and the code is VERY large.  Again, we've done every trick in the book to reduce the size of the program.  As of right now, the EEPROM is at 8159 words.

Now recently we've been encountering this problem.  We've always been using the same power supply and same I/O.  The EEPROMs have not been damaged, we've only had to reload the programs.  But we can't allow this to happen with our customers.  Is there some link between the size of the EEPROM program and the frequency of program corruption?  Should we really be staying below some number other than 8191 to avoid this problem?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Corrupt EEPROM
« Reply #1 on: January 06, 2009, 08:56:04 AM »
We have no previous report that code size nearing 8190 words limit would cause corruption of EEPROM. In the attempt to tighten the code there may be programming related issues that cause problem.  Is the same board behaving normally with a smaller code size program but encounter errors with a larger code downloaded to it?

Please contact support@tri-plc.com and give us more details about the problem you experience and the code you use. Are you experiencing any run-time error? We will try to help you determine whether this is a hardware or software related issue.

From a few reported incidents, the EEPROM corruption mainly occured in 12V battery-powered system with potential load dump problem when charging circuit switch in and out. Some users reported that they have installed voltage monitoring system and shut down power to the PLC when the DC voltage drop below 10V and that has protected the EEPROM from corruption or damage.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

ccdubs

  • Full Member
  • Posts: 116
    • View Profile
Re:Corrupt EEPROM
« Reply #2 on: January 06, 2009, 11:06:09 AM »
xfmrhelp,

Do you definitely have to reload the code? Or does a reboot (power off then on) solve the problem?

xfmrhelp

  • Newbie
  • Posts: 4
  • I'm a llama!
    • View Profile
Re:Corrupt EEPROM
« Reply #3 on: January 08, 2009, 09:47:20 AM »
Actually, we have been burning in the same PLC for another three days after having to reload the program.  This morning we found the PLC energized, but the watchdog timer had tripped out.  We couldn't get it to respond to any command, even IR* using TLServer.

When we cycled the power it went right back to normal operation.  We've pulled that particular EEPROM and are downloading a program into a new one and commencing with burn in.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Corrupt EEPROM
« Reply #4 on: January 08, 2009, 09:54:34 AM »
If the same problem occur again then please swap out the controller with a new one to test. If it doesn't happen to the new controller then it is not a software issue and therefore it could be a hardware problem. You can send the faulty PLC back to us for testing and repair if that is the case.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

benb2000

  • Jr. Member
  • Posts: 56
  • I love YaBB 1G - SP1!
    • View Profile
Re:Corrupt EEPROM
« Reply #5 on: March 06, 2009, 01:26:53 PM »
I have had the opportunity to see the brochure on the "F" series PLC's that are coming.

I see that the EEPROM has been replaced by Flash memeory and the SDRAM have been replaced by a Ramtron FRAM. Is there any chance that the T100MD-888 series could be retrofitted to FRAM for the EEPROM?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Corrupt EEPROM
« Reply #6 on: March 07, 2009, 10:16:56 AM »
There is no immediate plan to do so. The current CPU would not be able to take advantage of the speed of FRAM even if it were retrofitted.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

benb2000

  • Jr. Member
  • Posts: 56
  • I love YaBB 1G - SP1!
    • View Profile
Re:Corrupt EEPROM
« Reply #7 on: March 09, 2009, 07:48:26 AM »
Speed is not the issue, reliability of data in the EEPROM is.

I would settle for a OTP 8 pin PROM, if it would solve my constant EEPROM corruption problems. I have 35 PLC's operating in the field with 12 VDC automotive power. I have installed the 1.5KE24A TVS diodes, and I still receive about 4 units a month, for reprogramming of the EEPROM.

ccdubs

  • Full Member
  • Posts: 116
    • View Profile
Re:Corrupt EEPROM
« Reply #8 on: March 09, 2009, 11:50:27 AM »
BenB2000,

I have also had some issues where EEPROM was originally to blame and it was later found to be something else.

How do you know for certain that the problem is EEPROM? Do repaired units repeatedly fail? Do you replace the EEPROM or just reprogram?

benb2000

  • Jr. Member
  • Posts: 56
  • I love YaBB 1G - SP1!
    • View Profile
Re:Corrupt EEPROM
« Reply #9 on: March 09, 2009, 12:24:30 PM »
Hi,  ccdubs

I have done both, I attempt to re-programm first, then if this fails, I will replace the EEPROM. I will admit that mobile applications are one of the most hostile environments, and being in the oilfield, the field personnel do not show the TLC one would expect.

In my case it's almost always the EEPROM,  that when replaced or reprogrammed, will get the unit running again.

I am in the process of installing a DCDC converter to power the T100MD-888+ PLC's, but it will be some time before I see any results, and I do not know, if the EEPROM's "wear out" from the exposed "Load dump" conditions.

Do you have any recommendations?

ccdubs

  • Full Member
  • Posts: 116
    • View Profile
Re:Corrupt EEPROM
« Reply #10 on: March 09, 2009, 12:35:19 PM »
It sounds like our problem is quite different to yours. I would suggest a DC to DC converter is a good first step as driving directly off the car 12V supply is almost always a no-no.

I would have thought it quite easy to get something specifically designed for automobile use.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Corrupt EEPROM
« Reply #11 on: March 09, 2009, 02:05:19 PM »
One user who had a EEPROM corruption problem in mobile application suggested using a low voltage detection circuit which cuts power to the PLC when voltage falls below 10V and it has resolved the problem for him. You may want to give that a try?
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

benb2000

  • Jr. Member
  • Posts: 56
  • I love YaBB 1G - SP1!
    • View Profile
Re:Corrupt EEPROM
« Reply #12 on: March 09, 2009, 02:10:38 PM »
The design requirements for mobile use was underestimated, both electrically and physically.

Vibration is a big issue, with LM7810 regulators breaking off, connectors coming off, MXRTC/SDRAM's coming out of their socket.

We have moved to using tie wraps to hold the MXRTC stack, and Hot melt to stake the connectors, and to connect the regulators to the filter caps ( creating a larger mass)

Now we will progress with the DC/DC converters to see if we can minimize EEPROM failure

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Corrupt EEPROM
« Reply #13 on: March 09, 2009, 02:13:31 PM »
Did you mount the PCB on a shock-absorbing standoff - might help quite a lot in terms of vibration damage to the components.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

ccdubs

  • Full Member
  • Posts: 116
    • View Profile
Re:Corrupt EEPROM
« Reply #14 on: March 09, 2009, 03:13:48 PM »
It sounds like your vibration issue may be low frequency/high impact if you are breaking components off. This would be quite hard to mitigate.

Supports post regarding the undervoltage cutout circuit is a good one also. I have had to implement this when running from battery backed up supplies which can cause constant rebooting of the PLC as the battery dies. After a while the PLC doesn't like this anymore. You could be seeing something similar every time the car is started.