Value Scaling

Hi,
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.

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

Comments (2)

RSS Collapse / Expand
+
0
When you add a new MODBUS variable try to select the following:
FS2 Channel Type: Double

MOD Register: Input Register
MOD Data Type: UInt

k constant of y=kx+d: 0,0030517578
d constant of y=kx+d: -50
avatar

jimleg

  • 22 August 2011, 11:40
+
0
hi
avatar

ahashhgdsdfjaddsg

  • 16 January 2015, 16:17

Registered and authorized users can post comments only.