m31 tool leght offset not saved

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

Re: m31 tool leght offset not saved

Postby sebba » Sun Dec 01, 2024 10:22 pm

yes, it works only with 2117 because of some tooltable related features which are not in 2113
if you still want to use it with 2113 you can modify it and make some "extrafields" in profile file.

if more related questions regarding my atc screenset modifications and macros, please use this thread: viewtopic.php?f=2&t=5235
thanks
- YQWQ
User avatar
sebba
 
Posts: 84
Joined: Mon Dec 21, 2020 9:56 am
Location: Bucharest, ROMANIA

Re: m31 tool leght offset not saved

Postby Ukendt » Sat Dec 28, 2024 4:01 pm

[quote="sebba"]Hi,

I did this like this:
I defined a TCP (Tool Change Position) in machine coordinates. In that position I have a fixed probe, only for measuring tools.
First, I had to find out where (on Z axis) is the touch plate.
For this, I use a tool with known length, declared as Master Tool, or Reference Tool in Probe page.
To find out the Z position of the TP (Touch Plate) I made a macro. This is used for "calibrating" the TCP-TP mcZ position.
You can find the macro here: https://github.com/Haimana/HTM_ATC/blob ... M20330.txt
This macro, corelated with the known length of the Master Tool, will get and save in the profile file the mcZpos of the touch plate. This is the TCP-TP calibrating part.
The mcZpos remain untouched in profile file until the next run of M20330.

Hello Sebba

Im curios to know what a tool with a known lenght is ? lets say i have an 3dtouch probe that i would like to be Master tool ! i have the toolsetter mounted at no special cordinate . So touching off the 3dtouch probe with M31 and write to tooltable with the code snippet you posted , would that make it the known tool lenght ? or am i missing the plot completly :-D

Kind regards
Ukendt
Ukendt
 
Posts: 14
Joined: Thu Jul 20, 2023 8:49 pm

Re: m31 tool leght offset not saved

Postby sebba » Sat Dec 28, 2024 6:19 pm

Hello,

I'll try to explain. Hope my English will be good enough for this.

I used an old broken bit, 6mm diameter, mounted upside down, like a cylindrical rod. With a caliper I measured the exposed length of this.
In fact, this measure does not have to be extremely precise because it will be used as a reference only for getting the Z position of the Touch Plate.
The condition is not to move the touch plate after getting it's position.

Let's say your reference tool have 50mm length.
The machine will be in Z0 (machine coordinates) and will start moving down until the TP will be touched.
Let's say the TP is touched when Z is -200mm.
Adding the length of the reference tool, will get the TP position at -250mm
The macro will save this position for future measurements.

And now, to measure an unknown tool: the machine will move down until TP is touched. Let's say the TP will be touched at Z-225. Because we (the macro) already know where is the TP, Z-250, but the TP was touched at Z-225, the measured toll have 25mm length.

Sorry for my dirty explanation, if still not clear just let me know.
Best regards
- YQWQ
User avatar
sebba
 
Posts: 84
Joined: Mon Dec 21, 2020 9:56 am
Location: Bucharest, ROMANIA

Re: m31 tool leght offset not saved

Postby Ukendt » Mon Dec 30, 2024 1:38 pm

Hi
Just the info i was after , dont want to crash anything , because of not understanding the described way :-) now i can move on to next problem need solving , progress achived :thump: :mrgreen: thanks for yet again to come and rescue the day .

Kind regards
Ukendt
Ukendt
 
Posts: 14
Joined: Thu Jul 20, 2023 8:49 pm

Re: m31 tool leght offset not saved

Postby krsykes23 » Mon Feb 17, 2025 7:24 pm

Hi Ukendt,

I'm hoping to add your M20330 and 20331 macros to my new machine, but having difficulty getting the basics to work.

My machine has an 8 position ATC which works fine. I also have a very heavily modified screenset, which has just the functions I need. This isn't the best idea, as now I realise that your macros won't work with my system until I add the fields such as 30020, 21 and 22.

But before I attempt that, I get an error if I run M20330....saying that it can't find the audio file. I tried commenting this line out but then I get different error (Script Error - M20330 has errors and cannot execute).
krsykes23
 
Posts: 49
Joined: Wed Apr 27, 2022 9:29 am

Re: m31 tool leght offset not saved

Postby sebba » Mon Feb 17, 2025 7:32 pm

Try to copy the required sound file in your SOUND folder
https://github.com/Haimana/HTM_ATC/blob ... /error.wav

Also, if you want to remove the sound, you have to comment the following lines: 6, 11 and 34 (in M20330.txt)

If still not working, please post your edited M20330 macro. Maybe I can find the issue.
- YQWQ
User avatar
sebba
 
Posts: 84
Joined: Mon Dec 21, 2020 9:56 am
Location: Bucharest, ROMANIA

Re: m31 tool leght offset not saved

Postby krsykes23 » Wed Feb 19, 2025 2:15 pm

Thanks for the reply.

I commented out the three lines and I now don't get the 'sound' error. On running the M20330 macro I get an error (UCCNC error) saying that "Master Tool is not loaded". I set this to Tool 9 and gave it an arbitrary length, but not sure if that's the correct way to do it. On my screenset I also added field 2747 for the master Tool. Attached is my macro, although the only difference is the three commented-out lines for the sound file.

M20330.txt
(3.23 KiB) Downloaded 3 times


Also, I downloaded the HTM_ATC screenset but it won't run at all. The UCCNC logo appears, then an audible 'ping' and nothing happens.

I need to see the other required fields so that I can add them to my screenset. BTW - I'm running an AXBB-E.
krsykes23
 
Posts: 49
Joined: Wed Apr 27, 2022 9:29 am

Re: m31 tool leght offset not saved

Postby sebba » Wed Feb 19, 2025 3:52 pm

check this post:
viewtopic.php?f=2&t=5235&start=10#p34285

also, please follow that topic for related issues.
thank you
- YQWQ
User avatar
sebba
 
Posts: 84
Joined: Mon Dec 21, 2020 9:56 am
Location: Bucharest, ROMANIA

Previous

Return to Macros

Who is online

Users browsing this forum: No registered users and 3 guests