solomoneli Posted December 7, 2017 Report Share Posted December 7, 2017 I'm trying to setup a function where an output will turn on when an input is trigger 30 times. so the basis is: A valve will open up once a switch is triggered 30 times. Thanks for the help. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted December 7, 2017 MVP 2023 Report Share Posted December 7, 2017 Use the input to increment a counter with a preset of 30. Use the counter to trigger the output. Search on Counters in the Help file to understand how to use them. Alternatively, use the input to increment an MI. When the MI = 30, trigger the output. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted December 8, 2017 MVP 2023 Report Share Posted December 8, 2017 It's always good to try your hand at writing logic and then post your code with questions. Often we can make some tweaks to make it work. Joe T. Link to comment Share on other sites More sharing options...
solomoneli Posted December 11, 2017 Author Report Share Posted December 11, 2017 Here's what I have so far. It didn't work so I don't think I'm doing this correctly. That's a compare function. I didn't notice a counter going up. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted December 11, 2017 MVP 2023 Report Share Posted December 11, 2017 You need an increment function in addition to the compare function - something like this: You will also need some logic to turn off O3 at some point. Link to comment Share on other sites More sharing options...
solomoneli Posted December 12, 2017 Author Report Share Posted December 12, 2017 I don't think the U90 ladder has an increment function, at least not one I can locate. Is there an alternative method? Also I am going to put it on a timer once it's on. I do know how to do that. Thanks for you help. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted December 12, 2017 MVP 2023 Report Share Posted December 12, 2017 Sorry, I lost track of which forum I was in. I don't think U90 has the Reset Numeric function either. Increment just means "add 1". Link to comment Share on other sites More sharing options...
solomoneli Posted December 13, 2017 Author Report Share Posted December 13, 2017 thank you! worked perfectly. 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