17.03.2026, 08:29
Hello,
I have a modbus device that scales values in a strange way and I don't know how to make it work, if possible, with LM5.
Basically the formula is: (value+5)*2+30, in other words it reads values from -20 to 100 and represents values from 0 to 240
so, for example, if the value read by the instrument is -20, via modbus I will read 0.
Any ideas on how to integrate it in a json modbus profile?
I have a modbus device that scales values in a strange way and I don't know how to make it work, if possible, with LM5.
Basically the formula is: (value+5)*2+30, in other words it reads values from -20 to 100 and represents values from 0 to 240
so, for example, if the value read by the instrument is -20, via modbus I will read 0.
Any ideas on how to integrate it in a json modbus profile?