I have been working on putting a spindle encoder on an old Kasuga knee mill running an M39 control with version CNC11-D for CNC10 V.2.72 (linux). The hardware side went together easy but now that I have the encoder hooked up the RPM is readying about 20x higher than it should. The encoder is an Omron E6B2-CWZ1X quadrature 2000 P/R so I set parameter 34 to 8000. If I set the count to around 160000, yes 160k, the rpm displayed is about what I see with the tach.
I originally thought it was the encoder so I swapped it. I then thought maybe it was the cable extension, so I removed it. Still no joy. If I only hook up the index it does appear to count correctly but I haven't checked with the tach to know how close it is or isn't.
I understand it very likely could be the style of encoder I selected and/or the fact it's a Omron knockoff from Ebay. I did test it on the scope and all A, B, & Z channels are counting.
What kind of encoder should I use? Or do I simply have something wired wrong?
My pinout is:
Pin 1 N/C
Pin 2 Com
Pin 3 -Z
Pin 4 -A
Pin 5 -B
Pin 6 Z
Pin 7 A
Pin 8 B
Pin 9 +5V
Here's a couple photos of my 1:1 adapter. The belt I'm using is a MXL. The adapter and pulleys appear to drive the encoder well with no issues so far. There was a spacer below the power drawbar so it was trivial to replace the spacer plate with the adapter of the same thickness. Just enough to sneak in a belt without needing to alter the drawbar.
Attachment 396422Attachment 396424Attachment 396426