Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    M573 Heater PWM Logging

    Gcode meta commands
    2
    5
    140
    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.
    • helpimlost
      helpimlost last edited by

      Is there an easy way to log the values given by M573 into a text file with M118 or M929? I'm not entirely confident about how M118 works but it looks like it only logs a string. I can use a loop to continuously report M573 values and have that be reported into a text file with M929 but I would also like to have the layer height or print speed be in the same output line as the M573 value. I figured the best way to do that would be with an echo.

      Also, I've tried setting M573 values as a variable which I could then echo but it seems you can only set object model items as variables. I could be completely wrong on some of this so feel free to educate me if I am.

      if {heat.heaters[1].current >= 50}
      	M929 S3
      	
      	while {heat.heaters[1].current >= 50}	;Check hotend is over 100 C
      		var <heat1pwm> = <M573 P1>
      		echo "Heater 1 PWM: " ^ {var.heat1pwm} 
      	end
      end
      
      
      helpimlost dc42 2 Replies Last reply Reply Quote 0
      • helpimlost
        helpimlost @helpimlost last edited by

        Hardware is a Duet 3 + SBC running RRF 3.3RC3.

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

          @helpimlost I will need to add the current PWM to the object model before you can log it.

          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

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

            @dc42 Understood. Thanks!

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

              @helpimlost I will add this in RRF 3.4.

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