Author Topic: Storing data on fmd 88-10  (Read 11146 times)

sid80555

  • Newbie
  • Posts: 36
  • I'm a llama!
    • View Profile
Storing data on fmd 88-10
« on: July 27, 2011, 07:25:19 AM »
I am trying to store a 10 digit number entered from a keypad in the non-volatile memory of the FMD88-10. It gives me some wierd number when i read it back from the memory. I understand it can store only a 4 digit number ,what could i do about this scenario?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Storing data on fmd 88-10
« Reply #1 on: July 27, 2011, 11:02:38 AM »
You mean the SAVE_EEP command to store into FRAM memory? Yes, it can only save 16-bit number.

You can however use the GETHIGH16 command to break a 32-bit number (one of the A to Z or EMLINT[1] to EMLINT[16]) into two 16-bit numbers and store into the FRAM memory. You then need to use the SETHIGH16 to reassemble two 16-bit number loaded from the FRAM into a 32-bit number.

See the "EEPROM.PC6" example in the C:\TRiLOGI\TL6\usr\samples folder.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS