saruans

What in my code is slow

7 posts in this topic

Hello,

I want to count rotation time or cycle. I am using bellow code in the picture. If I set timer 10 ms, when counter working well, but I set timer 1 ms the counter working same how set timer 10 ms. I have question in my code is slow timer or counter and somebody give me advice how need count the rotation ms accuracy.  

 

slower.jpg

Share this post


Link to post
Share on other sites

Perhaps it has something to do with the program scan time?

1 ms is challenging.

Edited by atanas

Share this post


Link to post
Share on other sites

More information would be required.

WHICH PLC?  Different models have different cycle times, and they should document the accuracy of the timer function in the manuals.

WHAT IS THE CYCLE TIME SET TO?  Many PLCs have a setting for the cycle time.  Maybe it's set to 10ms and so you can't be more accurate than that.

Share this post


Link to post
Share on other sites

My PLC is M241CE24T/U

Where are can find Cycle time setting?

Share this post


Link to post
Share on other sites

Don't know that model, I only know the older ones, haven't touched Modicon in a decade.  

Someone more familiar with the current software will have to answer, sorry.

But I do see in the manual that there are task settings to be made to determine which programs run and how often.  That is what I was referring to.

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