Hello Guest it is March 28, 2024, 09:48:38 AM

Author Topic: Y axis goes crazy after tool change  (Read 2684 times)

0 Members and 1 Guest are viewing this topic.

Y axis goes crazy after tool change
« on: March 13, 2012, 08:42:02 AM »
Here's part of the code:
N1892 X.6264 Y15.225 R.25
N1894 G1 X.8764
N1896 G0 Z.5
N1898 M5
N1900 G91 G28 Z0.
N1902 A0.
N1904 M01
( DRILL HOLES )
N1906 T19 M6
N1908 G0 G90 G54 X2.245 Y.73 A0. S8556 M3
N1910 G43 H19 Z.5
N1912 G98 G81 Z-.51 R.1 F4.11

I don't know why. The machine is referenced and the first operation works fine. When the program goes to the drill operation, the y axis travel straight until I hit the(emergency) stop button.  Despite the many tries, I cannot get mastercam to remove the A0 line. I don't think the A0 has anything to do with it, though.  I am puzzled. Hope someone can tell me why .
thanks
tc
Re: Y axis goes crazy after tool change
« Reply #1 on: March 13, 2012, 08:53:17 AM »
You are calling the G54 offset for the drilling.
Is the offset different for the previous code ?

 
Re: Y axis goes crazy after tool change
« Reply #2 on: March 13, 2012, 09:29:56 AM »
That g54 was a mistake when I regenerated the code.  I am using G55 for both operations.  When I set mach3 to "run from here" on line " Drill holes",
Mach 3 moves to the previous line , to the M1, and the y axis keeps going to neverland..... , very odd.
tc

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Y axis goes crazy after tool change
« Reply #3 on: March 13, 2012, 01:32:35 PM »
OK had to track without all the Gocde BUT(;-)

The N1900 line is the culpret. When you do a RFH it resets all the modal values up to that point. At that point it leaves you in G91 inc mode. When the RFH runs the first thing it does is a traverse move to the restart position(;-) It is doing it in INC mode not abs mode as it should so instead of going to teh Y15.225 it is going to 15.225+15.225 or 30.45.

ALSO you ahould NOT be entering a tool change in INC mode(;-) It should have swithced back to abs mode before the tool change

That line is BAD programming on the post part.

Hope that helps, (;-) TP
« Last Edit: March 13, 2012, 01:35:20 PM by BR549 »
Re: Y axis goes crazy after tool change
« Reply #4 on: March 13, 2012, 01:44:57 PM »
That makes sense. Now I have some clue on how to fix it.  thanks again.
tc