Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: NormB on January 14, 2015, 05:24:46 AM

Title: G=code question
Post by: NormB on January 14, 2015, 05:24:46 AM
My machine is setup at 48,48 I ref all home so now the machine has the bit at 0,0.  I move to a tool location for cutting say 6,0 and zero my DRO.  at the end of my cut normally I see I return to the DRO or part cut 0,0.  If I issue a command like x48 y48 is this move based upon my machine cord or the part cord?   I read where the G28 I believe will move to the soft limits I am confused by that I just can't seem to get my head around what is happening.
Title: Re: G=code question
Post by: HimyKabibble on January 14, 2015, 10:52:49 AM
G0/G1/G2/G3 always use fixture coordinates, not machine coordinates, unless preceded by G53.

Regards,
Ray L
Title: Re: G=code question
Post by: NormB on January 14, 2015, 03:50:07 PM
If I understand you correctly then code sent like G53 x48 Y48 will move x and y to machine coordinates not part coordinated? If that is right I have my answer.
Title: Re: G=code question
Post by: Hood on January 14, 2015, 04:52:24 PM
You will also need a G0 there, ie G53G0X49Y48

Hood
Title: Re: G=code question
Post by: NormB on January 14, 2015, 05:07:58 PM
Got iy, thank you Hood, that really helps, now at the end rather than a return to part 0,0 I can add a line of code to send the machine to the rear and not worry about where I had my part 0,0 set.  That will make life much easier for loading and unloading.