- Posts: 17524
- Thank you received: 0
Closed loop with linear encoders but still backlash?
velocity dynamic range (the 7I95 stepgens minimum settable frequency is ~.025 Hz)
With the OPs 1200 steps/mm settings and P term of 90, the minimum
correctable error is ~.2 nanometers, way below the scale resolution
I term may be useful for analog or low resolution velocity mode systems
I would check that
1. Your DRO is reading actual rather than commanded position
2. You don't have lost motion between where you are measuring and the scale
Because if you are reading actual position and it has no error, the scale is in the correct position but
the rest of your mechanics are not. This might be the result of loose gibs on a dovetail way system.
Please Log in to join the conversation.
When the slides go really slow there is virtually no following error, as the speed increases there is more and more.
It is not realistic to expect no following error at full speed. But at low speed one should expect really low error.
Set Backlash=0 in the ini file, let the feedback handle that instead.
Please Log in to join the conversation.
1) to take a parallel with exactly 20.00 mm wide and set X axis to zero on the left side:
Attachment not found
Attachment not found
2) after that navigate to the right side of the parallel and read the value from DRO.
Attachment not found
Attachment not found
I expected to see something about 20.00mm (+- 0.01) but as you can see it is only 19.945mm
With is also very strange - the encoder position is not the same as stepgen.position-fb.
HAL Configuration for X:
MPG Configuration (because I made the navigation with it):
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
2nd how much do you trust your edge finder gauge? It might be informative to find one side of an edge, then turn the spindle 180 degrees and check the gauge again.
Please Log in to join the conversation.
Todd Zuercher wrote: What was your following error on the X axis at both those points? The PID may need more tuning.
Position 1
Attachment not found
Position 2
Attachment not found
Todd Zuercher wrote: 2nd how much do you trust your edge finder gauge? It might be informative to find one side of an edge, then turn the spindle 180 degrees and check the gauge again.
I made this test already more times
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
Double check your encoder scale is correct.
It looks like your stepgen position feedback is closer to correct than your linear scale.
Can you measure some other sizes to see if the error is static or linear or something else? (Does the error get twice as large for double the length or is it the same?)
Please Log in to join the conversation.
Todd Zuercher wrote: Make sure you don't have backlash compensation enabled.
I have BACKLASH = 0 in the config ini file for the X and Y joints.
Todd Zuercher wrote: Double check your encoder scale is correct.
The encoders have 0.001 resolution, 1000 counts per 1 mm and it seams to be correct.
It looks like your stepgen position feedback is closer to correct than your linear scale.
Of course I checked it too: just added second 20.00mm parallel:Todd Zuercher wrote: Can you measure some other sizes to see if the error is static or linear or something else? (Does the error get twice as large for double the length or is it the same?)
Attachment not found
Attachment not found
and as you can see, the error is the same, not double.
Some additional observation: I know that the machine has physically ca 0.06 mm backlash. I move an axis with MPG (0,01 mm steps) in one direction and can see that the value on edge finder gauge also change. Then I reverse the direction of moving and ... encoder.counter value reacts immediately on it but the value on edge finder gauge - not (ca first three steps). But how it could be? If I move the encoder per hand it reacts also linuxcnc really reads the correct value from it.
Please Log in to join the conversation.
it sounds like lost motion in the linear mechanics
(loose gibs etc)
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
Please Log in to join the conversation.
Attachment not found
As you can see I used 10.01mm parallel, because my digital gauge can only 12,5 mm. At first I found Zero Point on the left side, set the machine and digital gauge also to Zero, and as usual tried to measure the parallel from right side. And ... the result on the digital gauge is the same (deviation is only 0.003 what it pretty cool) as the linuxcnc displays and it has the same error as by other tests with 20mm parallels.
Please Log in to join the conversation.
