Anyone have experience with having an Arduino talk to rosemount transmitters through the Rosemount 1410 gateways?
Im looking for a lead on code to make a call from the Arduino to a transmitter.
thanks,
sean
Anyone have experience with having an Arduino talk to rosemount transmitters through the Rosemount 1410 gateways?
Im looking for a lead on code to make a call from the Arduino to a transmitter.
thanks,
sean
Well, it worked! Using a python script with the pyModbusTCP library, it read in the registers. It took some detective work to find the address IDs to send.
I also learned how Rosemount passes numbers through the Modbus protocol. It uses IEEE 754 floats which are represented by a 32 bits. Two 16 bit registers are polled which return a decimal value to the python script.
You have to move the last one in front of the first and then convert each to binary. To get it from binary to the actual value, you have to solve a series of riddles such as bit one represents if it is a positive or negative number. It's crazy, but allows for super accuracy of the data. In the end, my script was 90% converting the two register values to an actual single float!
Here's a reference of the IEEE 754 format: https://www.h-schmidt.net/FloatConverter/IEEE754.html .
See ya,
Sean
Since there is a remote monitoring project14 running in this arena, I took the evening to better document this experience:
Big Petro Maker Magic: $100 Datalogger That Can Save Millions
Thanks for all your input!
Sean