Spidle Speed Tracking

Post anything you want to discuss with others about the software.

Spidle Speed Tracking

Postby KLaphaphong » Fri Dec 07, 2018 8:28 am

Dear All,

Now, I try to get speed feedback from spindle.

I have to connect encoder signal (A, B) and Index Signal by using proximity sensor (NO).

Image

But I face problem when spindle speed more than 500 rpm UCCNC will not show speed on screen.

This is problem can came from response rate (Hz) of proximity? (This proximity is old one can not check response rate).

My idea is change new proximity with response rate is 200 Hz and normally close type.
Image

This solution will help to solve feedback problem or not?

Best Regards,
Krittawit Laphaphong
KLaphaphong
 
Posts: 8
Joined: Fri Oct 19, 2018 8:01 am

Re: Spidle Speed Tracking

Postby Robertspark » Fri Dec 07, 2018 9:16 am

http://www.koyoele.co.jp/english/produc ... D_S_SH.pdf

it looks like that encoder is 1024 pulse per revolution.

so at 500rpm,

500/60*1024 = 8533Hz.

It should do 500rpm no problem...... are you sure it is not 5000 rpm?

What motion controller are you using (UC100, UC300USB, UC300ETH, UC400ETH)?
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 1081
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: Spidle Speed Tracking

Postby Robertspark » Fri Dec 07, 2018 9:52 am

I have re-read your post again....

Why are you not using the index (Z) signal from the encoder?

you don't need a proximity sensor for the index signal
Attachments
2018-12-07 09_50_41-TRD_S_SH.pdf.png
2018-12-07 09_51_16-TRD_S_SH.pdf.png
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 1081
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: Spidle Speed Tracking

Postby cncdrive » Fri Dec 07, 2018 11:18 am

When an encoder is configured for the spindle with the A, B signals then the UCCNC is using the encoder signal to measure the spindle speed (Sact).
And when only an index is configured then it using the index to measure the Sact.
So, if you have all configured then the encoder A and B is used to measure the spindle speed and not the index.

You can easily test the index sensor also, just configure the encoder A and B pins to 0 and leave only the index configured to the pin and then run the spindle to see if the speed is OK then or not.

And the too high frequency of the encoder signal might be the problem.
How did you connect these signals to the motion controller?
If they are connected via a cheap chinese BOB then it is likely that the problem is that the BOB can't throughput the signals, it has cheap slow optocouplers which are not suitable to throughput the fast signals.
cncdrive
Site Admin
 
Posts: 2360
Joined: Tue Aug 12, 2014 11:17 pm

Re: Spidle Speed Tracking

Postby KLaphaphong » Sat Dec 08, 2018 6:57 am

Dear Bob,

Thank you for your suggestion.

I am using UC300ETH with MB2 from CNCRoom.

You are correct. I use 1024 ppr line driver encoder.

I use A and B phase for feedback and Proximity sensor for Index because I read on forum and some comment recommend to use proximity instead of Z phase.


Dear cncdrive,

Thank you for your suggestion.

I will try to diable A and B pin.

Please see attached file for wiring diagram of UC300ETH.
Attachments
MB2-Wiring-Encoder.png
UC300ETH Wiring Diagram
KLaphaphong
 
Posts: 8
Joined: Fri Oct 19, 2018 8:01 am

Re: Spidle Speed Tracking

Postby Battwell » Sat Dec 08, 2018 11:19 am

rob- i found on mine with 2500 line encoder (10000 counts) the z pulse was too short from encoder to use as index. while it would see the signal it wouldnt start threading etc.
but indexing worked perfect with 1 pulse/rev direct off spindle.

also my encoder ab pulse out was through the drive- not encoder direct
i had to divide this output by 8 before passing to uccnc into uccb breakout board for reliable speed reading at 4000rpm .
Uc300eth on router and mill
If they say it can't be done- I find a way!
Battwell
 
Posts: 401
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: Spidle Speed Tracking

Postby Derek » Sat Dec 08, 2018 11:31 am

I don't think the CNCRoom optos are fast enough for the encoder index. My UD1 daughter board from them would not recognize the index from the encoder. If I move it to the LPT5 with no opto it works fine.

Derek
Derek
 
Posts: 297
Joined: Mon Sep 05, 2016 9:57 am

Re: Spidle Speed Tracking

Postby KLaphaphong » Sat Dec 08, 2018 2:58 pm

Dear Derek,

CNCRoom IC Photocoupler is TOSHIBA TPL185.

If I use only index for speed feedback at Motor Max speed 3500 rpm that mean : 3500 rpm / 60 sec = 58.33 Hz.

I think 58.33Hz should be handle by CNCRoom Photocoupler.

Did you this can be solve my problem?


Dear Battwell,

Thank you for your comment.

Best Regards,
Krittawit Laphaphong
KLaphaphong
 
Posts: 8
Joined: Fri Oct 19, 2018 8:01 am

Re: Spidle Speed Tracking

Postby cncdrive » Sat Dec 08, 2018 3:43 pm

If you configured the enclder A and B channels then the UCCNC measures the speed using those and not the Index.
The TLP185 is probably too slow for a 1024 ppr encoder at 500RPM.
cncdrive
Site Admin
 
Posts: 2360
Joined: Tue Aug 12, 2014 11:17 pm

Re: Spidle Speed Tracking

Postby Battwell » Sun Dec 09, 2018 2:28 am

Do you have a 500 line encoder? 2000 counts to try
From my experiments I think this is going to be about the max readable direct up to 5000rpm. ( without doing the mathexact ) but it's about 3400000 pulses with 1024 encoder on a perfect day
I can't quite remember if dividing my 10000 count by 4 worked correctly. I know I set it at /8 for reliability. And it's worked perfectly since. :D
Uc300eth on router and mill
If they say it can't be done- I find a way!
Battwell
 
Posts: 401
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 1 guest