Hello Guest it is March 28, 2024, 10:27:18 PM

Author Topic: Work offsets  (Read 15216 times)

0 Members and 1 Guest are viewing this topic.

Offline Riley

*
  •  43 43
    • View Profile
Work offsets
« on: September 08, 2011, 10:21:24 AM »
I'm having trouble with changing work offsets in g code. Seems to work fine if I remove cutter comp. With cutter comp it does fine with the squares but when going to G56 and doing the circle it freaks out and comes up with some crazy toolpath. This was only coded for testing....any input would be great!
« Last Edit: September 08, 2011, 10:23:24 AM by Riley »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Work offsets
« Reply #1 on: September 08, 2011, 11:44:35 AM »
You cannot switch offsets WHILE in COMP.   Does it work ok IF you turn off comp then switch then reapply comp?

(;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Work offsets
« Reply #2 on: September 08, 2011, 12:10:17 PM »
OK I see you are working with Comp in SUBS.

First add the G54 to the startup safety line this sets the display position correctly in reference to the rest of the program.

After add it here the Program looks and runs ok. NOW be aware that Mach3 will draw the profiles as offsets BUT when it runs it doews NOT move to the profiles displayed position on the screen . IT WILL cut it correctly just not display the moves corretly.

(;-) TP

Offline Riley

*
  •  43 43
    • View Profile
Re: Work offsets
« Reply #3 on: September 08, 2011, 02:57:29 PM »
Hmmm.....seems to work on the PC in the house. It does however keep going over the first toolpath like you stated. On my laptop it makes some crazy crop circles when running the circle toolpath on G56. config pages look exactly the same. I have to run three operations on the mill and wanted a test code. I will move on to the real thing with this outline and see what happens. Thanks for the reply!

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Work offsets
« Reply #4 on: September 08, 2011, 03:11:18 PM »
It is acutally drawing it correct when cutting as the Zero gets reset each time the Fixture changes. It should cut just fine.

On your laptop look at the IJ settings. Crop circles sound like it is set to abs instead of inc. You can change it with Gcode to make sure it is set correctly on program load.

(;-) TP

Offline Riley

*
  •  43 43
    • View Profile
Re: Work offsets
« Reply #5 on: September 14, 2011, 10:04:53 PM »
I reinstalled mach on laptop and set config just like the pc in the house and the one on the mill, and it works fine. But the pc running the milling machine still wont run it correctly. All settings have been tripled checked and it just won't run it. If I call sub o1 for all three work offsets it is ok. If I change it to call sub o2 for all three offsets it still is ok. If I change it to any combination of o1 and o2......fail. It come up with some crazy toolpath for the third work offset. I even tried calling the offsets in the reverse order. If I take out cutter comp all is good, however that really does not help me much.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Work offsets
« Reply #6 on: September 14, 2011, 10:46:29 PM »
HIYA Riley, You were close(;-) Change the G41 to a G42. Also set your tool# 12 to about 0.050"diam to make SURE it clears that tight radius.

After changing those points it runs fine here.

(;-) TP

Offline Riley

*
  •  43 43
    • View Profile
Re: Work offsets
« Reply #7 on: September 15, 2011, 08:46:23 PM »
Well here is where I'm at....both subs are totally identical and as long as I only call one of them the program works fine. If I get really crazy and want to call a different sub then things get sticky. I have included a photo of a program and its matching toolpath, one with all sub calls the same and the second program I asked it nicely to run sub 2 and it makes crop circles. Have tried many many different combinations and the results are the same.  ???

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Work offsets
« Reply #8 on: September 15, 2011, 10:31:35 PM »
AH I see you found the known BUG in TComp and  SUBS. It has always been there.  AND there is NO KNOWN way to overcome the error that I know of . Last time I worked on it for 3 weeks straight trying to creat a workaround. NO LUCK

Sometimes you get LUCKY and do not disturb it and everything runs OK but certain combinations of  multi subs AND TC sets it off.

Best to stay away from TC and subs. Subs by themselves run OK. The problem is Mach does NOT carry over some of the positional data from SUB TO SUB and it gets lost trying to apply the new TC. It will eventually find it ways BACK to the proper stop place givin enough room to roam.

(;-) TP

Offline Riley

*
  •  43 43
    • View Profile
Re: Work offsets
« Reply #9 on: September 15, 2011, 10:47:13 PM »
so how does one run cutter comp on different work coordinates? This has to be an everyday occurrence for some people.