Page 1 of 1
reset counter at a hour
Posted: Tue Apr 29, 2014 2:00 pm
by RZK
Hi everybody, i want a counter reset, not with a trigger but with a time value like what i have posted i don't find the solution, if someone have please help me ! I can say i'm a noob in flowstone ^^
thanks !
Re: reset counter at a hour
Posted: Tue Apr 29, 2014 3:54 pm
by tester
Like this?
Re: reset counter at a hour
Posted: Tue Apr 29, 2014 4:02 pm
by RZK
WTF I have tried this but in string... thank's a lot !
Re: reset counter at a hour
Posted: Tue Apr 29, 2014 10:45 pm
by tester
You can make it even simpler.
Re: reset counter at a hour
Posted: Tue May 06, 2014 1:24 pm
by RZK
Thanks for your help tester. I need one more thing, if the computer is shut down at the hour of the reset this counter isn't reseted. i want to reset my counter at a new day if its possible.
Re: reset counter at a hour
Posted: Fri May 09, 2014 8:06 am
by RZK
UP
Re: reset counter at a hour
Posted: Mon May 12, 2014 9:37 am
by RZK
hi everybody, my counter need to do not reset my counter when i have a power failure, like a save of the value. i don't know if a program in flowstone can make that(ex: counter at 015==>power failure at restart of program start value of counter ==>015). Next stuff to develop is to reset this counter at 00:00 or at a new day even if i have the computer is shut down. Then at restart the day have changed. Is possible to use this value to reset the counter ? I know its a hard problem ^^ but i need to find solution with Computer program like flowstone. I tried to do that with a PLC its simple but the communication it's hard... in flowstone communication extra simple but programming hard xD. Thank's for reading guys ! (sry for my English

)
Re: reset counter at a hour
Posted: Mon May 19, 2014 6:50 pm
by tester
If you save your reset date to text file on reset point, then at next app start - app can compare current date with last date that was saved in file (file is overwriten each time when it's saved). Have you tried to use that?
Re: reset counter at a hour
Posted: Tue May 20, 2014 2:37 pm
by RZK
i will, thanks for the advice !