G0 vs G92 g code

When homed and at 0,0,0 have been entering G0 Z0 X123 Y321 then clicking on the little balloon shaped icon to zero the offset, (am always forgetting to zero the durned offsets)
Any reason not to enter G92 X123 Y321 then set Z axis and run the program? being sure that the Z axis is high enough to clear any obstacles. Trying to get my head around macros.

Hey Tony,

G0 is a motion command so first the carriages move to Z=0, X=123 and Y=321. If you then click on the zero button for these axes, or enter G92 Z0 X0 Y0 into the mdi, this coordinate is now the current offset, so Z=0, X=0, Y=0.

Onefinity_Controller__Control_Screen__Mark_on_Zero_buttons_cropped1

If you are at machine home and want to set the offset without moving there first, you can enter:

G92 Z0 X-123 Y-321

This will have the same effect as above, but your carriages will not have moved. It will simply set the new offset coordinate system, i.e. it will make that while you are still at machine home, this home position is now -123 mm on the left of your new zero coordinate and -321 mm towards front of the new zero coordinate). You are still at machine home, but the offset is valid the same way as above. So if you then enter:

G0 Z0 X0 Y0

the carriages will move to your new zero coordinate (which is at absolute machine coordinate Z=0 X=123 Y=321)

G-code used in this posting

3 Likes

Thank you, had not been here for a couple of weeks, but your teachings as always are solid and appreciated.