- Posts: 34
- Thank you received: 0
Edit Versa Probe subroutine.
2 years 8 months ago #292685
by matasbuk
Edit Versa Probe subroutine. was created 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 to join the conversation.
2 years 8 months ago #292709
by cmorley
Replied by cmorley on topic Edit Versa Probe subroutine.
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?
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?
Please Log in to join the conversation.
2 years 8 months ago #292731
by matasbuk
Replied by matasbuk on topic Edit Versa Probe subroutine.
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 to join the conversation.
2 years 8 months ago #292826
by cmorley
Replied by cmorley on topic Edit Versa Probe subroutine.
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.
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 to join the conversation.
2 years 8 months ago #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
Connection module Vers CM
vers.ge/en/touch-probes/33-vers-cm.html
Please Log in to join the conversation.
Time to create page: 0.246 seconds
