Hello Guest it is April 19, 2024, 07:45:26 AM

Author Topic: Work Offset - Strange Behavior  (Read 2905 times)

0 Members and 1 Guest are viewing this topic.

Work Offset - Strange Behavior
« on: December 12, 2012, 10:50:22 AM »
Hi,

I have a fixture where I use a probe to set G59P110 and G59P111 prior to machining.  The parts have a Z-offset that changes by a mil or so so due to fixturing variation.

I program the G-Code to machine the first part using the P110, then switch to P111 and machine the second part. The problem is that Mach3 switches over to P111 before it has finished the first part. I think it might be due to look ahead. I verified that the offset actually changes by looking at the work offset screen, and could see the z value change when the P110 changes to P111.

There are many ways to work around this, but I was wondering if this is a known problem, and if there is a fix available?

Regards,

Geo

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Work Offset - Strange Behavior
« Reply #1 on: December 13, 2012, 03:25:07 AM »
Have you tried a different revision of Mach to see if it could be a revision specific problem?
Hood
Re: Work Offset - Strange Behavior
« Reply #2 on: December 14, 2012, 12:07:12 PM »
No, I have not. I am hesitant to switch to another version since this one is stable for me, except for the reported glitch. My current work around is to define an M code M59110, with Code "G59P110". Mach3 seems to wait to implement the G59 switch with the M call, so that works. I suspect Mach is not actually screwing anything up when it switches over with look ahead. I will give it a shot with fixtures that are an inch different in height. Should be obvious if it plunges or retracts in the middle of a cut.

Geo

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Work Offset - Strange Behavior
« Reply #3 on: December 14, 2012, 12:40:47 PM »
Try adding a G04P0  on the line JUST before the switch over to P110.

(;-) TP
Re: Work Offset - Strange Behavior
« Reply #4 on: December 14, 2012, 05:39:24 PM »
I tried the G04P0 command, and it works - Mach waits until the command is executed in the window before it switches over to the next fixture.

Thanks for the tip. I prefer your method since creating M codes is not very clean.

Regards,

Geo