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

    Read actual PWM of heater

    Scheduled Pinned Locked Moved
    DSF Development
    3
    5
    382
    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.
    • Lemundefined
      Lem
      last edited by

      Hello
      I'm testing new M codes using dsf python scripts. This is really good, but in one of this I need information about actual PWM of heater. In ObjectModel I can find only average PWM and state which means "active", "off", etc. Is it possible to read actual PWM / bang bang status (heated or not)?

      pjlundefined dc42undefined 2 Replies Last reply Reply Quote 0
      • pjlundefined
        pjl @Lem
        last edited by

        @lem not without making modifications to RRF so that it supplies that specific thing to the object model. as far as I understand, at least.

        How are you running the mcodes in python? I could only manage to use perform_simple_code() method since it takes in a whole string. When I tried to use perform_code() I could not get any parameters to send..

        Lemundefined 1 Reply Last reply Reply Quote 0
        • Lemundefined
          Lem @pjl
          last edited by

          @pjl
          I'm running build-in G/M codes using perform_simple_code(). As you can see on github to perform_code() you need Code class obcject. I didn't try it yet.

          For custom M-codes here is example

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

            @lem currently the actual heater PWM is not available in the object model. What do you need it for, and why is the average PWM (which is averaged over the last several seconds) not suitable??

            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

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

              @dc42 I have too weak power supply so I have to heat chamber only if bed is not heated. Earlier I did it in firmware but it will be nice to do it in Python script.

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