G92 set and reset options
Posted: Fri Dec 18, 2020 2:17 am
I'm using G92 global offset and would like to set it programatically (that is, outside of using GCode G91 x y z). If the global offset for G92 is considered the 0 index of the Interpreter.SetOrigin() method, setting the G92 global offset be:
Interpreter.SetOrigin(0,x,y,z,a,b,c)
Does this function actually *sets* the offset from the machine location, or does it add an offset to any already existing offset?
The reason I ask is that, if it truly 'sets', I should be able to 'reset' the G92 global offset by using SetOrigin(0,0,0,0,0,0,0). If it adds to the existing offset, that would have no effect and I would need a method of resetting the offset to zeroes.
Interpreter.SetOrigin(0,x,y,z,a,b,c)
Does this function actually *sets* the offset from the machine location, or does it add an offset to any already existing offset?
The reason I ask is that, if it truly 'sets', I should be able to 'reset' the G92 global offset by using SetOrigin(0,0,0,0,0,0,0). If it adds to the existing offset, that would have no effect and I would need a method of resetting the offset to zeroes.