in reply to: How to use the ASCII type posted by vijay supe on 24 August 2007 at 11:14:25.
I think you need to describe your problem more precisely, Vijay. Does the 5-byte response to your command contain the device's 38-bit Unique ID? Are you really just asking for the format of a HART Unique ID? If it is the Unique ID, maybe you should split it into its component parts for display: manufacturer code and device type code separate from the device identification number (serial number). Or is it something else? If something else, what is the format of those 5 bytes?
Are you wishing simply to convert a binary number into decimal for display? If so, standard conversion routines are well-known. See for example http://www.dreamincode.net/code/snippet822.htm .