raulillo Posted February 2, 2018 Report Share Posted February 2, 2018 Hi. I am new with a vision120. I need to know how long a condition is activated. (chronometer). and that when it stops being active it starts at 0. increasing and I can not find the solution. thank you very much. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted February 2, 2018 MVP 2022 Report Share Posted February 2, 2018 Read the help section on Timers. Lots of great detailed information there. Quote Link to comment Share on other sites More sharing options...
raulillo Posted February 2, 2018 Author Report Share Posted February 2, 2018 Thanks for the response. (sorry mi English ) but after reading the help section. I have not managed to find anything, all the timers are decreasing. I need that they are increasing And ser the times hmi Thanks again Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted February 2, 2018 MVP 2022 Report Share Posted February 2, 2018 They count down by design. If you want to see the value increase then select "elapsed time" on the timer variable display. A better option may be to make your own timer by incrementing an ML with the SB 13 one second pulse. You didn't say how long you want to time for, but this gives you more flexibility. Joe T. Quote Link to comment Share on other sites More sharing options...
raulillo Posted February 2, 2018 Author Report Share Posted February 2, 2018 thank you, joe. I need 10 mS I create a ml with a sdw0? 2.5 ms? But no reset thanks! Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted February 2, 2018 MVP 2022 Report Share Posted February 2, 2018 SDW 0 is a free-running accumulator with 10 ms precision. You could use that by making a copy of the value at some time and then doing a continuous subtraction of the current value minus the copy . SDW 3 counts instances of 2.5 ms. So it's count at 10 ms is 4. You could use this and do some math to get real time. Or you could increment an ML with a self resetting 0.01 s timer: Now my OCD is kicking in..... It would be interesting to let it run and compare the accumulated value to a real chronometer and see what the accuracy of the timers are. Here's one I found online: http://online-stopwatch.chronme.com/ The maximum value of an ML is 2,147,483,248, so if you let your accumulator run up to 2,000,000,000 (2 billion) you will have accumulated 231.48 days worth of seconds. On second thought, that's too long to wait. If you let it go for 6 hours your ML should be equal to 2,160,000. If you ran the online chronometer for 6 hours and you have fast hands you could put a bit in front of the timer so you could stop and start it from the screen. Then you could look at the value of the ML when the online chronometer stops compare the two. Joe T. 1 Quote Link to comment Share on other sites More sharing options...
raulillo Posted February 6, 2018 Author Report Share Posted February 6, 2018 thanks... its. perfect. 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.