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? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted September 30, 2019 MVP 2022 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted September 30, 2019 MVP 2022 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.