Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: gjvander 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
-
Have you tried a different revision of Mach to see if it could be a revision specific problem?
Hood
-
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
-
Try adding a G04P0 on the line JUST before the switch over to P110.
(;-) TP
-
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