12-13-2006 05:45 AM
Example: (hex values)
10 02 00 01 28 00 35 69 D9 42 EC 9E 4A 3C E7 28 10 10 3E 55 23 1F 3E 1E 88 1D 3F 71 72 C0 3E 22 10 03
first there are some control characters, namely (10= DLE, 02=STX 00=receiver address 01=transmitter address 28=message type 00=shaft number). From there onwards till '22' (checksum) are 6 numbers:
This first three characters can be decoded as following (following the manual of the sensor):
108.70542 (shaft rpm)
0.012367 (torque in kNm)
0.14078 (power in kW)
However, I can't seem to translate the abovementioned hex numbers into the right 'normal' decimal values. I tried using the hex string to number or typecast it, but apparently I am doning something wrong...
Any idea how to translate the hex numbers correctly?
many thanks,
Thijs
12-13-2006 06:59 AM
12-13-2006 07:04 AM
Many thanks!
Sometimes a solution can be so simple!
Thijs