111
General Mach Discussion / Re: Lathe making moves not in Gcode
« on: February 06, 2019, 09:17:19 PM »Vince,
Cute little spark plugs your doing............... ,
The code you posted does exactly what the program called for, except it never changes the tool because you
need an M6 to do whatever you want to do for the tool to be changed, thus it just runs through the complete program
program and ends on X0.020 Z0.005.
Don't know how you are setting up the job, even the modes you are in, as the program just seemed incomplete.
Now you say you inserted a M0 and removed the T2 and the program stops.
So the controlled point would ne located per the code G0 X1.000 Z-0.100.
RICH
the program runs right up to the t2 (now M0) and stopped at X1.000 Z-0.100 as expected.
I then manually center drill and drill the part.
Hit cycle start after drilling and the machine finishes the part at X0.020 Z0.005.
Then the machine moves to X1.000. Unwanted movement is when it parks at X1.000. That move does not exist in the gcode but it happens every time i run the program.