• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    Lem
    last edited by 1 Sept 2022, 07:50

    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)?

    undefined undefined 2 Replies Last reply 1 Sept 2022, 14:33 Reply Quote 0
    • undefined
      pjl @Lem
      last edited by 1 Sept 2022, 14:33

      @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..

      undefined 1 Reply Last reply 2 Sept 2022, 08:48 Reply Quote 0
      • undefined
        Lem @pjl
        last edited by 2 Sept 2022, 08:48

        @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
        • undefined
          dc42 administrators @Lem
          last edited by 2 Sept 2022, 19:25

          @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

          undefined 1 Reply Last reply 28 Sept 2022, 07:43 Reply Quote 0
          • undefined
            Lem @dc42
            last edited by 28 Sept 2022, 07:43

            @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