Regarding spindlespeed

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

Regarding spindlespeed

Postby Socke » Sat Apr 20, 2024 6:16 pm

How fast are the inputs, regarding spindlespeed (axbb-e)? I have an encoder, which consists of a disk with 100 holes for the encoder and 1 hole for the index. And 3 light barriers. Sadly the inputs need at least 10v, so I have an additional optocoupler, to bring the 5v up to 24v. The signal from the light barriers is very clean and even, even up to 4800 u/min, which should be 4800/60*100=8kHz. If you count on and off separate, it’s doubled. With the optocoupler, the signal gets unsymmetrical, but at 3500 u/min it works, and at 3800 u/min it doesn’t, although on my oscilloscope there’s almost no difference.

The other question is: how can I limit the top speed of the spindle? I have 6 pulley-settings, and on the highest one I’d like to limit the top-speed, as the spindle starts emitting vibrations.
Socke
 
Posts: 25
Joined: Thu Mar 07, 2024 3:37 pm

Re: Regarding spindlespeed

Postby Socke » Sun Apr 21, 2024 11:06 am

I added some pics from the oscilloscope. 500 and ~4700 rpm at 5v and the same for 24v, where ~4700 at 24v is inverted due to a different optocoupler, as the old one didn‘t go beyond 3000 rpm.

Another idea would be skipping the optocouplers on the UCSB and use the 5v signal directly. Is that possible? The 5v source is the same as for the axbb-e.
Attachments
IMG_6101.jpeg
IMG_6101.jpeg (32.98 KiB) Viewed 2344 times
IMG_6100.jpeg
IMG_6100.jpeg (33.36 KiB) Viewed 2344 times
IMG_6099.jpeg
IMG_6099.jpeg (36.84 KiB) Viewed 2344 times
IMG_6098.jpeg
IMG_6098.jpeg (35.51 KiB) Viewed 2344 times
Socke
 
Posts: 25
Joined: Thu Mar 07, 2024 3:37 pm

Re: Regarding spindlespeed

Postby cncdrive » Mon Apr 22, 2024 7:57 pm

Hi,

The max. encoder count frequency the motion controller can read is 50kHz.
5Volts works with the inputs, we just safely specified it to 10V in the users manual, but all optocouplers on all motion controllers are tested with both 5V and 24V before shipping and by design 5V is on the edge.
So, you could use 5Volts for the inputs if really nessessary, but 10V+ is adviced, because the higher the voltage the more noise immune the signal will get.

If the spindle is controlled with analog signal or PWM by the UCCNC then you can set the max. PWM and max. RPM in the spindle settings to limit the spindle speed.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Regarding spindlespeed

Postby Socke » Tue Apr 23, 2024 5:33 am

Thank you, I'll give that a try.
Socke
 
Posts: 25
Joined: Thu Mar 07, 2024 3:37 pm

Re: Regarding spindlespeed

Postby Socke » Tue Apr 23, 2024 6:10 pm

I‘d suggest, you put that 5v hint into the manual. Would have saved me weeks of fiddling around with optocouplers, because it works perfect!

Regarding the max. Rpm, I only see it near the pulley setting. Is that the right one?

Another point regarding the spindle-speed: now the encoder is working, I see the rpm preset doesn’t fit the actual speed. It’s about 200 of at the lowest (100 set, 300 actually at around 2Hz! With the highest pulley), and it gets lee the higher the speed and fits perfect on topspeed (4800 set and actual at 100Hz).

Now how can I improve that? PID-settings, Modbus control the vfd or a better pulley-setup? Or something else?
Socke
 
Posts: 25
Joined: Thu Mar 07, 2024 3:37 pm

Re: Regarding spindlespeed

Postby Socke » Tue May 28, 2024 3:06 pm

Socke wrote:Regarding the max. Rpm, I only see it near the pulley setting. Is that the right one?

Another point regarding the spindle-speed: now the encoder is working, I see the rpm preset doesn’t fit the actual speed. It’s about 200 of at the lowest (100 set, 300 actually at around 2Hz! With the highest pulley), and it gets lee the higher the speed and fits perfect on topspeed (4800 set and actual at 100Hz).

Now how can I improve that? PID-settings, Modbus control the vfd or a better pulley-setup? Or something else?


Any Ideas?
Socke
 
Posts: 25
Joined: Thu Mar 07, 2024 3:37 pm

Re: Regarding spindlespeed

Postby cncdrive » Mon Jun 03, 2024 7:40 pm

With the PID setting the speed control is closed loop, so it could be very accurate.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 14 guests