vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.56k stars 532 forks source link

Moving over MPos 0 after Tool change #1364

Open ManuelW77 opened 4 years ago

ManuelW77 commented 4 years ago

Hey guys, i have set up bCNC (on my grbl machine) to catch the M6 commands and handle it with a WCS tool change. The macro works fine and it probed the correct height for the tool to the 0 of the workpice.

But, after the tool change, when the spindle is moving from the tool change position to the work position and the new tool is longer then the last one, the Z axes is moving above the MPos 0 and over the homing switch. So the stepper slips and the Z position is no more correct.

It means in my opinion, if the new WPos 0 is higher then the last one, Z is moving to high, over MPos 0, and crashes.

kfmut commented 4 years ago

@ManuelW77

There no support for tool changing in GRBL so macro in bCNC is just workaround. You could lower your tool change height to accomodate difference between longest and shortest tools(if you are using G28 safe position then it's also should be lowered if my memory serves me well). Also soft limits in GRBL is massive help in preventing crashes you should definetly check them.

DeanRM commented 4 years ago

Check bottom of #1371 for a possible answer to your problem.

kfmut commented 4 years ago

@DeanRM

You are trying to solve wrong problem. Everyone is taking about returning tip of new tool to last known WPos ;-)

DeanRM commented 4 years ago

No - I'm not trying to solve the wrong problem. He is talking about the z height being to high hitting his limit switch throwing off accuracy. The settings he needs to adjust is in the User File under [Probe].

toolprobe Z + tooldistance should not exceed GRBLs max travel distance for Z. It also should be a little longer than the travel distance of Z0 (MPos) to the touchplate.

kfmut commented 4 years ago

@DeanRM

So why it's too high AFTER tool change cycle if all but last two moves in tool change macro are done in G53 space?

DeanRM commented 4 years ago

Good question - what is his current setup and what are his current settings? If his settings are correct then maybe we have a bug.

kfmut commented 4 years ago

@DeanRM

If you are really interested in this situation you could check old and bit long dicussion https://github.com/vlachoudis/bCNC/issues/1029

DeanRM commented 4 years ago

Interesting read - No where does anybody mention the proper setup for tool changes. There are two soft limits involved - GRBL's Z and tooldistance. Both will throw a soft limit error.
I wrote a paper on this - https://github.com/vlachoudis/bCNC/wiki/Installing-a-fixed-Touchplate-for-tool-changes