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

    return target bed temp?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    1
    2
    132
    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.
    • mitchundefined
      mitch
      last edited by

      v3.1.1

      I am looking through the object model and I do not see a way to return the target bed temperature.
      https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware

      That being said I am using the following successfully but I don't see it documented here either?

      echo sensors.filamentMonitors[0].filamentPresent
      

      Where is the best place to browse all of the model keys available for v3.1.1 or later? Specifically, does something exist that will return the bed target temp (not sensor temp) so that I may use it in some macro logic?

      Thanks in advance,

      1 Reply Last reply Reply Quote 0
      • mitchundefined
        mitch
        last edited by

        Well I think I located the latest model framework source for v3.1.1
        https://github.com/Duet3D/DuetSoftwareFramework/blob/894e370d22390b2677bd6cdc647f68910060c0c7/src/DuetAPI/Machine/Heat/Heater.cs

        I found what I was looking for. It looks like I can use the "active" parameter to return the target temp. I will leave the post up on case someone else is looking for the same thing.

        Examples, assuming 0=bed heater:

        heat.heaters[0].current  (returns temp)
        heat.heaters[0].sensor (returns the heater number)
        heat.heaters[0].active   (returns the target/commanded temp)
        heat.heaters[0].standby  (returns the standby temp)
        heat.heaters[0].state (returns true/false for state)
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA