SET TO ORIGIN not working
Hi,
I am trying to change the 0,0,0 starting point to another one (not the endstops point). So, i am moving it somewhere, then press "Set to origin" in quick settings menu and nothing changes. It still starts for the previous (original) starting point. I made a test g-code, which is:
....
G0 X0
G0 X100
....
After setting new origin a printer should immediately implement the second command, but unfortunatelly it firstly return back to zero and the goes to 100.
What is wrong?
Best regards!
I am trying to change the 0,0,0 starting point to another one (not the endstops point). So, i am moving it somewhere, then press "Set to origin" in quick settings menu and nothing changes. It still starts for the previous (original) starting point. I made a test g-code, which is:
....
G0 X0
G0 X100
....
After setting new origin a printer should immediately implement the second command, but unfortunatelly it firstly return back to zero and the goes to 100.
What is wrong?
Best regards!
Comments
case UI_ACTION_SET_ORIGIN:
if(!allowMoves) return UI_ACTION_SET_ORIGIN;
Printer::setOrigin(-Printer::currentPosition[X_AXIS], -Printer::currentPosition[Y_AXIS], -Printer::currentPosition[Z_AXIS]);
break;
Originally it had setOrigin(0,0,0) but the function sets offsets so 0 is wrong here.