Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: alby on April 14, 2022, 09:49:24 AM

Title: Next line of gcode executing from file before spindle is up at new position
Post by: alby on April 14, 2022, 09:49:24 AM
Mach4 4.2.0.4612
ESS V278.1
C25XP BOB

I'm having an issue where the next line of GCode being executed from a file is happening before the previous line (moving x up out of the way) is completed.

I understood that the command to move the y axis would not happen until the command to move the x axis up out of the way was complete.
I did modify the gcode to move the x asis up .5 higher and that resolved the issue, but looking for better understanding of the correct way to do this.
Is it necessary to insert a delay for this to work properly?

Thanks

Here is a piece of the GCode

g1 x-.5 F200
g1 x .5
g1 y1.0
g1 x-.5
g1 x.5
g1 y2.0
g1 x-.5
g1 x.5
g1 y3.0
Title: Re: Next line of gcode executing from file before spindle is up at new position
Post by: Steve Stallings on April 14, 2022, 10:39:14 AM
Your code should include a G61 command for Exact Stop before the line of code that must complete before the next line starts. Then include a G64 after that move to allow resuming Constant Velocity mode if desired.
Title: Re: Next line of gcode executing from file before spindle is up at new position
Post by: alby on April 15, 2022, 07:28:13 PM
That fixed it.

Thanks!!