tool carousel and ppr

If you have a question about the software please ask it here.

tool carousel and ppr

Postby mark4 » Sun Jun 19, 2022 11:50 pm

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
mark4
 
Posts: 26
Joined: Tue May 24, 2022 3:55 am

Re: tool carousel and ppr

Postby Battwell » Mon Jun 20, 2022 9:43 am

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.
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: tool carousel and ppr

Postby mark4 » Tue Jun 21, 2022 2:21 am

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.
mark4
 
Posts: 26
Joined: Tue May 24, 2022 3:55 am

Re: tool carousel and ppr

Postby ger21 » Tue Jun 21, 2022 10:38 am

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.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 27 guests