Page 1 of 2

Encoder Differential Error Rev2

Posted: Sat Jan 22, 2022 5:29 pm
by viscoelastic
Encoder Differential Error:
Encoder Wired
1---
2 0vdc
3 Z-
4 A-
5 B-
6 Z
7 A
8 B
9 +5vdc

Encoder Type Incremental (quadrature)
Encoder Output Type Line driver (differential)
Encoder Resolution 2500 ppr

I looked at the post for "encoder basics", I think I am somewhat, sorta, maybe correct on this, but obviously not if getting an error.

Thanks oh CNC Demigods

Re: Encoder Differential Error Rev2

Posted: Sat Jan 22, 2022 6:18 pm
by tblough
Post a manual (or link) for your encoder.

Re: Encoder Differential Error Rev2

Posted: Sat Jan 22, 2022 7:41 pm
by cncsnw
Is the encoder in question (this time) for your fourth axis, or for your spindle?

Re: Encoder Differential Error Rev2

Posted: Sat Jan 22, 2022 9:46 pm
by viscoelastic
This is for my spindle I have it plugged into #6 and made sure it was 6 in the parameters. The encoder used is the ***.VD model

https://cdn.automationdirect.com/static ... series.pdf

Thanks

Re: Encoder Differential Error Rev2

Posted: Sat Jan 22, 2022 10:08 pm
by cncsnw
Can you post a clear picture or two of the back of your D-sub connector; and also of any intermediate connectors, if you were unable to run the built-in cable all the way to the Allin1DC unit?

Re: Encoder Differential Error Rev2

Posted: Sat Jan 22, 2022 11:30 pm
by viscoelastic
I opened the case of the connector so you could see the type I used. The other picture I just reused the terminal block that was in the machine. Thanks




Re: Encoder Differential Error Rev2

Posted: Sun Jan 23, 2022 9:11 am
by tblough
Well, pin 2 on CNC12 is common. You have A connected to that according to the encoder color codes. I didn't bother checking the rest of the wires.

Re: Encoder Differential Error Rev2

Posted: Sun Jan 23, 2022 11:11 am
by martyscncgarage
That picture of the connector is not very good and as Tom pointed out, you have black on terminal 2
Here is the way I see it:
1=No connection
2=COM (Blue)
3=Z/ (Yellow)
4=AA/ (Purple)
5= B/ (Grey)
6=Z (Orange)
7=A (Black)
8=B (White)
9-+5VDC (Brown)

You should be using a shielded cable and its drain wire soldered to the DB9 shell. I don't care for that DB9 breakout board you are using...but provided you get the drain wire to the shell, I imagine it should work.

Once you fixe the wiring, test it in the PID screen by rotating it. Watch for the asterisk to pop up next to the N of the channel you have the encoder programmed to,

Report back once you have corrected the wiring. Hopefully you haven't damaged the encoder because you grounded the A channel output.
Marty

Re: Encoder Differential Error Rev2

Posted: Sun Jan 23, 2022 1:54 pm
by viscoelastic
Thanks Marty, The colors of the wire are different from the encoder. But straight through they match yours. Listening to what you said, I ordered a double shielded cabling and solder on DB9's. Appreciate the input, I'll report back when I get everything in, at least for everyone else's benefit.

Re: Encoder Differential Error Rev2

Posted: Sun Jan 23, 2022 3:26 pm
by cncsnw
Lack of shielding will not cause a differential error. It will cause quadrature errors during later motion.

Since you have exposed terminals on your DE9 breakout, it will be easy enough to measure DC voltage between A and /A (pins 4 and 7) and between B and /B (pins 5 and 8).

There should always be either plus or minus three or four volts across each of those pairs. If there is not, then the encoder is either faulty or mis-wired.

If all else fails, see:
http://www.cncsnw.com/EncoderTest.htm