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

how can i get the 16# value from H

edmond
2018-10-02
2018-10-02
  • edmond - 2018-10-02

    i can get the decimal value of 'H',

    VAR   
       ptr:      POINTER TO BYTE;
       byte_value:    BYTE;
       string_value: STRING;
    END_VAR
         ptr:= ADR('H');
          byte_value:=ptr^;
        string_value:=BYTE_TO_STRING(byte_value);
    

    the answer of string_value is '72', which is Decimal of H.
    how can i get string_value = 48.

     

Log in to post a comment.