mister x

Logix 5000 - make a delay in For_Do loop iterations

4 posts in this topic

I'm trying to write a simple Structured Text routine to move some DINTS from an array into a tag.  I need to have a time delay between each For count := 0 to 10 loop iteration, but can't seem to come up with a solution.  Any ideas?

Share this post


Link to post
Share on other sites

Call it with a Periodic Task rather than continuous. Then set the time to how often you want it to run

Share this post


Link to post
Share on other sites

You could also use a timer and increase the index every time it elapses, in this case you wouldn't use a for loop.

Share this post


Link to post
Share on other sites

you could create a ladder routine in periodic and set a MOV function of a FLL, it is easier than LIST

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