run code / trigger relay when heater 0 is active or standby?
-
Is it possible to setup the firmware to enable an output when you enable the heater 0 (off-> active?)
I have an mechanical relay that is in series with my bed heater, but I'm using PS_ON to enable my 24V supply - So is there a way to make one of the GPIO high or low if im changing the state of the heater?
I know that I can write a gcode to change the state of the GPIO, but I would like to avoid having to write that GCODE each time im trying to heat up the bed.
Thanks for the help!
-
You could set up a monitoring loop in daemon.g to check the heater status perhaps.
-
@Phaedrux said in run code / trigger relay when heater 0 is active or standby?:
You could set up a monitoring loop in daemon.g to check the heater status perhaps.
That seems like a good way to do it - Do we know what the status variable is called for the bed heater? or is there an overview somewhere where I can find it?
-
Yes it would be in the object model.
https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware
In 3.2 you can load the object model browser plugin to explore the machine state and all of the objects available. That's where you can get the names.
-
@Phaedrux That is perfect, I will try to use that!