Sign in to follow this  
Followers 0
davidtorati

Average Function

2 posts in this topic

hello Please let me know how to make an average value of N 16 bit registers (N>50). Do I have to use ADD Function and then divide it by N or is there an easier way to do it? I use CPU331. Thanks David

Share this post


Link to post
Share on other sites
GE Fanuc does not have an Average Function, even in the PAC you would need to build your own. You will need to do it the long way, with ADD Funtions and then Divide. It is not difficult and if "N" is a constant value, very fast to implement. I recommend putting the logic in its own Block and calling the Block when needed.

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