Page 3 of 4

Re: Encoder Differential Error

Posted: Mon Jul 13, 2020 10:59 pm
by martyscncgarage
What I come up with:
Encoder Color Code.JPG
Solder drain wire to DB9 shell

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 9:43 am
by CJD
When you say the motors have not been run, are they connected so they should run, or are they disconnected?

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 12:16 pm
by jeingham
CJD wrote: Tue Jul 14, 2020 9:43 am When you say the motors have not been run, are they connected so they should run, or are they disconnected?
Have not gotten that far. Will likely do so this week or next.

John

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 12:21 pm
by jeingham
martyscncgarage wrote: Mon Jul 13, 2020 10:26 pm
jeingham wrote: Mon Jul 13, 2020 10:24 pm
<SNIP>

Yes, got it, one tripper and software limits, I was sort of aware that would need to be the case.

X switch is in the middle pretty much, Y too. Trips are at either end of the range of travel relative to the single switch.

Will contemplate second switch.

John
If you have one switch you need to fix it in the CNC12 software configuration. You didn't answer which end of the axis the switch is on so I can't help you there. You will have to either jump the unused limit switch input to COM or use the appropriate limit switch defeat on AIO DC
They are actually in the center, one switch for X and one for Y, Centered more or less.

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 12:25 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
Thank you Marty, I should have done some kind of spread sheet myself. Will run it all to ground tomorrow and let you know how it goes.

John

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 12:27 pm
by martyscncgarage
jeingham wrote: Tue Jul 14, 2020 12:21 pm
martyscncgarage wrote: Mon Jul 13, 2020 10:26 pm
jeingham wrote: Mon Jul 13, 2020 10:24 pm
<SNIP>

Yes, got it, one tripper and software limits, I was sort of aware that would need to be the case.

X switch is in the middle pretty much, Y too. Trips are at either end of the range of travel relative to the single switch.

Will contemplate second switch.

John
If you have one switch you need to fix it in the CNC12 software configuration. You didn't answer which end of the axis the switch is on so I can't help you there. You will have to either jump the unused limit switch input to COM or use the appropriate limit switch defeat on AIO DC
They are actually in the center, one switch for X and one for Y, Centered more or less.
I would move it to one end or the other. BUt it could be used this way, you would have negative and positive values for your soft limits depending on the travel distance either side of the tripper.

Re: Encoder Differential Error

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

Solder drain wire to DB9 shell
Thank you Marty, I should have done some kind of spread sheet myself. Will run it all to ground tomorrow and let you know how it goes.

John
I use spreadsheets and save them.
Just double check and see if it jibes....

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 2:29 pm
by aamir
Jhon
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

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 3:53 pm
by cncsnw
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.

Re: Encoder Differential Error

Posted: Tue Jul 14, 2020 5:02 pm
by CJD
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.