Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Can I use relative pos by +/-?

    Tuning and tweaking
    3
    5
    342
    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.
    • pro3d
      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

      V-King 3D Printer - All Wheels and Belts Running Smooth on the Rails!

      R&D - Developer/Engineering Designer - V-King 3D Printers
      https://vkingprinter.com/

      deckingman 1 Reply Last reply Reply Quote 0
      • deckingman
        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/c/deckingman/

        pro3d 1 Reply Last reply Reply Quote 0
        • pro3d
          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

          V-King 3D Printer - All Wheels and Belts Running Smooth on the Rails!

          R&D - Developer/Engineering Designer - V-King 3D Printers
          https://vkingprinter.com/

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

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

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

            1 Reply Last reply Reply Quote 0
            • dc42
              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