Hi,
I recently bought a genmitsu 4040 reno, and I am trying to learn g-codes with candle, so this is my first post here.
I thought I had understood work coordinates, but something is puzzling me...
I did a test moving the spindle first 80mm along x, then 80mm along y, changing the coordinate
system from g54 to g55 and back to g54
g54 # select work coordinate g54
-> machine position = 0,0, current work position = 0,0 (g54)
g0x10y10 # move 10mm along both x and y
-> machine position = 10,10, current work position = 10,10 (g54)
g92x0y0 # set g54 origin to machine point 10, 10
-> machine position = 10,10, current work position = 0,0 (g54)
g0x80 # move 80mm along x
-> machine position = 90,10, current work position = 80,0 (g54)
g55 # select work coordinate g55
-> machine position = 90,10, current work position = ...,... (g55)
g92x0y0 # set g55 origin to machine point 90, 10
-> machine position = 90,10, current work position = 0,0 (g55)
g0y80 # move 80mm along y
-> machine position = 90,90, current work position = 0,80 (g55)
g54 # select back work coordinate g54
-> machine position = 90,90, current work position = -4,80 (g54)
I thought that with the last g54, I would obtain current work position = 0,80
I do not understand where the -4 is coming from.
Thanks