Value Scaling

Nice piece of software, simple to use and easy to learn.
I have a Modbus RTU slave connection which is polling nicely and putting the decimal values on the graphical interface.

What I would like to do is scale those Modbus values to show 0-100% instead of 16384 to 49152 as recorded from the device.

I have tried putting in a computable Simulator variable with some code to do it, however it doesn't seem to be able to reference a MODBUS variable from the simulator plugin.

Has anyone else done this before?
I am about to delve into the scripting to see if there is another way.

  • +1
  • 23 June 2011, 21:49
  • RFEE
  • 2