How to properly scale up or down a value from a device in Ignition edge

Hello Everyone,

Can anyone guide me on how to properly use the scale function for a tag? this is the instruction from the device manufacturer.

This is what I setup in the tag properties

he

Did I do it right? if not please help, though I am getting the correct value, and also what are the other way around? Thank you for the help in advance.

Yes, a linear scale is the correct way.

I'd do this as I find it easier to read and mantain:

Raw low = 0
Raw high = 1
Scaled low = 0
Scaled high = 0.01
Eng Low = 0
Eng high = 9999
Eng units = Hz

You will also need to change your datatype to Float

Do note that you cannot use clamping with this simplification. And since 0.01 cannot be perfectly represented in binary, you will get inaccuracies when that is extrapolated. I deliberately use the expected full engineering range corresponding to the possible raw integer range. Perhaps rounded only slightly to get scaled low and high as close to integers as possible, unless clamping will be used.

Oh interesting. I never use clamping on the scaled since you could do it on the Eng side anyways but I had not considered the implications of the FP errors.

I liked doing it this way for exactly what OP has where they often just put the scaling in the units but this gives me pause to check if this would have any noticeable errors.