How to convert integer value coming from modbus to float value

Same as last time - look at the image you posted...

Also, are you reading values close to each other in modbus?

If you are reading registers 240-241 AND registers 256-257 then I strongly recommend you read all registers from 240~257 in one MODBUS node and use the parser to pick out the values of interest. This has the following advantages....

  1. values are read at the same scan of the device (and are therefore consistent)
  2. reading 1 modbus poll of 28 items is faster than 2 modbus polls. This will only get worse with each additional single read/poll.
  3. Individual modbus comms lead to contention on the wire (and eventually timeouts - search the forum - covered many times)