Understanding what a COMP_FILE in the INI does

More
2 years 10 months ago #288011 by maxguapo
Hi, for many years (since the time of EMC2) I run LCNC on an very old PC with parallel interface. Now I upgraded my mill with new closed loop steppers, linear scales, new Intel barebone (NUC 13th gen. with 7i processor) with LCNC 2.91 and Mesa 7i96s-7i85s interface. After a lot of tweeking, especially reducing the p-gain and the acceleration, the machine runs fine, except for the precision. The glas scales are connected/configured as position feedback for the stepgen's and my expectation/hope was to reach an accuracy < 0.05mm on all axes. Z-axes perfekt, probalbly because of the weight on the screw, Y-axes more ore less and X-axes bad (~ 0.125).

In the documentation I found the possibility to define a compensation file to elimiate leadscrew faulst. According to the docu the first value is the position, second compensation forward and third compensation backward. But which position is ment? Is it machine coordinates form the trip point of the home switch or what? I defined a file for the x-axis with two triplets, but it did not work. the machine run in to the limit switch.

Would this be a way to get better accuracy?

Thank's for any help and explanation in advance.

Regards, Peter
 

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

More
2 years 10 months ago #288261 by Aciera
Seems rather odd, a comp_file would be used on an open loop system as on a closed loop system your motors should be positioned by the feedback from the linear scales.
When you say that you have 0.125mm of position error, is that axis oscillating (ie is the pid sending the motor back and forth)?
The following user(s) said Thank You: maxguapo

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

More
2 years 10 months ago - 2 years 10 months ago #288286 by Mecanix

Is it machine coordinates form the trip point of the home switch or what?

Would this be a way to get better accuracy?
The process is simple:
1) Home the machine and set DRO to zero
2) [MDI] G1 X-10 F200 and Note the DRO position
3) [MDI] G1 X-20 F200 and Note the DRO position
4) [MDI] G1 X-10 F200 and Note the DRO position
5) [MDI] G1 X0 F200 and Note the DRO position
***************************************
-20.0        -20.000        -20.008
-10.0        -10.017        -10.005
0.0            -0.022*        0.000
***************************************
(*Note -0.022, that's the backlash just before the limit switch). 

Would this be a way to get better accuracy?
On a 2x lathe (open loop, stepper motor, 3200 steps) with a 5mm pitch screw I get an accuracy of +/-0.01mm across 320mm with a COMP_FILE_TYPE = 0. Linear scale used to measure is a 1um scale, the comp triplets have a 10mm graduation. 
Last edit: 2 years 10 months ago by Mecanix.
The following user(s) said Thank You: maxguapo

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

More
2 years 10 months ago #288289 by Mecanix
That is the 'correct way' for accurate positioning. Feedback is sent to the drive directly, bypassing the motion control board/overhead/ancient PID/etc.

The following user(s) said Thank You: maxguapo

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

More
2 years 10 months ago #288306 by maxguapo
Replied by maxguapo on topic Understanding what a COMP_FILE in the INI does
Hi Aciera, No, the axis does not oscillat. With the new stepper they run very smothe. In the beginning they oscillated, but after reducing the P_Gain from 1000 to 500 it's gone. I know this from the fly bar less systems (FBL) we use in the model helicopters.
I agree with you, tha a compensation file in a closed loop sytem is odd. But when having troubles one tryes many things even those who are not the right thing.
Anyway, thank you very much for yout explanation!

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

More
2 years 10 months ago #288338 by Aciera
If it ends up positioning with a residual error like that then you likely need to increase the 'I' value of the PID.
The following user(s) said Thank You: maxguapo

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

Time to create page: 4.339 seconds
Powered by Kunena Forum