Gcode dinamic position error

More
13 years 8 months ago #30531 by gfx1
Hallo :cheer:

I'm new user,
I have 2.5.1 version and I use axis gui. I have only one stepper axes for my first test with linuxcnc. It's all ok but I have a strange problem ...
If I write:
Code:
g1 x100 f8000 x-100 x100 x-100 x0 m0

the axes go to approximately 70% of measure then reverse the mouvement and go to approximately -70% of mesure and reverse again .... on until the end. But if I write in this way the code:
Code:
g1 x100 f8000 g4 p0 x-100 g4 p0 x100 g4 p0 x-100 g4 p0 x0 m0

the motion is perfect!!! :dry:

does anyone know the problem?

Please Log in to join the conversation.

More
13 years 8 months ago #30550 by Rick G
Replied by Rick G on topic Gcode dinamic position error
Try adding G64 Pn to your code first, to avoid "blending" of the moves.

linuxcnc.org/docs/devel/html/gcode/gcode.html#sec:G64

Rick G

Please Log in to join the conversation.

More
13 years 8 months ago #30555 by BigJohnT
You should always have a preamble line to set the working conditions expected. If you just accept what is currently active in the modal groups you may get surprised from time to time. A short tutorial on preamble is here . In your case I would just use G61 in the preamble.

John

Please Log in to join the conversation.

More
13 years 8 months ago #30562 by andypugh

gfx1 wrote: the axes go to approximately 70% of measure then reverse the mouvement and go to approximately -70% of mesure and reverse again

As well as the other comments about the motion-blending mode, I think this shows that your axis acceleration values are much too low. The effect of blending should not be quite this obvious.

Please Log in to join the conversation.

More
13 years 8 months ago #30580 by gfx1
Replied by gfx1 on topic Gcode dinamic position error
Thank you to all ..... I solve with g64 p0.005 and g61 :lol:

the Gcode is new for me!!

Please Log in to join the conversation.

More
13 years 8 months ago #30600 by Rick G
Replied by Rick G on topic Gcode dinamic position error
Glad to hear you have it sorted out!

Rick G

Please Log in to join the conversation.

Time to create page: 0.185 seconds
Powered by Kunena Forum