return target bed temp?
-
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_RepRapFirmwareThat 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,
-
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.csI 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)