Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: ekcourter on March 30, 2019, 06:44:11 PM

Title: WORK OFFSETS
Post by: ekcourter on March 30, 2019, 06:44:11 PM
I HAVE 2 STRINGS OF WORKING G CODE AND WOULD LIKE TO RUN THEM ONE AFTER ANOTHER AS ONE JOB. EACH USES A DIFFERENT OFFSET, ONE G54 ONE G58. WHATS THE BEST WAY TO DO THIS. I'M USING CODE FROM MESHCAM ON MACH3, THANKS
Title: Re: WORK OFFSETS
Post by: joeaverage on March 30, 2019, 08:02:29 PM
Hi,
if you declare G54 prior to the first bunch of code it will execute in G54 mode, that is with the G54 offsets
applied.

If you the declare G58 then the following code, your second bunch, operates with the G58 offsets applied.

Craig
Title: Re: WORK OFFSETS
Post by: ger21 on March 30, 2019, 08:35:29 PM
Just add the second program to the first in an editor. Make sure the G54 or G58 are at the start of their respective sections, and make sure there's no M2 or M30 between them.
Title: Re: WORK OFFSETS
Post by: ekcourter on March 31, 2019, 05:15:02 PM
Thanks, works great, Ed