horvatmiha

M221 & SoMachine Basic - ANALOG INPUT SCALING

4 posts in this topic

Hello!
I am new at PLC programming. I am using TM221CE16R PLC with TM3AI8 analog input module and SoMachine Basic v1.6. I am trying to scale analog input value. I am using 4-20 mA pressure sensor. I managed my wiring so that I get raw values in SoMachine Basic. But I don't know how to scale these values to usable values. My sensor works in range 0 - 16 bar. What is best way to get values? Is it PID function block or multioperand function block using equations to get range 0 - 16?

I will appreciate your help.

 

Thanks in advance!

Share this post


Link to post
Share on other sites

PID has nothing to do with scaling.

Share this post


Link to post
Share on other sites

Thanks a lot for your replies. @Wasan, scale equations work great, also your program example is perfect. It's all clear to me. Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now