Python Probe Screen

More
29 Jan 2026 09:31 - 29 Jan 2026 09:35 #342153 by hhscott
Python Probe Screen was created by hhscott
Been working on a purely python touch and probe screen that does not alter the INI or HAL files. This supports Center of Hole, Edge detection X and Y plus and minus direction, Z touch, Boss Center location (circles, squares, rectangles), and Center of Pocket. Every touch/probe move has initial feed rate and then a second touch off at final feed rate. So far testing is going well with some minor debugging. I will soon add tool-change routines and support work fixtures as well.    
Attachments:
Last edit: 29 Jan 2026 09:35 by hhscott.
The following user(s) said Thank You: tommylight, meister, COFHAL

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

More
30 Jan 2026 12:15 #342203 by hhscott
Replied by hhscott on topic Python Probe Screen
Here is a link to download everything I used to create the touch-off side panel. No installation needed as it just a python script and some support files. I am NOT a developer and this is totally ad hoc software. Also, some functionality is incomplete and if used you should consider it as a template to your specific needs. No instructions are included but the code is well commented and if you are even a novice in python you will have no issue editing it to your particular needs. This was tested on a pi5 8GB running Debian Trixie from the official downloads.

You will need Inkscape to Edit the GUI. I wrote a function in the script that opens and parses an Inkscape file and maps tkinter widgets to the named objects. The Inkscpape objects contain the X and Y position data and the width and height information for the tkinter widget. Doing this allows for super easy GUI creation and edits. The script comments explain this in more detail.

I am not offering support if you decide to use this, hopefully the community can make it better and share with everyone. I am SURE that my mdi commands and general code structure can and should be improved before considering this as a stable and good addition to LinuxCNC.

drive.google.com/drive/folders/1mLqdm_YS...5YEtc?usp=drive_link
The following user(s) said Thank You: COFHAL

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

Time to create page: 0.062 seconds
Powered by Kunena Forum