I am reading the values in the registers of a modbus slave. But the values stored in the registers is combination of two registers. That is if register 3 has 72, and register 4 has 489. The actual value is 72489. I was able to do this.
But the problem arises, when the value in the second register starts with 0. That is if register 2 has 72, and register 4 has 012. The actual value should be 72012, but I get 7212. Is there a way to prevent this.
The part of code which does this is,
`rr = client.read_holding_registers(2, 22, unit=1)
unconcatenateSensorConsumptionValues = rr.registers
sensorsConsumptionValues = []
for i in range(0, 10, 2):
ftemp = ""+str(unconcatenateSensorConsumptionValues[i])
stemp = ""+str(unconcatenateSensorConsumptionValues[i+1])
fin = ftemp+stemp
sensorsConsumptionValues.append(int(fin))`
