Setting Zero Using G54, G55, …
-
I’m using a cnc GRBL machine and Universal Gcode Sender.
I’m trying to save a default position to G54I first place the spindle to a corner.
Then I run this to set the zero position:
G10 L20 P1 X0 Y0 Z0Next, I move the spindle to a certain position and run this to return to the zero I set:
G54 X0 Y0 Z0
It works as my expectation.However, when I press the Reset Zero button on the Universal Gcode Sender, the machine zero I set is reset.
Not sure if I have any misunderstanding to this.
Thanks in advance
-
@raylee14 said in Setting Zero Using G54, G55, …:
10 L20 P1 X0 Y0 Z0
Next, I move the spindle to a certain position and run this to return to the zero I set:
G54 X0 Y0 Z0GRBL has different gcode command enabled compared to Reprap. This library has a table of the code and supported platforms which it's enabled on: https://reprap.org/wiki/G-code#G92:_Set_Position
It's been a long while since I've used grbl but I think you might want to use G92?
-
@educatingsavvas
Does it mean I should use G92 X0 Y0 Z0 to set zero instead of using 'Reset Zero' button on Universal Gcode Sender? How can I specific where to save the position in G54-G59?
I find that the button is running G10 P0 L20 X0 Y0 Z0
and the Return to Zero button is G90 G0 X0 Y0; G90 G0 Z0Sorry for the newbie question
-
[deleted]
-
@raylee14 said in Setting Zero Using G54, G55, …:
I find that the button is running G10 P0 L20 X0 Y0 Z0
That is an invalid command. The P value for that G10 command must be a coordinate system number in the range 1 to 9. See section 3.5.5 of the NIST GCode standard.
-
PS - I've just discovered that LinuxCNC supports an extended version of G10 in which P0 is allowed and means use the current coordinate system. That's not currently supported by RRF, but I can add it in the next 3.4 beta release.