Edit Versa Probe subroutine.

More
06 Feb 2024 20:56 #292685 by matasbuk
Hello, this is probably a very simple question that I just can't find the answer to. I use versa probe with qtdragon gui. I would like to edit the probing subroutines to better fit my probe, but I can't seem to find where they are stored. Could anyone point me to the right direction?

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

More
07 Feb 2024 02:05 #292709 by cmorley
They are here:
github.com/LinuxCNC/linuxcnc/blob/2.9/li...ts/probe_routines.py

but are probably not in a form you are expecting.
What do you wish to change?
The following user(s) said Thank You: tommylight

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

More
07 Feb 2024 12:18 #292731 by matasbuk
Thank you, I have 2 probe inputs, a tool setter and a part probe. I would like to unlinkp and net pins of the probe depending on the probing routine chosen.

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

More
08 Feb 2024 06:22 #292826 by cmorley
ok that would require python code changes in that file or possibly versa_probe.py.
github.com/LinuxCNC/linuxcnc/blob/2.9/li...dgets/versa_probe.py
Unfortunately there is no builtin way to 'override' the code with another file. You would have to edit those files directly.

If it was me I think I would start in versa_probe.py 's function:

def probe_btn_clicked(self, button):
cmd = button.property('probe')
print("Button clicked ", cmd)
self.get_parms()
self.start_probe(cmd)

you could add a check for the tool setter buttons and set HAL pins from there.

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

More
08 Feb 2024 15:49 #292853 by scotth
Replied by scotth on topic Edit Versa Probe subroutine.
Versa shows to have hardware for what you need.

Connection module Vers CM
vers.ge/en/touch-probes/33-vers-cm.html

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

More
08 Feb 2024 21:42 #292884 by matasbuk
That sounds like a very good idea. Thank you!

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

Time to create page: 0.064 seconds
Powered by Kunena Forum