Replacement of LCLiScUINT() function block in AS6

Hello!
I am trying to convert AS4 project to AS6. I realized that there is no LoopCont - LCLiScUINT() function block existing in AS6. I am doing a scaling or linearization of analog integer values from sensors.
Is there some replacement for it?

Thank you!

LCLiScUINT()

Hi Andrej,

Please take a look at Marcel’s answer on an earlier post for some suggestions.

Thank Marcus, but I think that I cannot find same functionality in MTBasics. But just to mention I am rookie at programming. :wink:

Hi Andrej,

depending on what you trying to do here are some options you should take a look at.

MTBasicsLimiter

MTHydValveLinearization

LCRLimScal()

MtLookUpTable would also work.

Thank you @marcel.voigt. LCRLimScal() will do the job. I just need to convert INT to REAL beforehand.

Thank you again!

2 Likes

Hi @Kolma

a heads up: when searching for the FUB you might not come across the landing page of the library that contains it: B&R Online Help
→ “This libary is replaced by the Mechatronics libraries.”

I recommend to not use that specific FUB so you won’t have to do it all over again once the FUB becomes unavailable-

Best regards

1 Like

Hi @michael_w

Which FUB should I use as a replacement for LCRLimScal()?

Thank you

Hi there,

unfortunately it looks like this FUB has no successor.
Maybe if I have some more time I can whip up a small method, but this should only be a small method to implement on your own - that would be the most future-proof way I guess

Best regards

Hi @michael_w

No worries, I can implement it myself. But thank you anyway :slight_smile:
I’m just a bit annoyed, that there is no replacement in the successor library.
And according to the linked post, I’m not the only one.

Best regards