Analog input - non linear scaling

Good morning,

is there a way to implement a non-linear scaling with the analog input object?

Something like that:

_calib := 6.143;

ScaledValue := EXPT(10, (Loc120B836.Unit.OutImm.PhysicalValue -_calib)/1.286);

I can scale the value by myself, but I would like to see the scaled value in the DefaultView graph (which, by the way, should be logarithmic!)

Best reply by nexidator

You can copy DefaultView, hide the original and display the copy instead. That way you can manipulate the view the way you want. The Mod_Chart does support logarithmic scaling of the Y axis.

BTW: It is not necessary to create an array of length 1 for the Y value. The object does that for compatibility reasons but current HMI versions are able to use a simple variable as well.

View original
1 reply
Resolved