Hello Guest it is December 09, 2019, 03:43:05 PM

Author Topic: Encoders config  (Read 8027 times)

0 Members and 1 Guest are viewing this topic.

Encoders config
« on: October 05, 2012, 04:13:48 PM »
Hi everyone.

I converted a manual mill to CNC and installed ballscrews, steppers and also encoders, so I can keep the 'manual mode' where the encoders tell Mach3 how far I manually move the table.

My encoders have 1000 ppr and the ballscrews have a 5mm pitch, so the counts per unit should be 800. This is my current setup.

Now, after some testing I discovered the following:

I marked the 400mm on the table and double checked this with movements with the steppers.

To make sure I'm not dealing with any noise coming from the steppers or the drivers, I turned them all off and moved the table manually.
I move the table 400mm and the encoder says I moved 404.125mm (not sure if the decimal portion of the 404.125 is ok, but for sure it was a little over 4mm more than expected).
This means I have over 10% of error, way too high.

Why could this be happening?

Thanks in advance to everyone.

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Encoders config
« Reply #1 on: October 05, 2012, 04:37:11 PM »
Ballscrews definitely 5mm pitch and not 0.2inch pitch?
Hood
Re: Encoders config
« Reply #2 on: October 05, 2012, 04:48:07 PM »
Yes, ballscrews are 5mm pitch.
Automatic movements (with the steppers) seem to be moving the desired distance. At least in this test of 400mm I checked and it's definitely closer to 400 than the 404 the encoders give (measured manually with a tape).

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Encoders config
« Reply #3 on: October 05, 2012, 04:57:45 PM »
What kernel do you have Mach set to? Encoder input is not that great via the Parallel Port but still should be more accurate than that.
Hood
Re: Encoders config
« Reply #4 on: October 05, 2012, 06:13:11 PM »
I 'm using the default 25 kHz.
I just tried with 35 kHz and 45 kHz with no changes. I still get little over 4mms in a table 400mm movement.

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Encoders config
« Reply #5 on: October 05, 2012, 06:24:52 PM »
25KHz would be the one that would give best results so its not that.
Was thinking maybe encoders were 1024 but that would give you 9.6mm over reading I think so not sure where the issue is.
Hood
Re: Encoders config
« Reply #6 on: October 05, 2012, 06:49:11 PM »
Encoders are 1000ppr.

The error is always close to 1% of table displacement, not a constant value.

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Encoders config
« Reply #7 on: October 06, 2012, 01:37:03 PM »
So if you MDI a move do the encoders show the difference?
Hood
Re: Encoders config
« Reply #8 on: October 06, 2012, 02:04:29 PM »
That's right.
I tested it both with MDI movements and manual and in both cases I get the error.
When doing MDI movements, I start with same position indication in DROs and encoders position, after the move both values do not match.

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Encoders config
« Reply #9 on: October 06, 2012, 02:11:18 PM »
Are you putting the encoder signals in via a breakout board?

Hood