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

Visu of floatting Number UDINT

mawaloc
2022-05-24
2022-05-25
  • mawaloc - 2022-05-24

    Hello,

    I'm trying to visualize a flatting Number from a UDINT.
    to explain better . I 've a UDINT (32 bit) that could go until 4 294 967 295
    My undersdanding was that convert it TO REAL then divide to 1000. And so it would be possible to show 4294967.295.
    In fact it's not possible , I understand now why, but looking to see how it's possible.
    => UDINT Values is "mm" values, and looking to convert in "m" values.

    Thanks you

     
  • i-campbell

    i-campbell - 2022-05-24

    try TO_LREAL it should fit in a 64 bit floating point

     

    Last edit: i-campbell 2022-05-24
  • mawaloc - 2022-05-24

    Thank You!!
    LREAL Not supported with screen I use.
    I will investigate with Display supplier.

    thanks

     
  • mawaloc - 2022-05-25

    Hi, Just to said I get it, by using string functions

    thanks you

     

Log in to post a comment.