Posted 3 Sep 2018 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
Posted 4 Sep 2018 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