Object Model value never seems to change
-
Hi,
Using firmware 3.5.4 on a 6HC.
There are values in the object model like this:
tools[0].state tools[1].state tools[2].state tools[3].state
On my printer they all show "standby" as the value and I have never seen them change.
What does this value mean and when should it change?
Thanks.
Frederick
-
@fcwilt see the documentation here:
https://github.com/Duet3D/RepRapFirmware/wiki/Object-Model-Documentation-Beta-&-RC#toolsstateShould change when a tool cycles between active standby and off.
-
@T3P3Tony said in Object Model value never seems to change:
@fcwilt see the documentation here:
https://github.com/Duet3D/RepRapFirmware/wiki/Object-Model-Documentation-Beta-&-RC#toolsstateShould change when a tool cycles between active adrandby and off.
Thanks I will check the documentation.
But so far I have not be able to do anything that makes that value change.
Frederick
-
@fcwilt it's working for me using 3.6.0-rc.1 on a 6HC in standalone mode. All tool states are initially "off". If I select a tool its state goes to "active", if I select another tool then that one goes "active" and the one that was selected before goes "standby". Reselecting the first tool swaps their active/standby states.
-
@dc42 said in Object Model value never seems to change:
@fcwilt it's working for me using 3.6.0-rc.1 on a 6HC in standalone mode. All tool states are initially "off". If I select a tool its state goes to "active", if I select another tool then that one goes "active" and the one that was selected before goes "standby". Reselecting the first tool swaps their active/standby states.
On my 3.5.4 machine I see that happening in the DWC but I haven't seen the value in the object model change.
I will keep testing.
Thanks.
Frederick
-
@fcwilt it's conceivable that it's a bug in 3.5.x that was fixed in 3.6 but it's not listed at https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x-RC#bug-fixes-since-354. When the states are shown incorrectly in the DWC Object Model Browser, if you then click the Refresh button or (if running in standalone mode) reload the browser tab, do they change to the correct values?
-
@dc42 said in Object Model value never seems to change:
@fcwilt it's conceivable that it's a bug in 3.5.x that was fixed in 3.6 but it's not listed at https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x-RC#bug-fixes-since-354. When the states are shown incorrectly in the DWC Object Model Browser, if you then click the Refresh button or (if running in standalone mode) reload the browser tab, do they change to the correct values?
Give me a few minutes and I will take a break to test it again.
Frederick
-
@dc42 said in Object Model value never seems to change:
@fcwilt it's conceivable that it's a bug in 3.5.x that was fixed in 3.6 but it's not listed at https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x-RC#bug-fixes-since-354. When the states are shown incorrectly in the DWC Object Model Browser, if you then click the Refresh button or (if running in standalone mode) reload the browser tab, do they change to the correct values?
OK I've figured it out.
I was cycling the heaters from off > active > standby BUT I was looking at the tool settings in the object model.
When I changed which tool was active then the value in the object model was correct.
I've learned something new.
Thanks.
Frederick
-
undefined dc42 marked this topic as a question
-
undefined dc42 has marked this topic as solved
-
@fcwilt object model field heat.heaters[N].state should change when you cycle the heaters in that way.
-
@dc42 said in Object Model value never seems to change:
@fcwilt object model field heat.heaters[N].state should change when you cycle the heaters in that way.
Yes I did locate that.
I was thinking (wrongly so) that if the tool heater was on standby the tool itself would have to be on standby.
It appears that the state of the tool being active/standby in my mind is more like selected/not selected
Thanks for the help in understanding things.
Frederick