Romilly's HART® and Fieldbus Message Board


[ Follow Ups ] [ Post Followup ] [ Back to top of Message Board ]

Re: How to use the ASCII type

Message posted by Romilly ( : 80.229.220.91) on 26 August 2007 at 19:44:41.

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 .




Follow Ups:




Post a Followup

Name:
E-Mail:

Subject: Re: Re: How to use the ASCII type

Comments:


[ Follow Ups ] [ Post Followup ] [ Back to top of Message Board ]