I'm using python on my raspbian testing system. For communicating with a 10Channel devices (Temco P3-PT10) connected with PT100 temperature sensors im using minimalmodbus.
Therefor i want to read register 100~101 for the temperature of Channel 1: The description says: "When set INT, 100 will show 0 and 101 show the temperature for channel 1, 250= 25.0C when set flaot,100 and 101 show 25.0000C"
I started reading with:
temperaturef = instrument.read_float(r, 3, 2)
temperature = instrument.read_register(r, 0)
I got the output of:
Address 100 R: 62915 F: -4.95029165077e+32 // Address 101 R: 16684 F: 10.7924995422
The first column shows the register values the second column the float values comming back.
My question: - what ist stored as register values? Can i convert them to float? - and why is the first value of float negative?
Am i doeing something wrong?
thx for helping!