VARÂ Â Â Â ptr:Â Â Â Â POINTERTOBYTE;Â Â 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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i can get the decimal value of 'H',
the answer of string_value is '72', which is Decimal of H.
how can i get string_value = 48.
Hi. Check OSCAT Basic library with function BYTE_TO_STRH:
https://store.codesys.com/oscat-basic.html m