Search the Community

Showing results for tags 'convertion'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 1 result

  1. I need to know if there is an easy way to convert a hex value to ascii without going through all of the math. In the ContolLogix 5000 software, I can find how to do a string to decimal (STOD), but the problem is the initial value. For example, the hex value for ASCII 3 is 31, ASCII 4 is hex 32, etc... If I do a STOD to create a string from the value of hex 31, I get a string of: '31'. I need to send this value out to hyperterminal and read a 3, not 31. If it was only reading one source and did a simple subtract and mov commands for the values of 0 through 9, that would not be a problem. However, my problem is that I am continuously reading multiple valuses from several sources and I don't want to have to write the code for each character from each source. I could do and AOI or UDT, but isn't there a simple instruction in the logic?