Author Topic: ASCII Text in Service Tool in NV-variables ???  (Read 11132 times)

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
ASCII Text in Service Tool in NV-variables ???
« on: November 05, 2013, 07:00:42 PM »
Hi,
my customer want's to write some text  in NV (EEPROM) to the controller with service tool.
The user of the machine should read this text on display.
The user can also input some text via display and it might be possible
to read and change it in service tool, vice versa.

But I have found no possibility to show values as ASCII-text!

somebody an idea?
@helpdesk: Would you make it possible in next Guide release?

Thanks
Bernd
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline oiltronic

  • PLUS+1 Guru
  • *****
  • Posts: 170
  • Karma: +15/-0
Re: ASCII Text in Service Tool in NV-variables ???
« Reply #1 on: December 21, 2013, 08:07:37 AM »
Way late reply, but I've done this.  I used text list objects in the display for the alphabet and a simple unsigned integer variable in the program becomes the index to select the correct character to display.   Buttons on the display increase or decrease the value (up/down counter object with limits), advance to the next character to change, etc.  Awfully painful and tedious but it worked for a short bit of text.  And I only used a portion of the ASCII set to keep my sanity.

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: ASCII Text in Service Tool in NV-variables ???
« Reply #2 on: December 21, 2013, 11:00:03 AM »
Thanks,
now I have also put text in several languages (Page 1250, 1251, 1252) via constant and"%c" to display.

But the question is: How can I read it in service tool? There is no possibility to format the NV-memory in text format.
Ok, I think it is to difficult, because of codepages.
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline oiltronic

  • PLUS+1 Guru
  • *****
  • Posts: 170
  • Karma: +15/-0
Re: ASCII Text in Service Tool in NV-variables ???
« Reply #3 on: January 03, 2014, 12:06:08 AM »
If I really (really) had to do this with the Service Tool, I would write a little Perl script to that would convert the string into an XML parameter file, then in the Service tool create a separate parameter function just for the strings, with an array element for each one.  Then the customer only has to convert the string and then import the XML file.  Come to think of it, this would be easier than using screen buttons to change one character at a time.

Offline oiltronic

  • PLUS+1 Guru
  • *****
  • Posts: 170
  • Karma: +15/-0

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: ASCII Text in Service Tool in NV-variables ???
« Reply #5 on: February 16, 2014, 11:03:18 PM »
It would be nice, if they make it possible to put strings to display
and also possible to read and write strings and characters in service-tool.

My actual way ist to use format "%c%c%c%c%c%c%c......" and assign the chracters and to use one screen for each string.
But it is not possible to read this in service tool as a string.
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline jashom1

  • PLUS+1 Expert
  • ****
  • Posts: 80
  • Karma: +6/-0
Re: ASCII Text in Service Tool in NV-variables ???
« Reply #6 on: June 06, 2014, 08:28:38 AM »
You can display a single ASCII character in the service tool if you create a text lookup table, and fill in the characters you want in it and base the index on the ASCII number for the character.  That's probably a pain, but it should work.  Not sure how you would get around doing multiple characters until the great Danfoss gods come up with something  :)

Cheers,  John.