Hello Guest it is November 08, 2024, 10:54:37 PM

Author Topic: G-Code problem  (Read 11944 times)

0 Members and 1 Guest are viewing this topic.

G-Code problem
« on: November 01, 2021, 01:30:39 PM »
Hi All,
I am brand new to this forum, I have a problem with  Mach 3, can anyone help. I am using Mach 3 for cnc mill control, the part that I am milling has a G-Code line number of 20075 when the controller is 3/4 way down through the G-Code the X axis starts to deviate from the Mach 3 DRO, the start of the deviation is 0.1-0.2mm with each cycle of the milling cutter it gets worse and worse. The maximum deviation is as much as 1.3mm. The part was modelled in Fusion 360, this machining strategy is adaptive clearing with a tolerance of 0.1mm. I am having ruined parts after ruined parts, I have run out of steel stock.
Re: G-Code problem
« Reply #1 on: November 01, 2021, 02:51:05 PM »
check to make sure your X axis isnt hitting something causing your X motor to lose steps.
Re: G-Code problem
« Reply #2 on: November 01, 2021, 02:59:11 PM »
Thanks for your reply, I have checked this and its okay. It is as if the stepper motor is gaining steps, can this happen?

Offline Graham Waterworth

*
  • *
  •  2,734 2,734
  • Yorkshire Dales, England
Re: G-Code problem
« Reply #3 on: November 01, 2021, 08:24:47 PM »
Half your velocity and double you acceleration and see if it looses position.

Is fusion using fast feeds or rapids, we have seen fast feeds cause problems before.

Without engineers the world stops
Re: G-Code problem
« Reply #4 on: November 02, 2021, 02:13:07 PM »
The Fusion feeds are quite low, the machine has recently been finished, I have had this problem from the start. It maintains correct table movements up to the fourth line of Gcode after this it starts to deviate.

The testing was carried out using a stand alone DRO with the glass linear scales held onto the machine table. With the X, Y and Z axis disabled I could then examine movement in the X plane, which is what is giving me trouble. It is advancing as the Z axis steps down, its like 0.1mm for every step down, the step downs are 0.3mm each cycle, the part is 6.35 thick.

Offline Graham Waterworth

*
  • *
  •  2,734 2,734
  • Yorkshire Dales, England
Re: G-Code problem
« Reply #5 on: November 02, 2021, 08:59:38 PM »
Some code may be needed to check the movement and also some pictures of the setup including the breakout board etc.
Without engineers the world stops
Re: G-Code problem
« Reply #6 on: November 03, 2021, 07:23:23 AM »
For now here are some pictures of the part with the machining problem and a photo of the set up for examining the X axis travel.
Re: G-Code problem
« Reply #7 on: November 03, 2021, 07:24:51 AM »
and the part

Offline Graham Waterworth

*
  • *
  •  2,734 2,734
  • Yorkshire Dales, England
Re: G-Code problem
« Reply #8 on: November 03, 2021, 09:43:25 PM »
Why is it only tapered at one side?
Without engineers the world stops