Okay I am having trouble figuring out how to include a counter in my program. I have attached the program to this post. I need to be able to count the total runtime in hours, minutes, and seconds. From the time we hit start to the time we hit stop the counter should be running. But I do not want it to reset when I hit stop. I need a seperate reset button for that. I can almost get a counter going but it resets everytime I hit stop. I don't know what to do.
Also the programs timed loop sends out the created waveform alternating the direction each time, I need a counter that keeps track of each change in direction. It is basically a count after every complete period which would be from: zero to ramp up, to hold at 80rpm, to stop. After each completion of this cycle I would need a count. I do not know where to insert this counter in my loop. Any help or advice you can offer would be greatly appreciated. Thank you
Tony