Spindle ENCODER UB1 board connection - NOOB

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

Spindle ENCODER UB1 board connection - NOOB

Postby NUDEcnc » Sat Dec 12, 2020 1:38 pm

Hi
how can I connect UB1 board with this spindle encoder:

My encoder version is GS T


spindle encoder.jpg


Can I connect encoder to 5v on the UB1 board?
how do I connect A+A- B+.... signals?
Please help.
Regards Arek

Link for the UB1 board manual :
http://www.cncroom.com/downloads/UB1%20 ... 0E15R0.pdf
CPU cooling made by me: http://www.nudecnc.eu
User avatar
NUDEcnc
 
Posts: 19
Joined: Fri Nov 09, 2018 8:24 pm

Re: Spindle ENCODER UB1 board connection - NOOB

Postby Robertspark » Sat Dec 12, 2020 11:04 pm

think you will need to convert the differential signal to singled ended

see: AM26LS32

https://www.ti.com/lit/ds/symlink/am26l ... irefox-b-m

Or a manufactured product:
https://www.cnc4pc.com/c46-differential ... erter.html

For UB1, have a look at manual page 10 - Inputs:

5 channels of 5Vdc isolated NPN inputs including X210-X215 which is suitable for low
voltage devices such as MPG, encoder.
• 5 channels of 24/5Vdc selectable isolated PNP inputs including X310-315, which is
suitable for industrial sensors with PNP type output
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Spindle ENCODER UB1 board connection - NOOB

Postby Derek » Fri Dec 18, 2020 11:19 am

You may find the opto's on the UB1 are too slow to accurately read the RPMs.
Derek
 
Posts: 341
Joined: Mon Sep 05, 2016 9:57 am

Re: Spindle ENCODER UB1 board connection - NOOB

Postby spumco » Sun Dec 20, 2020 7:35 pm

I've had pretty good success with a low-res encoder just sending one half of the differential signal pairs to the BOB. Different BOB than UB1, but it's not got high-speed optos either. A 200-line (800 count) encoder has been plenty for synchronized tapping on my machine up to 2kRPM.

Power the encoder from the UB1 5v output, and hook up the A+/B+/Z+ to three of the inputs. X2xx inputs are 5v NPN's.

If you keep the encoder count down then the UB1 optos should handle it. Obvioulsy it depends on max spindle speed, desired resolution and so forth - you'll need to do the math. I believe there's a UB1 video (or thread here?) showing about 20kHz is the useable top end - but research and double-check that number.

I suspect (but haven't tried this) that if you have an encoder count too high for the UB1 to keep up at high spindle speed then UCCNC will just ignore the signal saturation... assuming you aren't using the PID control. Activating the PID control and saturating the UB1 optos would probably cause UCCNC to control the spindle rather badly.

It also depends on what you're driving the spindle motor with... if you're using a servo drive or a higher-end VFD the drive may have emulated outputs you can use. If this is the case, then the encoder is powered by and connected to the drive, and the outputs are sent to the UB1 with whatever scaling you need to keep the signals below the UB1 opto saturation point.
spumco
 
Posts: 306
Joined: Mon Oct 03, 2016 10:10 pm

Re: Spindle ENCODER UB1 board connection - NOOB

Postby spumco » Mon Dec 21, 2020 2:50 am

OP - Just saw your web site... are you trying to fit an encoder to that high-speed spindle motor on your granite router? Looks like an 18k-24k water cooled spindle.

If this is correct, why do you want a spindle encoder for this? And how do you intend to drive/operate the encoder? You certainly aren't going to run it slow enough to do rigid tapping - just threadmill everything.
spumco
 
Posts: 306
Joined: Mon Oct 03, 2016 10:10 pm


Return to Ask a question from support here

Who is online

Users browsing this forum: Majestic-12 [Bot] and 40 guests