Closed wtrucci closed 3 hours ago
Hi, I need to read data from modbus registry ad int16 and divide data too. Is it possible to do it? If I use converter I can convert on int16 or divide but not together. Is there a way to do it?
Thanks Regards Walter
Cast to int16, divide by 5 and round to two decimal places:
converter: expr.evaluate("int16(R0)/5", 2)
see exprtk docs for more.
Hi, thanks for tip! Regards Walter
Hi, I need to read data from modbus registry ad int16 and divide data too. Is it possible to do it? If I use converter I can convert on int16 or divide but not together. Is there a way to do it?
Thanks Regards Walter