Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Saving UINT data collected as String data to MMC

DanO
2007-08-14
2007-08-17
  • DanO - 2007-08-14

    Does anyone know how I can save the data I'm collecting as Unsigned Integer Data to the MMC card in a String format? I'm collecting the data in a Three Dimensional Array, but I'd like to be able to save it to the MMC card or a USB thumb drive in a text format so I can view it using a simple text editor. The only String Functions I can find are meant to work with data that is already in Script format.

     
  • Igor Petrov - 2007-08-16

    There is a function: … := UINT_TO_STRING(…); Hope it will suit you.

     
  • DanO - 2007-08-17

    Igor Petrov hat geschrieben:
    There is a function: … := (…); Hope it will suit you.

    Yes, this is exactely what I need, but where do I find it. I've searched the CoDeSys libraries that came with the program and I don't see it in any that I have.

     
  • Ralph Holz - 2007-08-17

    Hi DanO

    It is a typeconversion. You can find Typeconversions from every IEC datatype to every IEC datatype using the input assitant (F2) and selecting the item Conversion Operators. The more easy way is simply type it in the format SourceTypeTOTargetType.

    If you still have troubles to find it or to work with it give us an idea wich programing language you are using. That helps to discribe it step by step

    Regards

    Ralph

     

Log in to post a comment.