How do I do a manual tool change?

More
20 Jan 2014 23:47 #43030 by ArcEye
Hi

I just do it in G Code if I want the spindle stopped and re-started

...
M5
G28
M6T2
M3
G4 P10
...

There are so many different types of toolchanger, with a lot not wanting the spindle stopped (almost all lathes), coding it is probably easiest

regards

Please Log in or Create an account to join the conversation.

More
20 Jan 2014 23:54 #43031 by eslavko

...
M5
G28
M6T2
M3
G4 P10


Maybe this is good option as in most cases when tool is changed the spindle speed is changed too.

Please Log in or Create an account to join the conversation.

More
25 Oct 2016 22:18 #82065 by robksawyer
I know this is a pretty old post, but I'm having the same issues as you were Gold Boarder. Can you share your latest config files? I'm also curious to see how you setup the Auto, Manual and MDI HAL GUI. Thanks.

Please Log in or Create an account to join the conversation.

More
25 Oct 2016 22:29 #82067 by andypugh
(User names are above the avatar, "Gold Boarder" is just a sign that he has posted a few hundred messages.)

Can you describe exactly what problems you are having?

Please Log in or Create an account to join the conversation.

More
25 Oct 2016 22:36 - 25 Oct 2016 22:37 #82068 by robksawyer
Ha (noob), realized that shortly after posting. I'm trying to get to where @eslavko is at (see below). I'm having the issue where linuxcnc is not letting me control the machine during this process. Also, I'm wondering if I should be going back to G53 (my home position) before the tool change instead of currently just raising the Z axis. I'm not sure how to do this exactly. Should I just run N90 G53 with no other parameters? I've attached an example of my current code.

"When M6 is executed the popup window is shown. And I happily change tool and make Z touchoff."

Machine: Sherline 5400 Mill
%
(1)
(T1  D=0.1275 CR=0. - ZMIN=-0.02 - FLAT END MILL)
(T50  D=0.0591 CR=0. - ZMIN=-0.002 - FLAT END MILL)
N10 G90 G94 G17 G91.1
N15 G20
N20 G53 G0 Z1.5
(18 TRACE1 0.02 OFFSET)
N25 T1 M6
N30 G0 X-1.0625 Y0.5413 Z0.6
N35 Z0.2
N40 G1 Z-0.02 F10.
N45 X-1.375 Y0. F20.
N50 X-1.0625 Y-0.5413
N55 X-0.4375
N60 X-0.125 Y0.
N65 X-0.4375 Y0.5413
N70 X-1.0625
N75 Z0.2 F10.
N80 G0 Z0.6
N90 G53 Z1.5
(1.5MM TRACE 0.002 OFFSET)
N95 M1
N100 T50 M6
N105 G0 X0.5485 Y-0.5413 Z0.6
N110 Z0.2
N115 G1 Z-0.002 F3.937
N120 X1.1735 F5.906
N125 X1.486 Y0.
N130 X1.1735 Y0.5413
N135 X0.5485
N140 X0.236 Y0.
N145 X0.5485 Y-0.5413
N150 Z0.2 F3.937
N155 G0 Z0.6
N165 G53 Z1.5
N170 M30
%
Last edit: 25 Oct 2016 22:37 by robksawyer.

Please Log in or Create an account to join the conversation.

More
26 Oct 2016 14:03 #82085 by agris
Hi, robksawyer

It's been mentioned above - you need to change hal_manualtoolchange file (located at /usr/bin)
it's a Python script LinuxCNC calls when M6 command is issued.
My owm machine uses new hal_manualtoolchange (see attach) - it's a bit buggy with LinuxCNC 2.7 but works.

Your G53 question is pretty simple - you may add any code prior to toolchange in your postprocessor, or manually.
Just an example: raise Z, then move to machine coordinates X10 Y200. Do toolchange. Raise Z again to safe top.
... your actual milling code 
G0 G53 Z100
G0 G53 X10 Y200
M6 T5
G0 G53 Z100
... your actual milling code
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum