Adding Pre and Post Gcode to Versa Probe

More
12 Mar 2025 00:58 #323720 by Sbvr4
Hi, 

I have a touch probe that requires an additional activation signal prior to probing. I've mapped motion.digital-out-00 to the pin and would like to know the best way to add M64 P0 before probing and M65 P0 after. Should that be added to each probe routine, or would it be better to use a macro for that functionality? I'm using Qtdragon_hd and Versaprobe.   

Thank you

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

More
12 Mar 2025 02:44 #323722 by cmorley
Replied by cmorley on topic Adding Pre and Post Gcode to Versa Probe
What version of linuxcnc?

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

More
12 Mar 2025 17:39 #323767 by Sbvr4
Replied by Sbvr4 on topic Adding Pre and Post Gcode to Versa Probe
This is for v2.10. My apologies for the ambiguity. 
Thank you

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

More
16 Mar 2025 02:08 #324036 by cmorley
Replied by cmorley on topic Adding Pre and Post Gcode to Versa Probe
So there is currently no built in way to do this.
The probe routines in master are burried in probe_subprobe.py
github.com/LinuxCNC/linuxcnc/blob/master...ets/probe_subprog.py

The is a pre and post function in there.

prechecks()
postreset()

You could hand edit them to add your calls.
I guess adding an INI pre and post command might be helpful.
What does your calls do?

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

Time to create page: 0.052 seconds
Powered by Kunena Forum