586,067 active members*
5,130 visitors online*
Register for free
Login
Results 1 to 12 of 12
  1. #1
    Join Date
    Jan 2009
    Posts
    234

    Spindle Encoder Index Issue.

    Finally got my electronics wired to the lathe and got some movement.

    When I hooked up the encoder DRC M21AASODB4D-2000 "Data Sheet For Encoder" mach3 will show somewhat correct and stable spindle speed to 360rpm but after that it is all over the place. In diagnostics I do not even see the Index pulse blink.

    I have it Wired +5V, Ground, ZR+ (Index)

    Tried messing with Debounce anything other than 0 make it inoperable.

    I Did a Google search but only thing I came up with is maybe the pulse may be to short? And will require a stretching circuit. Monostable or "One Shot" or Pulse Extender Circuit

    Would there be any other setting in mach3 I can try?

    Thanks.
    Machines: Grizzly G0704 Mill W/ 3-Axis DRO | Birmingham 12X36 Lathe W/ CNC Retrofit PMDX-126/107 W/ESS 3ph W/ WJ200 VFD

  2. #2
    Join Date
    Dec 2003
    Posts
    24221

    Re: Spindle Encoder Index Issue.

    Mach itself is not going to read the index pulse, especially on a 2000p/rev encoder.
    You need a pulse stretcher.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  3. #3
    Join Date
    Jun 2010
    Posts
    4256

    Re: Spindle Encoder Index Issue.

    mach3 will show somewhat correct and stable spindle speed to 360rpm but after that it is all over the place. In diagnostics I do not even see the Index pulse blink.
    Known problem. Typically an encoder does not have the guts to drive much at all. Very slow stuff, as you found, may be OK, but fast ... nope.
    It's not that the pulse is too short; it just 'fades away' at speed when wrongly loaded. You will need an interface - often called a Break out Board or BoB. And a CRO would help.

    Having just rebuilt my system to have proper encoder interfaces good to about 3,000 rpm, I sympathise.

    Cheers
    Roger

  4. #4
    Join Date
    Jan 2009
    Posts
    234

    Re: Spindle Encoder Index Issue.

    Ok, Playing around I had to build a simple RC filter 10K & 5UF was the magic combo for the ZR+ Index Pulse. Now the RPM Displayed in mach3 is correct and stable now at all speeds!

    Now that I have it all wired with flying leads I can do finial wiring and she will be ready to start making chips! Lets hope no more setbacks or delays.
    Machines: Grizzly G0704 Mill W/ 3-Axis DRO | Birmingham 12X36 Lathe W/ CNC Retrofit PMDX-126/107 W/ESS 3ph W/ WJ200 VFD

  5. #5
    Join Date
    Jun 2010
    Posts
    4256

    Re: Spindle Encoder Index Issue.

    a simple RC filter 10K & 5UF was the magic combo for the ZR+ Index Pulse. Now the RPM Displayed in mach3 is correct and stable now at all speeds!
    Well, the general idea of an RC filter is certainly right, but 10k and 5 uF give a time constant of 50 milliseconds. If those are the correct values, you should be getting an RPM reading of zero. Do you maybe mean 5 nF, or 5 pF? I use 10k and 150 pF myself.
    Or do you mean a pull-up of 10k with 5 uF in parallel?

    Cheers
    Roger

  6. #6
    Join Date
    Nov 2008
    Posts
    412

    Re: Spindle Encoder Index Issue.

    Maybe this help. While back I have downloaded a pdf created by Chris Humpris
    and where I found simple encoder idea that is very accurate and works well with Mach3 'INDEX"..

    Good luck.
    Attached Thumbnails Attached Thumbnails Capture.jpg  
    Forget about global warming...Visualize using your turn signal!

  7. #7
    Join Date
    Jun 2010
    Posts
    4256

    Re: Spindle Encoder Index Issue.

    That's the general idea, but only if you do not already have an encoder mounted on the motor.
    If you already have an encoder you need to cut off the bit to the left of the Schmidt trigger, and (probably) add a pull-up resistor to the encoder output.
    A 74HC14 will do nicely for the Schmidt trigger, and does not need the buffer transistors. It should be mounted near the BoB.
    What the circuit does not show is any filtering, which is very often needed.

    Cheers
    Roger

  8. #8
    Join Date
    Jan 2009
    Posts
    234

    Re: Spindle Encoder Index Issue.

    RCaffin, Yes I am Using RC as a pull-up was not able to find in my stash of parts pF or nF caps so used what I had. I will try and scavenge some from some scrap pcb's and make a proper filter. But it is working with what I have done. Only issue now is when the machine is powered down the spindle speed in mach defaults to a few hundred RPM not 0 so it is still receiving a signal.

    I have a few 556 (Dual 555's) and was looking at the Schmidt trigger based on the 555 to clean it up.

    Machines: Grizzly G0704 Mill W/ 3-Axis DRO | Birmingham 12X36 Lathe W/ CNC Retrofit PMDX-126/107 W/ESS 3ph W/ WJ200 VFD

  9. #9
    Join Date
    Jun 2010
    Posts
    4256

    Re: Spindle Encoder Index Issue.

    OK, so the encoder is likely pulling the line down sharply enough, although that capacitor will be loading the encoder electronics something awful.
    Then when the encoder output 'lets go', the pulse will rise slowly. This will act as a pulse stretcher as well as a filter.

    But you really weant to reduce the value of the cap to something more reasobnable to rotect the encoder. If the cap is across the 10k, then a 0.01 uF would be very suitable imho.

    > when the machine is powered down the spindle speed in mach defaults to a few hundred RPM not 0 so it is still receiving a signal.
    Um. That's a bit odd. It means the input line is waggling up and down a great old rate. Puzzling.
    I suggest checking all the earth connections for a start.

    Cheers
    Roger

  10. #10
    Join Date
    Jan 2009
    Posts
    234

    Re: Spindle Encoder Index Issue.

    Thank's to a friend that had a BOB laying around for his unfinished mill project "PMDX-126" we braved the cold and wired it up today results! Amazon will be pickup my china bob in the morning for a return and should have my pmdx-126 by the end of the week I hope. No filters or anything needed hooked encoder up and bam worked as it should! Not sure if I want to run a Ethernet Smooth Stepper or just stay with 2 LPT ports!
    Machines: Grizzly G0704 Mill W/ 3-Axis DRO | Birmingham 12X36 Lathe W/ CNC Retrofit PMDX-126/107 W/ESS 3ph W/ WJ200 VFD

  11. #11
    Join Date
    Jun 2010
    Posts
    4256

    Re: Spindle Encoder Index Issue.

    Really good news.
    I am currently (today) rewiring my CNC to clean up the mess which grew. hand-wired custom circuits are being replaced by made PCBs, and rats nest wiring by a proper loom. Yeah, it was working, but I did not have full faith in the reliability. Your non-Chinese gear might be a similar case. :-)

    The case for an ESS - is strong. A PC can only do so much by itself; add a dedicated designed-for-it custom controller to handle the very high-speed stuff which neither a PC nor Windows is ever good at, and you have a far better system imho. The ESS is arguably the best of the breed. I would urge that you do not go down the USB route - there are hard techie reasons why it is not good.

    Cheers
    Roger

  12. #12
    Join Date
    Jan 2009
    Posts
    234

    Re: Spindle Encoder Index Issue.

    I have my ESS & PMDX-126 Up and running spindle encoder is working correct.
    Machines: Grizzly G0704 Mill W/ 3-Axis DRO | Birmingham 12X36 Lathe W/ CNC Retrofit PMDX-126/107 W/ESS 3ph W/ WJ200 VFD

Similar Threads

  1. how to tell if encoder index is being seen
    By js412000 in forum LinuxCNC (formerly EMC2)
    Replies: 2
    Last Post: 03-19-2014, 06:45 PM
  2. Encoder Index Latching
    By Vector42 in forum CamSoft Products
    Replies: 15
    Last Post: 10-31-2010, 12:01 AM
  3. Looking for cheap encoder with index channel
    By JasonCampbell in forum Servo Motors / Drives
    Replies: 12
    Last Post: 09-13-2007, 03:31 AM
  4. spindle index, encoder, home/limit switch
    By Wm McNett in forum CNC Machine Related Electronics
    Replies: 10
    Last Post: 01-13-2006, 01:39 PM
  5. Optical encoder index - what is it good for?
    By medved in forum CNC Machine Related Electronics
    Replies: 8
    Last Post: 10-03-2005, 11:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •