Z axis does not lift out of job
- mariusl
-
Topic Author
- Offline
- Platinum Member
-
I have a situation where the tool path travels through the job instead of over. It would seem that the planner smooths the move of the Z axis on its way to the next operation.
Look at the last two line in this piece of Gcode. I would expect it to complete the X move and then perform the Z
(Filename: ZB nut plate.ngc)
(Post processor: EMC.scpost)
(Date: 9/16/2012)
G21 (Units: Metric)
G40 G90
F1000
G64 P0
(Part: ZB nut plate)
(Operation: Spiral pocket, pocket, T5: Mill/router, 6.35 mm diameter, 5 mm Deep)
M6 T5 (Mill/router, 6.35 mm diameter)
G00 Z4.0000
M03 S5000
X22.5000 Y18.9750
G01 Z-2.0000 F300
and again here it goes to the xy position while on its way up???
(Operation: Outside Offset, 0, T5: Mill/router, 6.35 mm diameter, 12.2 mm Deep)
G00 Z4.0000
X27.3250 Y17.5000
I am on 2.5.1
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
A must read...
linuxcnc.org/docs/html/common/User_Concepts.html
The effects of using G64 are magnified on a machine with slow acceleration.
A good (biased opinion) tutorial on G code is here . Read the Start Here! section.
I never could understand the rational of making G64 default...
John
Please Log in or Create an account to join the conversation.
- mariusl
-
Topic Author
- Offline
- Platinum Member
-
I changed the Gcode post processor to output a G61 only. On the backplot it shows that the tool moves up straight and then to the new X position but on the machine it actually cuts the corner still.
On slightly higher feeds ( nothing near maximum) it also does not complete an arc. It goes to the start of the arc and then moves directly to the end of the arc in a straight line.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- cncbasher
- Offline
- Moderator
-
- Posts: 1744
- Thank you received: 288
Please Log in or Create an account to join the conversation.
- Rick G
-
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 155
Just to experiment you might try adding a short pause in the g code between the two moves to see if that changes anything.
Are you using backlash compensation?
Rick G
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
John
I changed the Gcode post processor to output a G61 only. On the backplot it shows that the tool moves up straight and then to the new X position but on the machine it actually cuts the corner still.
On slightly higher feeds ( nothing near maximum) it also does not complete an arc. It goes to the start of the arc and then moves directly to the end of the arc in a straight line.
I'd have to say something is wrong on the machine if it is not following the exact path programmed with G61. G61 means go to each end point even if you have to stop an axis to do so.
What kind of machine is this?
John
Please Log in or Create an account to join the conversation.
- mariusl
-
Topic Author
- Offline
- Platinum Member
-
G61 is active and no backlash compensation is used.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- mariusl
-
Topic Author
- Offline
- Platinum Member
-
The machine is a router that has been running with Mach. I am using it to get EMC running. It is fitted with a G540.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
I was looking at the bit of code in your first message it is seems a bit strange to make a 5mm deep hole and only go to -2mm...
John
Please Log in or Create an account to join the conversation.
- mariusl
-
Topic Author
- Offline
- Platinum Member
-
The cuts are small. Probably 2mm at a time and I only show a small piece of the code so you dont see the whole picture.

Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.