Can I use relative pos by +/-?
-
If I in start code want some relative movement (XYZE)
- Can I write G1 XYZE+(randomnumber) rather than doing G91 and G90 in every other line?
so:
G1 XYZE random lines....
Then
G1 E+5 to extrude 5 more mm
instead of
G91
G1 E5
G90 -
@pro3d G91 will set relative positioning and all G1 commands after that will be executed as relative moves until a G90 command changes the positioning to absolute. Thereafter, all G1 moves will be executed as absolute positioning until a G91 command changes it back to relative. Be aware that to switch the extruder between relative and absolute, you need to use M83 and M82. Does that answer your question?
-
My badly stated question was if I could just use [XYZE]+[nr] instead of switching back and forth between relative and absolute just by using the +/- sign in the command line
-
@pro3d Ahh, I see. AFAIK that's not possible.
-
@pro3d said in Can I use relative pos by +/-?:
My badly stated question was if I could just use [XYZE]+[nr] instead of switching back and forth between relative and absolute just by using the +/- sign in the command line
No you can't. Commands such as G1 X-10 already have a defined meaning, i.e. move to X coordinate -10. Similarly, G1 X+10 means the same as G1 X10.