Sign in to follow this  
Followers 0
ABlearner

Average motor speed

2 posts in this topic

Hi Guys!
 

There is a task. I have a motor, and I can monitoring the actual speed. The question is how can I to determine the average speed, if I know just the actual speed. If the speed is zero, it must be ignored. So I have to measure when the motor moves. Anybody have any idea? How can I solve this problem. RSLogix 5000. 

Thank you.

 

Share this post


Link to post
Share on other sites

you can use timer to sample speed periodically (using some regular interval, say every 0.5 sec).

Goal is to count all samples (N) and also sum them all up (Total).

your average is then just a ratio Total/N

if you want running average that ignores stopped case, you can use current average instead of sample value when computing Total.

another option is to ignore it but in this case you also must prevent incrementing of sample count N.

 

if process is long running, total can reach large values and this would have to be handled. 

 

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