Adding Pre and Post Gcode to Versa Probe

More
1 year 7 months ago #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 to join the conversation.

More
1 year 7 months ago #323722 by cmorley
What version of linuxcnc?

Please Log in to join the conversation.

More
1 year 7 months ago #323767 by Sbvr4
This is for v2.10. My apologies for the ambiguity. 
Thank you

Please Log in to join the conversation.

More
1 year 7 months ago #324036 by cmorley
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 to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum