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

    Cancel script….

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    3
    4
    682
    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.
    • peirofundefined
      peirof
      last edited by

      Hi,

      It was to see how the following could be done:

      When I have to cancel a print job, for the moment more often than I would like, I do it by turning off the printer.
      I know it's not the best way. I had planned to do it with scripts, I see two options:

      TO CANCEL AN IMPRESSION:

      a) - That when a printout is canceled by DWC, a script is executed, and in that Script it includes the orders that I indicate below. Stop.g, it is executed only when the printing is finished, or also when it is canceled? (If it is executed when it is canceled it could be the solution)

      or

      b) - Execute a Script, cancel the printing and execute certain gcodes

      I thought to include the following ones. What is your opinion? Add / Remove or change order something?

      [[language]]
      G1 E-40 F100; Retract filament
      G28; Homing
      M140 S-273.15; bed switched off
      M104 S0; heater switched off
      
      
      1 Reply Last reply Reply Quote 0
      • peirofundefined
        peirof
        last edited by

        mmm…..

        this resolves my dudes... contents of [c]stop.g[/c]

        [[language]]
        ; stop.g
        ; called when M0 (Stop) is run (e.g. when a print from SD card is cancelled)
        ;
        ; generated by RepRapFirmware Configuration Tool on Sun Jan 21 2018 07:57:47 GMT+0100 (Hora estándar romance)
        
        
        1 Reply Last reply Reply Quote 0
        • DADIYundefined
          DADIY
          last edited by

          @peirof:

          Hi,

          It was to see how the following could be done:

          When I have to cancel a print job, for the moment more often than I would like, I do it by turning off the printer.
          I know it's not the best way. I had planned to do it with scripts, I see two options:

          TO CANCEL AN IMPRESSION:

          a) - That when a printout is canceled by DWC, a script is executed, and in that Script it includes the orders that I indicate below. Stop.g, it is executed only when the printing is finished, or also when it is canceled? (If it is executed when it is canceled it could be the solution)

          or

          b) - Execute a Script, cancel the printing and execute certain gcodes

          I thought to include the following ones. What is your opinion? Add / Remove or change order something?

          [[language]]
          G1 E-40 F100; Retract filament
          G28; Homing
          M140 S-273.15; bed switched off
          M104 S0; heater switched off
          
          

          Check out cancel.g in the documenation, I think this file would do what you want.

          https://www.duet3d.com/wiki/Configuring_RepRapFirmware_for_a_Cartesian_printer#Pause.2C_resume_and_cancel_files

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

            The usual way to cancel a print is to press the Pause button in DWC or on PanelDue, then the Cancel button. When you do that, macro file sys/cancel.g is run, if it exists.

            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