Hello Guest it is October 20, 2019, 08:52:48 PM

Author Topic: Tool Changing problems on the lathe  (Read 7961 times)

0 Members and 1 Guest are viewing this topic.

Re: Tool Changing problems on the lathe
« Reply #10 on: October 13, 2009, 06:29:11 AM »
Art & Hood "Lathe & Screen4 Expert"

OK just ran the screwcutting code a couple of times

I have now set the parameter "Removed tick in remove tool offset at end of program"  :-[

I am now changing tools via mdi line and will accept for now that the mpg error was caused again by lack of knowledge by changing tools via tool number dro

Now at the being of the thread i posted some code

Running this code i still get the X axis moving at full speed to the centre line

If i scroll the code in the code window this code this move isn't shown in the toolpath window

Looking at the limits dro's it shows the X axis to be - 1.525
                                                                       + 24.3950

Now when the code runs the X moves at high speed from X60 to X24.4 then moves back to where it is supposed to be X60 and from then on it runs as it is coded

Is this what i should be expecting ?

Phil
 

The Good Thing About Mach3, Is It's very Configurable

The Bad Thing About Mach3, Is It's Too Configurable

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Tool Changing problems on the lathe
« Reply #11 on: October 13, 2009, 07:37:58 AM »
What is in the M6Start.m1s macro? I suspect there may be code in it telling it to move to a toolchange position.
Also attach the full code unless you are getting the problem when using only the portion you posted.
Hood
Re: Tool Changing problems on the lathe
« Reply #12 on: October 13, 2009, 08:43:55 AM »
Hood

I appreciate your efforts.

I modified the code to just run one line of the code as it is posted at the beginning.

Still the same rapid X move.

The M6Start.m1s macro contains the following

  tool = GetSelectedTool()
  SetCurrentTool( tool )

I also checked all the macro's in the different folders they were all the same ?

One other thing if i jog the X axis to a different position then do a regen the Max X Limit dro will show the actual position that the X axis will rapid to

Phil
« Last Edit: October 13, 2009, 08:54:58 AM by Phil_H »
The Good Thing About Mach3, Is It's very Configurable

The Bad Thing About Mach3, Is It's Too Configurable

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Tool Changing problems on the lathe
« Reply #13 on: October 13, 2009, 09:06:21 AM »
Just tested the code you posted in the first post and it works exactly as expected.

Try putting this at the start of your m6Start.m1s macro

MsgBox("ToolChange")

let me know what happens.

Hood
Re: Tool Changing problems on the lathe
« Reply #14 on: October 13, 2009, 09:24:27 AM »
Hood thanks,

Now i will tell you that i am using my own screen that i have modified from the standard screen.

Could that be the problem. ?

I have not knowingly changed any code except the home all routine which only homed one axis.

I will try as you asked and modify the code.

OK i ran the code still the same Rapid X move

I had a box popup asking to OK a tool change

Phil
« Last Edit: October 13, 2009, 09:33:54 AM by Phil_H »
The Good Thing About Mach3, Is It's very Configurable

The Bad Thing About Mach3, Is It's Too Configurable
Re: Tool Changing problems on the lathe
« Reply #15 on: October 13, 2009, 09:43:13 AM »
Just ran the file with the standard screen same problem.

I changed to standard screen shut down, re started Mach3 exactly the same problem.

Phil
The Good Thing About Mach3, Is It's very Configurable

The Bad Thing About Mach3, Is It's Too Configurable

Offline ART

*
  • *
  •  1,698 1,698
  • Tough as soggy paper.
    • View Profile
Re: Tool Changing problems on the lathe
« Reply #16 on: October 13, 2009, 10:09:54 AM »
Phil:


   Change the t0505 to t0500 , what happens then.

Art

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Tool Changing problems on the lathe
« Reply #17 on: October 13, 2009, 10:26:27 AM »
I had a box popup asking to OK a tool change

Phil

Ok I was hoping you didnt see that,  it means you have been editing the correct macro ;D

Where did the rapid happen, was it before or after you OK'd the toolchange.

Hood


Re: Tool Changing problems on the lathe
« Reply #18 on: October 13, 2009, 10:55:08 AM »
Art

Did as you said exactly the same

One thing i have just noticed if i set the  X axis from 10 to 60 in 10mm increments then do a regen the X plus limit is always 24.3950 and that is the erroneous rapid X move

But X70 then X limit = 29.3950 = erroneous rapid X move
      X80                    34.3950 = erroneous rapid X move
      X90                    39.3950 = erroneous rapid X move

If that info is any use

Hood after the tool change i hit cycle start again that move is the next move "erroneous rapid X move"

Phil
The Good Thing About Mach3, Is It's very Configurable

The Bad Thing About Mach3, Is It's Too Configurable

Offline ART

*
  • *
  •  1,698 1,698
  • Tough as soggy paper.
    • View Profile
Re: Tool Changing problems on the lathe
« Reply #19 on: October 13, 2009, 11:08:39 AM »
hmm, if I load your program here, zero the x dro, and regen, I get X limits of 0.00 and 60.0 which seems correct. Did you try it on the release screenset.. I cant think of why its acting differently on yours..

Art