Rounding the value to Zero
I am using Zenon Energy Edition, 6.51 SP0 on windows server 2008 R2, x64
While reading an Analog value over Modbus TCP from a device, the value ranges between 0 and 70. But some times, the device register (holding register) shows negative value like -1.
But we need is that if the value ever becomes less than 0, it should still show zero. And if it is more than 0, it should show the normal raw value received.
How can we do it?
This is a migrated post! Originally posted on 20.11.2014 by user shikra. Please be aware that information can be outdated.