mstrens / grbl_controller_esp32

grbl controller for esp32
174 stars 76 forks source link

Error when setting axis to zero #40

Closed williangomesa closed 3 years ago

williangomesa commented 3 years ago

Hi ! first of all thanks for this awesome work! I'm having a strange issue, I use the firmware to control a 4 axis hotwire machine, when I set all axis to zero(XYZA) mpos don't become zero and sometimes it affect when I load a file to run, what could I do to zero everithing ?

mstrens commented 3 years ago

This is not a bug. Set XYZA (or only some axis) does not set mpos to zero but wpos. It send then command G10 L20 P1 X0 Y0 Z0 A0 (defined in config.h file)

mpos is set to zero when you perform a Home. In fact in cnc mode, your gcode does not refer usually to machine position (mpos) but to work position (wpos). Your Gcode will refers to wpos if you activate one offset coordinate. This firmware supposes that you use first offset coordinates(activated with G54)

williangomesa commented 3 years ago

Thanks !