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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted December 7, 2017 MVP 2022 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted December 8, 2017 MVP 2022 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. Quote 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted December 11, 2017 MVP 2022 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. Quote 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted December 12, 2017 MVP 2022 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". Quote 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. 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.