a few TinyG firmware patches you may find useful
Posted: Mon Nov 30, 2015 9:43 am
The G38.3 command is used to probe by moving the machine in a certain direction until a limit switch is hit (or ceases to be hit); this lets you use the z-max switch to "feel" the height of things beneath the needle or use the x/y-max switches to automatically detect the size of the machine.
This is the ONLY time that hitting a limit switch will not crash the TinyG, so it's quite useful. Note that once the switch has been hit you must "probe" away from the switch (which will move until the switch is no longer activated) -- attempting to execute any other command from such a position will (wait for it...) crash the TinyG.
The stock TinyG firmware has two problems:
1) It will refuse to allow a probe command if the A-axis is not at position "0". The first patch removes this limitation.
2) It will kill the "spindle" when you initiate a probe command. Depending on how you've wired your liteplacer this will do various things. On my machine it kills the vacuum pump, causing the Liteplacer to drop whatever part it's holding. The second patch removes this limitation, allowing you to place a component after rotating it without having to pre-program the component thickness.
I'm slowly refactoring my customized TinyG-firmware to try to pull out the parts that may be useful to others. I'll post the bits as they work their way clear of the rest of the hairball.
This is the ONLY time that hitting a limit switch will not crash the TinyG, so it's quite useful. Note that once the switch has been hit you must "probe" away from the switch (which will move until the switch is no longer activated) -- attempting to execute any other command from such a position will (wait for it...) crash the TinyG.
The stock TinyG firmware has two problems:
1) It will refuse to allow a probe command if the A-axis is not at position "0". The first patch removes this limitation.
2) It will kill the "spindle" when you initiate a probe command. Depending on how you've wired your liteplacer this will do various things. On my machine it kills the vacuum pump, causing the Liteplacer to drop whatever part it's holding. The second patch removes this limitation, allowing you to place a component after rotating it without having to pre-program the component thickness.
I'm slowly refactoring my customized TinyG-firmware to try to pull out the parts that may be useful to others. I'll post the bits as they work their way clear of the rest of the hairball.