Hello Guest it is March 28, 2024, 03:57:44 PM

Author Topic: G=code question  (Read 2415 times)

0 Members and 1 Guest are viewing this topic.

Offline NormB

*
  •  169 169
  • Norm
    • View Profile
G=code question
« 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.
Re: G=code question
« Reply #1 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
Regards,
Ray L.

Offline NormB

*
  •  169 169
  • Norm
    • View Profile
Re: G=code question
« Reply #2 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.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: G=code question
« Reply #3 on: January 14, 2015, 04:52:24 PM »
You will also need a G0 there, ie G53G0X49Y48

Hood

Offline NormB

*
  •  169 169
  • Norm
    • View Profile
Re: G=code question
« Reply #4 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.