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

    is this same? echo\nM99 vs abort ?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    3
    106
    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.
    • arhiundefined
      arhi
      last edited by

      is this same?

      if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed
        echo "Axes not homed, aborting"
        M99
      
      G1...
      

      vs

      if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed
        abort "Axes not homed, aborting"
      
      G1...
      
      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        M99 will quit the current macro only. 'abort' will quit all nested macros, and the print file if the macro was called from one.

        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

        arhiundefined 1 Reply Last reply Reply Quote 1
        • arhiundefined
          arhi @dc42
          last edited by

          @dc42 said in is this same? echo\nM99 vs abort ?:

          M99 will quit the current macro only. 'abort' will quit all nested macros, and the print file if the macro was called from one.

          clear, thanks

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