Mshak Posted September 30, 2019 Report Share Posted September 30, 2019 Hello, I noticed that the Unilogic software doesn't provide counters like other software's do. I am having trouble getting out of a loop pulse timer. I am trying to get out after it loops 5 times through. Any ideas? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted September 30, 2019 MVP 2023 Report Share Posted September 30, 2019 Is there some reason something simple like this won't work for you? Substitute the Exit Loop bit for whatever conveniently exits your loop. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted September 30, 2019 MVP 2023 Report Share Posted September 30, 2019 By the way, standard programming loops (and GOTOs) are very poor practice in PLCs using Ladder Logic. A mistake could trigger the Watchdog Timer and halt your program. It's much better to use a State Machine instead. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now