01-04-2008 05:20 PM
02 STX
3031 3030 Node and subadress
3030 End Code
3031 3031 Command Read from Variable Area
3030 3030 respt code Normal completion
3030 3030 3030 4132 Hexadecimal A2 = 162 (this is the temperature data that I want to show in decimal)
03 ETX
71 Block Check Character
I want to choose the eight bytes for the temperature data and convert it to a decimal number. I have seen the examples to convert a Hexa string to decimal but I do not know how to choose the specifics bytes that I need.
I have look for a driver but i didn´t find any. I am a beginner so please include especific topics for me to study in your answer.
Thanks
Carlos Fuentes Silva Queretaro Mexico
01-04-2008 05:33 PM - edited 01-04-2008 05:34 PM
01-04-2008 05:41 PM - edited 01-04-2008 05:42 PM
If the response always has the temperature starting with byte 15 and is always 8 bytes in length, you can use the String Subset function to get those bytes out of the string. Then use Hex String to Number to convert to a decimal number.
Well someone already beat me to the solution:
01-05-2008 12:29 PM
04-26-2010 10:36 PM
Could you share this driver with me? I also want to read data from OMROM E5AZ temperature controller.
Thank you in advanced.