Is there a way to check if we are in G90 or G91 mode ?
-
I have a macro that i call from my gcode.
some of my slicers autogenerate the gcode from some parameters (calibration tests mostly) but they are working in relative mode.
what i want to do is on my macro check if i'm in relative or absolute coordinate mode, change to absolute, do the code of the macro
and then set back to absolute or relative according to the value i read at the beginning of my macro.thanks
-
-
@fcwilt ok thanks i will try that.
-
@psychotik2k3 you do t need to worry about whether you were in relative or absolute mode, because that will be restored automatically when the macro finishes.
-
@dc42 oh ok so i really have to check about that because i was counting on the fact that some macro set absolute coordinates.
thx -
@dc42 is this restore behavior only for a code that is on the macro folder or is it the same if my code is in sys folder ?
thanks
-
@psychotik2k3 it is for all macros. When any macro starts executing, various parameters are saved and then restored when the macro finishes or aborts. The list of these parameters includes the relative/absolute axis movement flag, the relative/absolute extrusion flag, the feed rate, the inches/mm flag, and the plane selected for arc moves.