Page 1 of 1

Help for repetitions counter

PostPosted: Thu Dec 14, 2017 4:27 pm
by dasvar
Hello,
I am using a subroutine to repeat a set of motions N times and I want to have a textfield on my screen that shows how many repetitions have already been done. How can I do this?

Harry

Re: Help for repetitions counter

PostPosted: Thu Dec 14, 2017 7:56 pm
by Robertspark
Edit your screen using the screen editor tool on the configuration tab

Add a text box, give it a unique number say 5000.

You may need to add a button to clear / reset the textbox value (it depends how your macros run)

Then edit your macro such that it stores the current cycle number and increments it by one every time it is run

And a line of code that passes this count to your textbox that you cleated.

At the end of the macro you can create some code that will reset the count to zero and clears the field

Re: Help for repetitions counter

PostPosted: Fri Dec 15, 2017 8:43 am
by dasvar
Thank you both for your help, I think that I can handle it now.
Harry