Hello,
I've been looking for a while now and cant find answer. At least not an answer I can understand. What I'm trying to do is take an ad reading from a lm34 and pack it into a 32bit floating point variable to send to a modbus rtu master. I have the mod bus comunication working but I am not sure on how to pack the variable. For instance, with my LM34 temp sensor if I get a reading of 751, this equals 75.1 degrees but I cant for the life of me figure out how to pack this up into a 32bit floating point variable. The method of modbus rtu I am using relies on the IEEE 754 Big Endian format. I have found lots of info but nothing I can understand. Can someone please point me in the right direction.
Thanks
nick
Bookmarks