Hello Guest it is March 28, 2024, 06:57:27 AM

Author Topic: WORK OFFSETS  (Read 1112 times)

0 Members and 1 Guest are viewing this topic.

WORK OFFSETS
« 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
Re: WORK OFFSETS
« Reply #1 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: WORK OFFSETS
« Reply #2 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.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: WORK OFFSETS
« Reply #3 on: March 31, 2019, 05:15:02 PM »
Thanks, works great, Ed