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

    aiuto macro letto livellante

    Scheduled Pinned Locked Moved
    General Discussion
    3
    5
    420
    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.
    • fr4nc3scoundefined
      fr4nc3sco
      last edited by

      Hi,
      I need help I wanted to create this macro with inserted pauses after the Z 2 so that I could correct the reading of the comparator only that I can't get the program to stop and then start again could you help me?
      G1 F1800 Z20
      G1 F6000 Y 70
      G1 X10
      G1 F1800 Z5
      G1 F40 Z2
      M25 ;Pause
      G1 F1800 Z20
      G1 F6000 Y 290
      G1 X10
      G1 F1800 Z5
      G1 F40 Z2
      M25 ;Pause
      G1 F1800 Z20
      G1 F6000 Y 290
      G1 X250
      G1 F1800 Z5
      G1 F40 Z2
      M25 ;Pause
      G1 F1800 Z20
      G1 F6000 Y 70
      G1 X250
      G1 F1800 Z5
      G1 F40 Z2
      M25 ;Pause
      G1 F1800 Z20
      G1 F6000 Y 110
      G1 X120
      G1 F1800 Z5
      G1 F40 Z2

      1 Reply Last reply Reply Quote 0
      • T3P3Tonyundefined
        T3P3Tony administrators
        last edited by

        As you can see from the documentation:

        https://duet3d.dozuki.com/Wiki/Gcode#Section_M25_Pause_SD_print

        M25 is not for initiating a pause from within a print file or macro. Use M226 instead:

        https://duet3d.dozuki.com/Wiki/Gcode#Section_M226_Gcode_Initiated_Pause

        www.duet3d.com

        1 Reply Last reply Reply Quote 0
        • fr4nc3scoundefined
          fr4nc3sco
          last edited by

          tried M226 but the machine does not pause immediately read the line below because where am I wrong?

          T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
          • T3P3Tonyundefined
            T3P3Tony administrators @fr4nc3sco
            last edited by

            @fr4nc3sco try adding a M400 to ensure all the other commands are flushed and then the pause is executed:
            https://duet3d.dozuki.com/Wiki/Gcode#Section_M400_Wait_for_current_moves_to_finish

            www.duet3d.com

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

              I think the problem is that M25 and M226 can only pause an SD card print. If you that sequence inside a GCode file to print, then I think the pauses will work (using either M25 or M226). It may also work in a macro when that macro is called from an SD card file being printed.

              Another way to achieve your aim may be to call another macro (using M98) instead of using M25 or M226. Within that macro, you can use M291 to display a prompt and wait for the user to give an OK to continue.

              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 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA