Hello Guest it is April 27, 2024, 04:34:41 PM

Author Topic: G Code to reset origin x0 y0 after a move and then repeat this again  (Read 156 times)

0 Members and 1 Guest are viewing this topic.

Using my plasma table & Mach 3 I want to burn out a hole that uses x0, y0, i and j to describe the circle to be cut. I then want to move say 2 inches in the X axis direction and then repeat the hole cut but want to be able reset the x0 & y0 origin for that new position so I don't have keep changing the i & j values if I want to keep moving to subsequent hole locations. What I have been doing is manually moving to the next location and manually resetting the x0, y0 origin for each hole. I want to be able to program this into the code to make the operation seamless. Any help would be great!

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: G Code to reset origin x0 y0 after a move and then repeat this again
« Reply #1 on: January 27, 2024, 06:31:30 PM »
G52 X-2.
do your code here
G52 X-4.
do your code
G52 X0 when you are finished

Without engineers the world stops
Re: G Code to reset origin x0 y0 after a move and then repeat this again
« Reply #2 on: January 27, 2024, 07:58:18 PM »
This will work! Thanks for the information. Always seems simple once you know how.