Encoder Issues, Help!

More
09 Jan 2016 00:50 - 09 Jan 2016 00:51 #68085 by csbrady
Replied by csbrady on topic Encoder Issues, Help!
I sorted out the issue with the EXE boxes and ran headlong into another perplexing problem. I now get repeatable movement, but the scaling is not quite right. I carefully calculated the encoder scaling and came up with 24500. Unfortunately, this results in movement that is 0.007" short per inch (0.993" movement when 1" was commanded). There is a 2 to 1 ratio between the motor/encoder and the ballscrew but unless that ratio is somehow slightly off everything else, ballscrew pitch, counts/rev, interpolation should be fixed and would not need fine tuning. Confusing!

Without anything better to do I scaled the encoder count, 25400*1.007=25578. Closer but still off by about 0.002". I tried a number of iterations and got the really confusing results as below.

Scale Error
25550 -0.001
25546 -0.0004
25544 -0.002
25542 -0.0012
25540 -0.007

This makes zero sense. A count of 2 should be only 0.000078" and the direction of the error also changes. This is repeatable and I rechecked everything multiple times. Any ideas?
Last edit: 09 Jan 2016 00:51 by csbrady.

Please Log in or Create an account to join the conversation.

More
09 Jan 2016 01:09 - 09 Jan 2016 01:12 #68086 by cncnoob1979
Replied by cncnoob1979 on topic Encoder Issues, Help!
Did you try the commanded movement in the same direction each time? To ensure you aren't measuring backlash?

That's the only idea I can think of. You are way ahead of me in your build. I'm currently trying to install linuxcnc to prep for my cards next week.

EDIT: are you getting the same results on each axis?
Last edit: 09 Jan 2016 01:12 by cncnoob1979.

Please Log in or Create an account to join the conversation.

More
09 Jan 2016 02:38 #68094 by andypugh
Replied by andypugh on topic Encoder Issues, Help!
The ratio between 5TPI and 1mm pitch is 1.016. Is there any chance you have 5tpi screws rather than 1mm (or an integer variant thereof?
The following user(s) said Thank You: csbrady

Please Log in or Create an account to join the conversation.

More
09 Jan 2016 05:05 #68101 by csbrady
Replied by csbrady on topic Encoder Issues, Help!
This issue is frustratingly consistent. I get the same error with both directions. I also have measured and compensated for backlash and it's below 0.0004". But I have only tried the X axis, I'll try Y and Z to see if there is a difference.

The ballscrews are 5mm pitch. The thing that is particularly confusing is how the 2 count changes ended up having completely unpredictable effects.

Please Log in or Create an account to join the conversation.

More
09 Jan 2016 05:33 #68104 by csbrady
Replied by csbrady on topic Encoder Issues, Help!
I just did the same test with the Y and Z axis. I see scaling errors with all 3 axis but the amount is different

X = 0.007
Y = 0.012
Z = 0.002

I don't think I could have come up with a more confusing and unhelpful result. :S

Please Log in or Create an account to join the conversation.

More
09 Jan 2016 15:13 #68111 by andypugh
Replied by andypugh on topic Encoder Issues, Help!
Is it possibly a cyclical error in the interpolation?

Do you have any means to plot actual and reported position through several cycles of the interpolator?

I had a weird thing with my spindle resolver recently, I am not 100% sure what it was, cleaning a connector fixed it, but the slaved A axis (I was hobbing) would keep the correct number of complete turns, but moved a lot slower in one place, then caught up.

If you had something similar, then overall accuracy would be OK, but the positions within any one interpolation cycle might not be.

What sort of range of motion are you testing with?

Please Log in or Create an account to join the conversation.

More
11 Jan 2016 17:13 - 11 Jan 2016 17:20 #68184 by cncnoob1979
Replied by cncnoob1979 on topic Encoder Issues, Help!
With these Heidenhain encoders [yours, I have the same style], are they 11uApp, or 1uApp? (I would assume 11uApp since EXE is the choice I see all the time)

I've attached the Series manual that explains what each model is capable of.


This browser does not support PDFs. Please download the PDF to view it: Download PDF

Attachments:
Last edit: 11 Jan 2016 17:20 by cncnoob1979.

Please Log in or Create an account to join the conversation.

More
11 Jan 2016 17:44 #68187 by andypugh
Replied by andypugh on topic Encoder Issues, Help!

With these Heidenhain encoders [yours, I have the same style], are they 11uApp, or 1uApp? (I would assume 11uApp since EXE is the choice I see all the time)[


That's a good question. Having the wrong range would give reasonable overall accuracy, but high interpolation error between marks.

Please Log in or Create an account to join the conversation.

More
14 Jan 2016 15:15 - 14 Jan 2016 15:16 #68374 by cncnoob1979
Replied by cncnoob1979 on topic Encoder Issues, Help!
csbrady,

Did you get yours sorted out?
I'm trying to hook my signals up on mine now, I haven't figured out the signal names that correspond to A, B, and index channels. Would you happen to have a pin out from your exe box to the 7i77 handy?

I have the 602 pin-outs and my pin-outs but trying to figure out what goes where has me perplexed at the moment.

Which one is index, A phase TTL, B phase TTL and which one goes to where on the 7i77 is what I'm needing. I have read a TON on the encoders and have convinced myself that they are 11uApp signals. So the EXE boxes were a correct choice.
Last edit: 14 Jan 2016 15:16 by cncnoob1979.

Please Log in or Create an account to join the conversation.

More
15 Jan 2016 16:24 #68467 by csbrady
Replied by csbrady on topic Encoder Issues, Help!
I at last figured out the problem. It's a bit embarrassing, but the problem was my measurement setup. I was using a dial indicator on a test stand with a magnetic base. I thought that the results were too consistent to be the test setup so I dismissed that as a possibility. With nothing better to do I made a couple shallow cuts 5" apart and measured them. 5.000" exactly, hooray!!

Thanks everyone for the help and sorry for the wasted time on a dumb mistake. :whistle:

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum