Manual tool measurement procedure

More
27 Dec 2023 09:13 #289152 by MaHa
I have made a similar solution (in another ui) with a checkbox. Normally i forgot to reactivate probing, so i  had bad situations, when it did not run as expexted. Then i ended up with a yesno dialog box, when probing is deactivated, to give option to continue or abort.

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

More
07 Jan 2024 23:05 #290162 by MarkoPolo
The tool measurement procedure works well, but I would like to add one more thing to it. After the measurement, I want to change the soft limit of the z axis so that it is not possible to hit the countertop with the cutter.
I suspect that this cannot be done in gcode itself, and you need to invoke a python script. From the terminal the command "halcmd setp ini.2.min_limit -xxx" works. I want to do something similar with a python script, but I need to capture the Z axis value when measuring the tool. How to do it ?
Or maybe there is a simpler way to do this?
Marek

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

More
08 Jan 2024 00:14 #290167 by Mecanix
Maybe hal.set_p() could be helpful in your situation.
linuxcnc.org/docs/html/config/python-hal...face.html#_functions

Capturing the position and saving it into a variable right after a G38.2 should be easy.
The following user(s) said Thank You: MarkoPolo

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

More
28 Jan 2024 22:43 #291845 by MarkoPolo
The tool measurement procedure works as I wanted,
but the dimensions are displayed in the preview window (as in the screenshot).
containing movements from the tool measurement procedure. Whether it is possible
displaying the dimensions of the workpiece itself?

Marek
Attachments:

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

Moderators: cmorley
Time to create page: 0.172 seconds
Powered by Kunena Forum