Hello!
I try to scale the analog value from Analog Input with the LS-block. In this block, the output value is limited by Y1..Y2 range, even if the input value from AI is out of X1..X2 range.
To trick it, I created a user FB with mathematical relationships which are presented in documentation (Chapter 6.1.3.5), but it works correctly only in the case when the gradient "m" is an INTEGER.
In all other cases Gradient rounded and it takes the wrong scaled value.
Does enybody knows solutions to scale AI beyond ranges X1..X2, Y1..Y2?