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: 80
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: 80
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

Previous

Return to Macros

Who is online

Users browsing this forum: No registered users and 3 guests