Hello Guest it is October 22, 2019, 11:36:50 PM

Author Topic: Why Does my Lathe Tool Think it's Inside the Work?  (Read 1182 times)

0 Members and 1 Guest are viewing this topic.

Why Does my Lathe Tool Think it's Inside the Work?
« on: July 01, 2016, 08:24:56 PM »
I gave up on my CNC mini-lathe a long while back, and today I am trying to resurrect it. Sorry to say, I have forgotten a lot.

I was trying to do a simple OD arc (like the round end of a broomstick). The code works fine, except for one thing. It thinks it's starting in the center of the broomstick. Not at the end...inside. It tries to back out before it starts cutting, even though it's already at the outside diameter of the work. Obviously, I can't start it in the center of the work.

Why does my tool think it's in the center of the sphere when I start the program?

I will post the code. It's supposed to make a round end 1" in diameter.

G18 G64 G80 G90 G40 G49
M3
G00 X0.51
G00 Z0.51
F2
G00 Z0.4929
G01 X0.5
G01 X0.5
G03 X0.4929 Z0.5 I-0.5 K-0.4929
G01 Z0.51
G00 X0.51
G00 Z0.4858
G01 X0.5
G01 X0.5
G03 X0.4858 Z0.5 I-0.5 K-0.4858
G01 Z0.51
G00 X0.51
G00 Z0.4786
G01 X0.5
G01 X0.5
G03 X0.4786 Z0.5 I-0.5 K-0.4786
G01 Z0.51
G00 X0.51
G00 Z0.4713
G01 X0.5
G01 X0.5
G03 X0.4713 Z0.5 I-0.5 K-0.4713
G01 Z0.51
G00 X0.51
G00 Z0.464
G01 X0.5
G01 X0.5
G03 X0.464 Z0.5 I-0.5 K-0.464
G01 Z0.51
G00 X0.51
G00 Z0.4566
G01 X0.5
G01 X0.5
G03 X0.4566 Z0.5 I-0.5 K-0.4566
G01 Z0.51
G00 X0.51
G00 Z0.4491
G01 X0.5
G01 X0.5
G03 X0.4491 Z0.5 I-0.5 K-0.4491
G01 Z0.51
G00 X0.51
G00 Z0.4416
G01 X0.5
G01 X0.5
G03 X0.4416 Z0.5 I-0.5 K-0.4416
G01 Z0.51
G00 X0.51
G00 Z0.434
G01 X0.5
G01 X0.5
G03 X0.434 Z0.5 I-0.5 K-0.434
G01 Z0.51
G00 X0.51
G00 Z0.4264
G01 X0.5
G01 X0.5
G03 X0.4264 Z0.5 I-0.5 K-0.4264
G01 Z0.51
G00 X0.51
G00 Z0.4186
G01 X0.5
G01 X0.5
G03 X0.4186 Z0.5 I-0.5 K-0.4186
G01 Z0.51
G00 X0.51
G00 Z0.4108
G01 X0.5
G01 X0.5
G03 X0.4108 Z0.5 I-0.5 K-0.4108
G01 Z0.51
G00 X0.51
G00 Z0.4029
G01 X0.5
G01 X0.5
G03 X0.4029 Z0.5 I-0.5 K-0.4029
G01 Z0.51
G00 X0.51
G00 Z0.3948
G01 X0.5
G01 X0.5
G03 X0.3948 Z0.5 I-0.5 K-0.3948
G01 Z0.51
G00 X0.51
G00 Z0.3867
G01 X0.5
G01 X0.5
G03 X0.3867 Z0.5 I-0.5 K-0.3867
G01 Z0.51
G00 X0.51
G00 Z0.3785
G01 X0.5
G01 X0.5
G03 X0.3785 Z0.5 I-0.5 K-0.3785
G01 Z0.51
G00 X0.51
G00 Z0.3702
G01 X0.5
G01 X0.5
G03 X0.3702 Z0.5 I-0.5 K-0.3702
G01 Z0.51
G00 X0.51
G00 Z0.3617
G01 X0.5
G01 X0.5
G03 X0.3617 Z0.5 I-0.5 K-0.3617
G01 Z0.51
G00 X0.51
G00 Z0.3531
G01 X0.5
G01 X0.5
G03 X0.3531 Z0.5 I-0.5 K-0.3531
G01 Z0.51
G00 X0.51
G00 Z0.3444
G01 X0.5
G01 X0.5
G03 X0.3444 Z0.5 I-0.5 K-0.3444
G01 Z0.51
G00 X0.51
G00 Z0.3355
G01 X0.5
G01 X0.5
G03 X0.3355 Z0.5 I-0.5 K-0.3355
G01 Z0.51
G00 X0.51
G00 Z0.3264
G01 X0.5
G01 X0.5
G03 X0.3264 Z0.5 I-0.5 K-0.3264
G01 Z0.51
G00 X0.51
G00 Z0.3172
G01 X0.5
G01 X0.5
G03 X0.3172 Z0.5 I-0.5 K-0.3172
G01 Z0.51
G00 X0.51
G00 Z0.3077
G01 X0.5
G01 X0.5
G03 X0.3077 Z0.5 I-0.5 K-0.3077
G01 Z0.51
G00 X0.51
G00 Z0.2981
G01 X0.5
G01 X0.5
G03 X0.2981 Z0.5 I-0.5 K-0.2981
G01 Z0.51
G00 X0.51
G00 Z0.2882
G01 X0.5
G01 X0.5
G03 X0.2882 Z0.5 I-0.5 K-0.2882
G01 Z0.51
G00 X0.51
G00 Z0.278
G01 X0.5
G01 X0.5
G03 X0.278 Z0.5 I-0.5 K-0.278
G01 Z0.51
G00 X0.51
G00 Z0.2676
G01 X0.5
G01 X0.5
G03 X0.2676 Z0.5 I-0.5 K-0.2676
G01 Z0.51
G00 X0.51
G00 Z0.2568
G01 X0.5
G01 X0.5
G03 X0.2568 Z0.5 I-0.5 K-0.2568
G01 Z0.51
G00 X0.51
G00 Z0.2457
G01 X0.5
G01 X0.5
G03 X0.2457 Z0.5 I-0.5 K-0.2457
G01 Z0.51
G00 X0.51
G00 Z0.2341
G01 X0.5
G01 X0.5
G03 X0.2341 Z0.5 I-0.5 K-0.2341
G01 Z0.51
G00 X0.51
G00 Z0.2221
G01 X0.5
G01 X0.5
G03 X0.2221 Z0.5 I-0.5 K-0.2221
G01 Z0.51
G00 X0.51
G00 Z0.2095
G01 X0.5
G01 X0.5
G03 X0.2095 Z0.5 I-0.5 K-0.2095
G01 Z0.51
G00 X0.51
G00 Z0.1962
G01 X0.5
G01 X0.5
G03 X0.1962 Z0.5 I-0.5 K-0.1962
G01 Z0.51
G00 X0.51
G00 Z0.182
G01 X0.5
G01 X0.5
G03 X0.182 Z0.5 I-0.5 K-0.182
G01 Z0.51
G00 X0.51
G00 Z0.1669
G01 X0.5
G01 X0.5
G03 X0.1669 Z0.5 I-0.5 K-0.1669
G01 Z0.51
G00 X0.51
G00 Z0.1503
G01 X0.5
G01 X0.5
G03 X0.1503 Z0.5 I-0.5 K-0.1503
G01 Z0.51
G00 X0.51
G00 Z0.1319
G01 X0.5
G01 X0.5
G03 X0.1319 Z0.5 I-0.5 K-0.1319
G01 Z0.51
G00 X0.51
G00 Z0.1107
G01 X0.5
G01 X0.5
G03 X0.1107 Z0.5 I-0.5 K-0.1107
G01 Z0.51
G00 X0.51
G00 Z0.0846
G01 X0.5
G01 X0.5
G03 X0.0846 Z0.5 I-0.5 K-0.0846
G01 Z0.51
G00 X0.51
G00 Z0.0459
G01 X0.5
G01 X0.5
G03 X0.0459 Z0.5 I-0.5 K-0.0459
G01 Z0.51
G00 X0.51
G00 Z0.0448
G01 X0.5
G01 X0.5
G03 X0.0448 Z0.5 I-0.5 K-0.0448
G01 Z0.51
G00 X0.51
F0.5
G00 Z0
G01 X0.5
G01 X0.5
G03 X0 Z0.5 I-0.5 K-0
G01 Z0.51
G00 X0.51
M5
M30

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Why Does my Lathe Tool Think it's Inside the Work?
« Reply #1 on: July 02, 2016, 04:58:35 AM »
Looks fine when I try it here.
If you attach your xml I can load it and possibly find out where your issue is.
Hood
Re: Why Does my Lathe Tool Think it's Inside the Work?
« Reply #2 on: July 02, 2016, 11:19:40 AM »
I must have the KFlop set up wrong, or something needs to be adjusted in Mach3. Thanks for the reply. Before I can post anything else, I have to find out what my xml is. That should show you how little I know about what I'm doing!

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Why Does my Lathe Tool Think it's Inside the Work?
« Reply #3 on: July 02, 2016, 01:46:08 PM »
the xml is the file that holds all your settings, it will be in the main Mach3 folder and will have the name of the profile you are using followed by a file extension of .xml.
If you did not make a custom profile then it will be Mach3Turn.xml, if you made a custom profile it will have the name of the custom profile followed by .xml.
Hood
Re: Why Does my Lathe Tool Think it's Inside the Work?
« Reply #4 on: July 02, 2016, 03:59:30 PM »
Again, thanks.

My error was pretty basic. I didn't tell the tool where it was at the start of the routine, so it tried to move to where it was supposed to be. When I did that, it was happy to start where it was instead of moving through the work to look for a starting point.