- Posts: 15
- Thank you received: 2
Understanding what a COMP_FILE in the INI does
- maxguapo
- Offline
- New Member
-
Less
More
2 years 10 months ago #288011
by maxguapo
Understanding what a COMP_FILE in the INI does was created 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
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.
- Aciera
- Offline
- Administrator
-
Less
More
- Posts: 4819
- Thank you received: 2177
2 years 10 months ago #288261
by Aciera
Replied by Aciera on topic Understanding what a COMP_FILE in the INI does
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)?
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.
- Mecanix
- Offline
- Platinum Member
-
Less
More
- Posts: 447
- Thank you received: 229
2 years 10 months ago - 2 years 10 months ago #288286
by Mecanix
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.
Replied by Mecanix on topic Understanding what a COMP_FILE in the INI does
The process is simple:Is it machine coordinates form the trip point of the home switch or what?
Would this be a way to get better accuracy?
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.
- Mecanix
- Offline
- Platinum Member
-
Less
More
- Posts: 447
- Thank you received: 229
2 years 10 months ago #288289
by Mecanix
Replied by Mecanix on topic Understanding what a COMP_FILE in the INI does
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.
- maxguapo
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 2
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!
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.
- Aciera
- Offline
- Administrator
-
Less
More
- Posts: 4819
- Thank you received: 2177
2 years 10 months ago #288338
by Aciera
Replied by Aciera on topic Understanding what a COMP_FILE in the INI does
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: 0.138 seconds