Autor Thema: LS-block limits  (Gelesen 29 mal)

Offline dmsque

  • Newbie
  • *
  • Beiträge: 7
LS-block limits
« am: Heute um 11:14:54 »
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?

Offline Juergen__R

  • Full Member
  • ***
  • Beiträge: 311
  • I love easy-Forum.net
Antw:LS-block limits
« Antwort #1 am: Heute um 11:52:01 »
Hallo,

bitte den Eingangs- oder Ausgangswert der LS-Skalierung mit einem VC-Baustein (Wertbegrenzung begrenzen.

Gruß, Jürgen

Offline dmsque

  • Newbie
  • *
  • Beiträge: 7
Antw:LS-block limits
« Antwort #2 am: Heute um 15:14:03 »
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)

Offline dmsque

  • Newbie
  • *
  • Beiträge: 7
Antw:LS-block limits
« Antwort #3 am: Heute um 21:33:23 »
I found a solution.
I multiplied Gradient "m" x1000, and devided it by 1000 at calculating scaled value.