damellis / gctrl

Processing GUI for grbl
58 stars 36 forks source link

Zero-ing doesn't work on Windows. #5

Open damellis opened 12 years ago

damellis commented 12 years ago

The zeroing command relies on opening and closing the serial port, which on Mac and Linux will reset the board. On Windows, to zero we should manually toggle DTR, which will reset the board.

JaakkoFagerlund commented 9 years ago

@damellis : In current version 0.9g of grbl, you can just send ctrl-x to the board and it will reset itself. But this is not some set coordinates to zero command, it just clears the grbl and any possible G92 offset you have used.

In general it is a very bad idea and bad habit to use reset or G92 for setting your zero point, as it is not meant for that. It is meant as in-code coordinate offset, which will reset after the program ends. If you need to set your actual coordinate system (like G54-G59), use G10. It will be saved and it is referenced from the machine zero position, so you can get back to it just by homing the machine. G10 L20 P1 Xx Yy Zz will set the current position (L20) in G54 (P1) to the values given (XYZ). GRBL will save this offset to EEPROM, so it doesn't vanish if you reset the board.