Hello Guest it is April 17, 2021, 04:40:12 AM

Author Topic: How to run same file in different G55-G59 offsets?  (Read 165 times)

0 Members and 1 Guest are viewing this topic.

How to run same file in different G55-G59 offsets?
« on: November 12, 2020, 08:29:09 PM »
Hi all

This seems like a simple question, but google doesn't seem to be my friend right now.

I understand using different work offsets using G55-59 etc. What I'm wondering is, is there a way to have my code, call seperate file containing the sub code for each position? I want to setup a jig to hold 4 panels for cutting out. Each panel will be the same. I know I can set G55 to one panel, G56 to the next and so on etc. Currently I've been selecting G55, hitting run, wait till it finished, selecting G56, hitting run, etc. Would be good if I could just program it to run all 4.

I know I can copy/paste the code 4 times, changing work offset between each one, but that seems problematic if I have to change the panel at all. I know I could also call a subroutine using M98 P1000 which only repeats once (then move offset and run again).

I'd like something like:

G55
run panel.tap
G56
run panel.tap
G57
run panel.tap

etc

Possible?

Cheers - MAtt
« Last Edit: November 12, 2020, 08:30:41 PM by mutski47 »

Offline TPS

*
  •  2,110 2,110
    • View Profile
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: How to run same file in different G55-G59 offsets?
« Reply #2 on: November 14, 2020, 07:47:41 PM »
Thanks TPS. Looks close enough to what I'm after. Will have a play next week when I'm back near the CNC to actually try it.

Cheers - Matt
Re: How to run same file in different G55-G59 offsets?
« Reply #3 on: December 01, 2020, 03:46:17 AM »
Fusion 360 will program in your offsets if you ask. And even different non identical parts. It took me a wee while to work out how to do it but once the light comes on it all appears nice and easy. Looking through the G Code it produces exactly what you need.