Page 1 of 1

tool carousel and ppr

PostPosted: Sun Jun 19, 2022 11:50 pm
by mark4
Hello
I need to count the station on a tool carousel with a geneva gear.
i think it is just put a dro on the screen and use a macro to count 1 every time the sensor pulses
then reset to 1 when it reaches 21.

I also need to count the ppr of a digital signal created by a spindle drive that has an encoder.
i can maybe manage this by slowly spinning the spindle and counting. but a accurate count would be much better

Do i do this with a macro or a macro loop ?
how do i put a dro on the screen to accomplish this
Thank you

Re: tool carousel and ppr

PostPosted: Mon Jun 20, 2022 9:43 am
by Battwell
use edit screen in settings tab to add a dro.
see programming manual and samples of code in macros section of the forum for correct syntax.
remember screen uses strings and numbers will be doubles so need converting forward/back as you use them.
all good fun to learn but its something you have to do to get results.

Re: tool carousel and ppr

PostPosted: Tue Jun 21, 2022 2:21 am
by mark4
Thank you for the reply. I am a little sketchy on the dro.
I looked through the fields list and did eventually find this.
195 PositionDROsdigits This might be the dro i am looking for ?
Where can i find information on how to apply this dro. And is it the dro i want.
i am just learning my way and lost is a good description.

i would love to see an example but so far have not found one.
Others have had to count I am sure wish i knew how they pulled it off.

Re: tool carousel and ppr

PostPosted: Tue Jun 21, 2022 10:38 am
by ger21
No, 195 is not what you want. 195 is the number of decimal places to display.
I think you want to create a "user" DRO, and use a macroloop to send data to it.