Page 4 of 4

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 6:13 pm
by jeingham
aamir wrote: Tue Jul 14, 2020 2:29 pm Can you double check your DB9 encoder cabels I think your 5V supply or ground did not go to the enocder .
All three axis has same problem very wired
Mistake in the encoder cabel please double check it
Will check that out this afternoon.

John

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 6:16 pm
by jeingham
cncsnw wrote: Tue Jul 14, 2020 3:53 pm
jeingham wrote:Gotta check tomorrow but it appears that I have the A and /A AND B and /B wire pairs inverted.
- Swapping A with /A;
- or swapping B with /B;
- or swapping A with B and also /A with /B;
... will not cause differential errors. Doing any one of those things will simply reverse the plus/minus count direction.

Swapping A with B, while leaving /A and /B where they belong -- or vice versa -- will cause differential errors.

If you do not find the connection problem on inspection, then you may want to take the time to make yourself one of these:
http://www.cncsnw.com/EncoderTest.htm

That will tell you exactly where the problem is.
Okay! Will keep all that in mind as I work this out, much appreciate your input.

John

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 6:29 pm
by jeingham
CJD wrote: Tue Jul 14, 2020 5:02 pm If the motors are not hooked up, the E stop will trigger without showing "EStop", and your error message will be...wait for it...encoder diff error. When the machine tries to move the servos, it looks for an appropriate encoder movement in the correct direction. If there is no motion, or backwards motion, it reads it as an encoder problem and triggers the hidden stop for the machine. Try connecting the motors to see if that prevents the encoder errors.
Okay, adding that bit to the stack of checks and great information I've received here.

When I said I had not run the motors I did not mean to convey that they were not wired, they are. I have not energized them by the control as of yet, gotta get past the encoder test first by the book.

So much appreciated here, thinks!

John

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 9:15 pm
by jeingham
martyscncgarage wrote: Mon Jul 13, 2020 10:59 pm What I come up with:
Encoder Color Code.JPG

Solder drain wire to DB9 shell
Marty,

Good news!

I checked your chart against my own information and it is spot on. I had the A and A/ wires reversed as well as the B and B/ reversed.

I was able to rewire and test two encoders today and the Encoder Differential Error disappeared.

Two more to fix and I can continue with my set up.

Thank you so much for pitching in here, golden.

Will report when I have the other two as well.

John

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 9:19 pm
by martyscncgarage
👍👍

Re: Encoder Differential Error

Posted: Fri Jul 17, 2020 6:59 pm
by jeingham
All,

Primary XYZ encoders are all working now. Turns out that Mr. Dyslexia had wires crossed at both ends of the encoder cable.

Advice to other nubes would be to double check your double check. I just got it wrong from the very start and repeated my errors across all three cables. I did have it all wired correctly at the bench which it turns out was just luck as I had wires flipped at both ends. Deciding to change from mechanical to soldered DB9s AFTER my bench test was a bad decision due to aforementioned Dyslexia. I am still not sure how I could have screwed up so bad, certainly a lesson learned.

Thanks one and all for assistance trouble shooting! Really appreciated!

John

PS: After moving forward with testing I found another problem which I think will be fixed with new 24VAC contactor. Turns out you can not expect a 24VDC contactor to behave as expected if wired for 24VAC. I knew I needed 24VAC, even bought a 110 / 24 VAC transformer. I'll chalk that up dyslexia as well.

Re: Encoder Differential Error

Posted: Fri Jul 17, 2020 8:00 pm
by martyscncgarage
I would recommend to any new user to just buy the encoder cables made up from Centroid. Your time and effort is worth something, not to mention minimizing risk of damaging an encoder or All in One DC.

Glad you are moving forward again!

Re: Encoder Differential Error

Posted: Tue Jul 21, 2020 9:40 am
by CJD
You're not alone...I am constantly getting confused about which side of the connector the diagram is showing. Sometimes it is not that clear.

Re: Encoder Differential Error

Posted: Wed Jul 22, 2020 11:40 am
by martyscncgarage
CJD wrote: Tue Jul 21, 2020 9:40 am You're not alone...I am constantly getting confused about which side of the connector the diagram is showing. Sometimes it is not that clear.
Follow the numbers on the connectors. Use a magnifying lens if you have to, so you can see them....They are usually on both the back and front of good connectors...