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

    M24 in macro not resuming print

    Scheduled Pinned Locked Moved
    General Discussion
    2
    2
    394
    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.
    • Dominikundefined
      Dominik
      last edited by

      Hi, I'm setting up filament change during print with M600 code. This is my filament-change.g :

      ;Change filament during print
      
      M83               ; relative extruder moves
      G1 E-10 F2000     ; retract 10mm of filament
      G91               ; relative positioning
      G1 Z5 F360        ; lift Z by 5mm
      G90            	  ; absolute positioning
      G1 X10 Y10 F3000  ; go to X=10 Y=10
      
      G1 E-150 F1500 	  ; Retract 150mm of filament at 1500 mm/min
      M400 		  ; Wait for the moves to finish
      
      M300 S2000 P100   ; Beep
      G4 P200
      M300 S2000 P100
      G4 P200
      M300 S2000 P100
      G4 P200
      M300 S2000 P100
      G4 P200
      M300 S2000 P100
      
      M291 P"Insert new filament" R"Filament change" S2
      
      G1 E40 F100 	; Feed 40mm of filament at 100mm/min
      M400 		; Wait for the moves to finish
      
      M291 P"Press OK to resume" R"Filament change" S2
      
      G1 E-10 F3600   ; retract 10mm of filament
      M400 		; Wait for the moves to finish
      M24		; Resume print
      

      The problem is that M24 wont resume print. However, if I enter M24 in web console, or hit resume on LCD it resumes. I'm running version 2.02(RTOS) (2018-12-24b1) on Maestro.
      Am I doing something wrong here ? Thanks.

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

        I've put this on my list to investigate. What I think is happening is that the status gets set to 'pausing' while filament-change.g is running, and 'paused' when it finishes. In which case, we'll need to handle M24 when executed within filament-change.g or pause.g specially.

        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