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

    PAUSE.G & RESUME.G for IDEX printer (DUAL, DITTO & MIRROR)

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    313
    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.
    • Trideoundefined
      Trideo
      last edited by Trideo

      Hi everybody,

      Board: Duet WiFi 1.02 or later + DueX2
      Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 2.04 (2019-11-01b1)
      Duet WiFi Server Version: 1.23

      Our IDEX printer uses different Tool configuration according to printing mode, executed by Macros.
      PArk XU.jpg
      When pausing a SD print, we want each tool to go to his dedicated park zone (Ex1 to X park zone and Ex2 to U park zone).
      We couldn't define suitable pause.g and resume.g codes that work well independently from the printing mode (mainly due to U axis inversion for Mirror mode).
      We want a unique pause.g & resume.g code for all configurations.

      IDEX (basic one):
      M563 P0 D0 H1 S"Ex 1"
      G10 P0 X0 Y0
      G10 P0 R0 S0
      M563 P1 D1 H2 X3 S"Ex 2"
      G10 P1 X0 Y10.75
      G10 P1 R0 S0

      DITTO:
      M563 P0 D0:1 H1:2 X0:3 S"Super Tool DITTO"
      G10 P0 X0 Y0 U-200 S0 R0
      M567 P0 E1:1

      MIRROR:
      M563 P0 D0:1 H1:2 X0:3 S"Super Tool MIRROR"
      G10 P0 X0 Y0 U0 S0 R0
      M579 U-1

      Pause.g:
      M83 ; relative extruder moves
      G1 E-1 F1200 ; retract 1mm of filament
      G91 ; relative positioning
      ;G1 Z5 F300 ; lift Z by 5mm
      G90 ; absolute positioning
      G1 X-222 U222 Y-162 F12000 ; Park X and U
      G91 ; relative positioning
      ;G1 Z-5 F6000 ; lift Z by 5mm
      G90 ; absolute positioning
      M98 P"0:/macros/5- Control LED/LED Rojo"

      resume.g:
      ; resume.g
      ; called before a print from SD card is resumed
      G90 ; absolute positioning
      G1 X-222 U222 Y-162 F12000 ; Go to park
      M83 ; relative extruder moves
      G1 E30 F300 ; extrude 20mm of filament
      G1 X-222 U222 Y-100 F12000 ; Unpark
      G1 R1 X0 Y0 F12000 ; go back to the last print move
      M98 P"0:/macros/5- Control LED/LED Azul"

      Thank for your help,

      Simon

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

        If you can wait a little longer for RepRapFirmware 3.01, then you will be able to use if-statements in pause.g to execute different Gcode depending on which tool is selected.

        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

        Trideoundefined 1 Reply Last reply Reply Quote 1
        • Trideoundefined
          Trideo @dc42
          last edited by

          @dc42 Thanks for your quick answer! It will be a revolution to be able to do that !!!!

          1 Reply Last reply Reply Quote 0
          • Trideoundefined
            Trideo
            last edited by

            Hi There,

            We are currently running reprap Firmware V3.2, can we speak about this topic as meta command example?
            It will be a useful for us! There is a C, C++ programmer in our team who can't wait to start playing with it!!

            Best regards,

            Simon

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