Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Can I use relative pos by +/-?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    3
    5
    591
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pro3dundefined
      pro3d
      last edited 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

      Valkyrie DIY High Temp 3D Printer

      R&D - Engineering Designer - Viking 3D Printers
      https://vkingprinter.com/

      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @pro3d
        last edited by deckingman

        @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?

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

        pro3dundefined 1 Reply Last reply Reply Quote 0
        • pro3dundefined
          pro3d @deckingman
          last edited by

          @deckingman

          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

          Valkyrie DIY High Temp 3D Printer

          R&D - Engineering Designer - Viking 3D Printers
          https://vkingprinter.com/

          deckingmanundefined dc42undefined 2 Replies Last reply Reply Quote 0
          • deckingmanundefined
            deckingman @pro3d
            last edited by

            @pro3d Ahh, I see. AFAIK that's not possible.

            Ian
            https://somei3deas.wordpress.com/
            https://www.youtube.com/@deckingman

            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @pro3d
              last edited by

              @pro3d said in Can I use relative pos by +/-?:

              @deckingman

              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.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA