Author Topic: IF statements  (Read 5911 times)

cyatom

  • Newbie
  • *
  • Posts: 2
  • I'm a llama!
    • View Profile
IF statements
« on: October 23, 2006, 05:59:01 PM »
I seem to be getting a lot of checksum errors when I cycle the power on my plc.  If I write the program and transfer it, it works fine.  However, when I cycle the power on the plc, it comes back with a checksum error.

It seems to be correlated with using 'AND' in my 'IF' statements. i.e.
IF (N < 0) AND (R > 2) STEPMOVE 1,5,10:ENDIF

Has anybody else been getting these problems?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:IF statements
« Reply #1 on: October 24, 2006, 03:05:02 PM »
If there is a checksum error after you cycle power to the PLC, it means the EEPROM could be damaged. First check that you do have the jumper J2 at the "Enable" position such that program transferred to the PLC can be saved into the EEPROM. If it is at "WP" position it is not allowed to be written with the new program.

If you confirm that the EEPROM is indeed damage, please contact the dealer to check for replacement part. You may want to consider purchasing the M2018P EEPROM which allows larger program (8190) and data EEPROM (7700 words) storage than the standard M2017P EEPROM.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS