How to convert integer value coming from modbus to float value

Use the offset to access other bytes,

MB address Returns offset byte
240 16 bit integer (2 bytes) 0
241 16 bit integer (2 bytes) 2
242 16 bit integer (2 bytes) 4
243 16 bit integer (2 bytes) 6
244 16 bit integer (2 bytes) 8
245 16 bit integer (2 bytes) 10
246 16 bit integer (2 bytes) 12
247 16 bit integer (2 bytes) 14
248 16 bit integer (2 bytes) 16
249 16 bit integer (2 bytes) 18
250 16 bit integer (2 bytes) 20
251 16 bit integer (2 bytes) 22
252 16 bit integer (2 bytes) 24
253 16 bit integer (2 bytes) 26
254 16 bit integer (2 bytes) 28
255 16 bit integer (2 bytes) 30
256 16 bit integer (2 bytes) 32
257 16 bit integer (2 bytes) 34

e.g...


The second output is for "i dont know but pretty sure it is documented in the built in help for that node" :slight_smile:

1 Like