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

converting Ascii

Spring
2020-05-22
2020-05-28
  • Spring - 2020-05-22

    Hello all,
    Is it possible to convert ascii code to a real or integer?
    How is it possible to store the ascii in a value using Binary Coded Decimal?
    BR,

     

    Last edit: Spring 2020-05-22
  • m.prestel - 2020-05-25

    Hello,

    VAR
        sText : STRING := 'a';
        uiValue : UDINT;
    END_VAR
    uiValue := sText[0];
    

    Best regards,
    Marcel

     
    • Spring - 2020-05-28

      Thanks Marcel.

       

Log in to post a comment.