Gcode dinamic position error

More
25 Feb 2013 03:11 - 25 Feb 2013 03:15 #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:
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:
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?
Last edit: 25 Feb 2013 03:15 by gfx1.

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

More
25 Feb 2013 17:14 - 25 Feb 2013 17:17 #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
Last edit: 25 Feb 2013 17:17 by Rick G.
The following user(s) said Thank You: gfx1

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

More
25 Feb 2013 20:38 #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
The following user(s) said Thank You: gfx1

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

More
25 Feb 2013 21:45 #30562 by andypugh

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.
The following user(s) said Thank You: gfx1

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

More
26 Feb 2013 05:07 #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 or Create an account to join the conversation.

More
26 Feb 2013 15:57 #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 or Create an account to join the conversation.

Time to create page: 0.111 seconds
Powered by Kunena Forum