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

    Using the Filament Sensor with a Host

    Scheduled Pinned Locked Moved Solved
    Filament Monitor
    2
    3
    166
    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.
    • printerquestionsundefined
      printerquestions
      last edited by printerquestions

      I am attempting to utilize the filament runout sensor when running a job via Repetier-Server over serial. What I am looking to do is just send a host action command to the server when the filament runs out. Here is the relevant line of my config.g

      M591 D{var.Tool_Num0} P{var.E0_filSensTyp} C{var.E0_filSensPin} L{var.E0_filSensCal} A1 S1				;Configure Filament sensor for tool (D#) Sensor (P#) on pin (C"#") and calibration (L#) enabled on any extrusion move (A#) and enabled at startup (S1)
      

      And here is my pause.g file, which just sends a host action command to Repetier-Server. I've tested the command independently by just entering it in the Duet web interface console and this does give the intended result (pausing the print) on the Repetier-Server side.

      ;pause.g
      M118 S"//action:pause" ;Pause job on the Repetier-Server
      

      The pause action triggers when running a job though the SD card, but not when running a job over serial via Repetier-Server. Is there a way to enable the filament runout sensor when running a job over serial?

      chrishammundefined 1 Reply Last reply Reply Quote 0
      • printerquestionsundefined printerquestions marked this topic as a question
      • chrishammundefined
        chrishamm administrators @printerquestions
        last edited by

        @printerquestions Starting from RRF 3.5.0-rc.1 you can use M591 ... S2 to keep the filament monitor enabled all the time (which is what you need for Repetier AFAIK).

        Duet software engineer

        printerquestionsundefined 1 Reply Last reply Reply Quote 0
        • printerquestionsundefined
          printerquestions @chrishamm
          last edited by printerquestions

          This worked for me. For future reference in case anyone else is using this with Repetier-Server, the pause.g action did not execute even after the change to my M591 command, but it did send a different notification that I was able to catch via Repetier's G-codes response to event and send the pause command from there. I used this regex in Repetier.

          ^Filament\serror\son\sextruder\s\d:.*
          
          1 Reply Last reply Reply Quote 0
          • printerquestionsundefined printerquestions has marked this topic as solved
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA