need a little help with Tool Changer and M6

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

need a little help with Tool Changer and M6

Postby CADdy » Mon Aug 29, 2022 5:29 am

Hi all,

I don't really understand the connections yet. Is M31 called when changing tools from M6 or does M6 contain the functionality of M31?

I want to use the tool table when changing tools, because my milling tools are inserted in BT30 holders. The tools should all be measured previously and the values inserted into the table.

My current M6 macro first moves the milling tool to the length sensor after the tool change and measures it. I then no longer need this point. M6 should come to the tool change point. The tool holder with the milling cutter is then changed manually. The length difference is taken from the tool table.

Shouldn't this be the correct procedure for changing tools? Software is UCCNC 1.2113

Peter
CADdy
 
Posts: 148
Joined: Sun Sep 17, 2017 2:26 pm

Re: need a little help with Tool Changer and M6

Postby dezsoe » Mon Aug 29, 2022 10:03 am

You have a custom M6 macro. The default does not measure the tool, just sets G43 H<newtool>.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: need a little help with Tool Changer and M6

Postby CADdy » Mon Aug 29, 2022 11:00 am

Hi dezsoe,

thank you for your reply.
That is, I have to write in the G-code a M6 T<x> and then G43 H<x> (<x> would be the required tool) at each tool change. Is this ok?

Peter
CADdy
 
Posts: 148
Joined: Sun Sep 17, 2017 2:26 pm

Re: need a little help with Tool Changer and M6

Postby dezsoe » Mon Aug 29, 2022 11:39 am

Yes, this is the better way. (I don't like if the M6 turns on G43 automatically.)

But you wrote that your M6 macro probes the tool and you don't want that. The default M6 does not probe the tool, so you have a custom M6. If you want us to remove the probe from your working M6 then you have to upload it. (I assume that your M6 changes the tool fine, the only problem is that it probes after the tool change.)

Also, if you change the tool manually then you may switch to "Stop spindle and wait for Cycle Start" mode and use one of the park positions to move the spindle to position where you can change the tool easy.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: need a little help with Tool Changer and M6

Postby CADdy » Mon Aug 29, 2022 1:43 pm

Hi dezsoe,

this is my M6-macro. Would you please have a look on it?

M6.txt
M6-macro Peter
(7.67 KiB) Downloaded 390 times


Thanks a lot
Peter
CADdy
 
Posts: 148
Joined: Sun Sep 17, 2017 2:26 pm

Re: need a little help with Tool Changer and M6

Postby CADdy » Sat Sep 24, 2022 8:30 am

I have now solved it myself. Unfortunately, dezsoe has not contacted me again. The macro works fine now.

Peter
CADdy
 
Posts: 148
Joined: Sun Sep 17, 2017 2:26 pm

Re: need a little help with Tool Changer and M6

Postby dezsoe » Mon Sep 26, 2022 7:59 am

Hi Peter,

Sorry, I think that something very urgent came and later I forgot to reply you.

dezsoe
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: need a little help with Tool Changer and M6

Postby marteng » Thu Nov 10, 2022 4:53 am

CADdy wrote:I have now solved it myself. Unfortunately, dezsoe has not contacted me again. The macro works fine now.

Peter

Hey CADdy, would you kindly share how you solved your problem? :D
Thanks Marteng
marteng
 
Posts: 42
Joined: Fri Sep 16, 2016 1:57 pm
Location: Malta

Re: need a little help with Tool Changer and M6

Postby CADdy » Sat Nov 26, 2022 12:26 pm

I have rejoiced too soon. The problems after a tool change are still there. In the meantime, I have lost several milling cutters and workpieces as a result. My clamping plate has unintentionally got several holes caused by wrong tool lengths. It happens again and again that the Z-height is calculated totally wrong after a tool change. Sometimes the newly changed tool mills in the air (which is less dangerous), sometimes a Z-position of for example 90 mm is displayed in the DRO, although the cutter is just 20 mm above the actual workpiece surface. In the meantime I mill after a tool change only with the hand on the emergency stop button.

I have tested with the UCCNC versions 1.2113 and 1.2115. As screen sets I use Default2019 and the Neon screen set. What I will still do, I exchange the Probing.dll ver. 1.3.4.0 against the version 1.3.4.2. Dezsoe had once written in a post that the 1.3.4.0 was buggy. Unfortunately I am not a programmer and depend on the existing M6/M31 macros.

Apart from that I can't think of anything else. I am considering switching completely to another software in the meantime (no, not Mach3 or Mach4). For me, the operation of my milling machine under UCCNC has become too dangerous and too cost-intensive.

Peter
CADdy
 
Posts: 148
Joined: Sun Sep 17, 2017 2:26 pm


Return to Macros

Who is online

Users browsing this forum: No registered users and 10 guests