RFC: New G-Code: Disregard tool offsets November 23, 2015 10:03PM |
Registered: 8 years ago Posts: 7 |
Re: RFC: New G-Code: Disregard tool offsets November 24, 2015 03:38AM |
Registered: 10 years ago Posts: 14,672 |
Re: RFC: New G-Code: Disregard tool offsets November 24, 2015 10:00AM |
Registered: 8 years ago Posts: 7 |
Actually, according to [http://reprap.org/wiki/G-code#T:_Select_Tool], even that wouldn't work; choosing an invalid tool deselects the current tool but would *not* affect any current commands.Quote
dc42
I can think of two ways you can avoid the problem without any firmware changes:
1. Put a T-1 command in homez.g and homeall.g to deselect all tools.
Quote
dc42
2. In homeall.g and homez.g insert G10 commands at the start to set all tool offsets to zero. Then more G10 commands to restore them at the end. The snag is that you will have to keep the offsets in those final G10 commands the same as the ones in config.g.
Quote
dc42
Instead of implementing new gcodes, I am more inclined to add a parameter to the G1 command to mean move the head reference point to the specified coordinates instead of the current tool.
Re: RFC: New G-Code: Disregard tool offsets November 24, 2015 01:45PM |
Registered: 10 years ago Posts: 14,672 |
Quote
Stevie-O
Actually, according to [http://reprap.org/wiki/G-code#T:_Select_Tool], even that wouldn't work; choosing an invalid tool deselects the current tool but would *not* affect any current commands.Quote
dc42
1. Put a T-1 command in homez.g and homeall.g to deselect all tools.
Re: RFC: New G-Code: Disregard tool offsets November 25, 2015 11:20AM |
Registered: 8 years ago Posts: 7 |
Quote
dc42
Don't hypothesize, just try it. I would not have suggested it had I not been confident that it would work. Deselecting the current tool will remove that tool's offset from subsequent move calculations.