- Posts: 541
- Thank you received: 0
Manual tool measurement procedure
2 years 10 months ago #289152
by MaHa
Replied by MaHa on topic Manual tool measurement procedure
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 to join the conversation.
2 years 9 months ago #290162
by MarkoPolo
Replied by MarkoPolo on topic Manual tool measurement procedure
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
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 to join the conversation.
2 years 9 months ago #290167
by Mecanix
Replied by Mecanix on topic Manual tool measurement procedure
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.
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.
Please Log in to join the conversation.
2 years 9 months ago #291845
by MarkoPolo
Replied by MarkoPolo on topic Manual tool measurement procedure
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
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
Please Log in to join the conversation.
Time to create page: 0.036 seconds
