Sign in to follow this  
Followers 0
MJ90

Analoge scaling

3 posts in this topic

Hi Dear all

I have a FBS-20MA fatek plc.

I wanna scale an analoge process, I did it by using F33 but my output is Integer.How can I convert it to floating point number?

The accuracy is important to me.

 

Share this post


Link to post
Share on other sites

Can't any one answer this question?

Share this post


Link to post
Share on other sites

you may want to post your code when asking for support.

without knowing range of values it may be premature to claim that REAL has better accuracy than INT. sure you may see more decimal places but this may be just misleading. and did you consider fixed point instead of floating point?

i am not familiar with Fatek PLCs, but quick look at their website easily allowed to find the manuals. instruction set manual should explain how to convert INT to REAL or the other way around. the documentation and instruction set looks very familiar (aka "Mitsubishian").

FUN33 is linear conversion using integers. you may want to convert raw value to REAL first (FUN200) then do the linear scaling your self using floating point instructions.

 

 

Linear Scaling.jpg

1 person likes this

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
Sign in to follow this  
Followers 0