terjeio / grblhal_probe_plugin

Plugin for probing and probe protection in GRBLHAL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

GRBLHAL Probing Add-on Plugin

USE AT YOUR OWN RISK. THERE IS NO EXPECTATION THAT THIS CODE PREVENTS DAMAGE TO EQUIPMENT OR YOURSELF. ALWAYS PROBE SLOWLY AND MAKE SURE YOU KNOW EXACTLY WHERE THE MACHINE WILL GO AT ALL TIMES

Tested on the FlexiHAL controller (STM32F4xx driver):

https://github.com/Expatria-Technologies/Flexi-HAL

Installation

Copy or check out the code into your GRBLHAL source tree.
Add the following lines to your plugins_init.h.

#if PROBE_PROTECT_ENABLE
    extern void probe_protect_init (void);
    probe_protect_init();
#endif

Set the PROBE_PROTECT_ENABLE flag in your platformio.ini or other appropriate location.

Features:

  • Configure probe polarity independently for tool probe and touch probe. Allows easy disconnection of NC probes when used with XOR or XNOR probe input (as on FlexiHAL).
  • On PROBE_CONNECTED check probe pin and assert halt if probe is active outside of any movement that isn't a probing motion.
  • On PROBE_CONNECTED does not allow the spindle to run.
  • Allow PROBE_CONNECTED to be assigned to Aux input (set polarity)
    • This requires an interrupt capable pin.
  • Set PROBE_CONNECTED on T99.
  • Set PROBE_CONNECTED with M401 and clear with M402 mcodes.
  • Allow hard limits to be enabled during tool probe.
  • Enable an alternate input for toolsetter.

In future:

  • Trigger macro .nc upon probe connection and disconnection.
  • Set jog exclusion zone around toolsetter.
  • Store TLR persistently.
  • Different decel value for probing

About

Plugin for probing and probe protection in GRBLHAL.

License:MIT License


Languages

Language:C 100.0%