easy-forum
English Support - Software => easySoft => Thema gestartet von: dmsque am Februar 21, 2026, 11:14:54 Vormittag
-
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?
-
Hallo,
bitte den Eingangs- oder Ausgangswert der LS-Skalierung mit einem VC-Baustein (Wertbegrenzung begrenzen.
Gruß, Jürgen
-
Maybe I described my task in a wrong way.
Example:
Source - AI in mA (4..20mA).
Output value - weight in kg.
LS module
X1 = 5mA
Y1= 0 kg
X2 = 10mA
Y2= 1000kg
If signal on AI is in the range 5..10mA, LS block would be scale correctly from 0 to 1000kg.
But in my case I need to scale lager weight, for example 2000kg. It correspond to input value ~15mA. Output walue from LS block whatever will be 1000kg.
It looks that LS-block has inbuild VC-limit)
-
I found a solution.
I multiplied Gradient "m" x1000, and devided it by 1000 at calculating scaled value.