M573 Heater PWM Logging
-
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
-
Hardware is a Duet 3 + SBC running RRF 3.3RC3.
-
@helpimlost I will need to add the current PWM to the object model before you can log it.
-
@dc42 Understood. Thanks!
-
@helpimlost I will add this in RRF 3.4.