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

    Can't combine PID tuning into single macro

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    6
    287
    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.
    • supernovaeundefined
      supernovae
      last edited by

      Are there some gcode some commands not able to be sequentially macrod?

      I'm trying to just do a PID tune macro and if i PID tune my hot end, the m500 and the PID tune heat bed never run... it's like it just aborts/finishes..

      RRF 3 duet wifi 2

      macro is just simple:

      ; pidtune Macro (PLA temp based)
      ;
      PID Tune Hot End
      m106 S255 ; set fan to full speed
      m303 h1 s210 ; PID tune the hotend at 210c
      m500 ; save results to config-override.g
      ; PID Tune Heat Bed
      M303 h0 s60 
      m106 s0 ; turn fan off
      m500 ; save results to config-override.g
      
      dc42undefined 1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        What happens if you insert a M291 S3 dialogue box command in between?

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • supernovaeundefined
          supernovae
          last edited by

          I'll give that a shot

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

            It's because M303 only starts the tuning process, which then runs asynchronously.

            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

            supernovaeundefined 1 Reply Last reply Reply Quote 0
            • supernovaeundefined
              supernovae @dc42
              last edited by supernovae

              @dc42 is there a way to use some of the new conditionals to wait for a return code from m303 to continue on? (just thinking unix-y out loud)

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

                @supernovae said in Can't combine PID tuning into single macro:

                @dc42 is there a way to use some of the new conditionals to wait for a return code from m303 to continue on? (just thinking unix-y out loud)

                Yes, the heater state is in the OM so you could loop waiting for it to finish tuning. But the console would be unresponsive until then, which is why I made it run asynchronously.

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