Internet PLC Forum

General => Technical support => Topic started by: sid80555 on July 27, 2011, 07:25:19 AM

Title: Storing data on fmd 88-10
Post by: sid80555 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?
Title: Re:Storing data on fmd 88-10
Post by: support 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.