How to get tool fan status?
-
Is there a g code to return the current part cooling fan setting? Also DWC doesn't seem to like showing the current setting.
I have fan 3 assigned as the part cooling fan to T0 but the DWC doesn't show its status. I can move the slider to set the speed but the slider always springs back to zero. I confirm that the slider does adjust the fan speed, for example dragging fan slider to 100% or 50% and unclicking does set the fan speed but the slider indicator snaps to zero.
Also, M106 Sxxx does set the fan speed, DWC fan slider doesn't indicate the current setting for that either.
This is my current line assigning fan F3 to my tool 0:
M563 P0 D2:3 H3:4:5:6 F3Is there something else I should look at?
Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
Firmware Electronics: Duet Ethernet 1.02 or later + DueX5
Firmware Version: 2.02(RTOS) (2018-12-24b1)
Web Interface Version: 1.22.6 -
What does your fan section in your config look like?
It's recommended to use Fan 0 as the part cooling fan because most slicers don't let you specify other fan ports.
You can see the currently configured fan settings by sending M106 and the fan number you want to see. They should match what you have in config.g though.
-
It's recommended to use Fan 0 as the part cooling fan because most slicers don't let you specify other fan ports.
That's complicated right now because I have fans that I want to be "always on" that run at a different voltage from my part cooling fan. Duet itself doesn't seem to offer mixed fan voltage rails and DueX doesn't have always on fan jacks.
Besides, from what I understand, assigning a fan to a tool addresses the limitations of slicers not being able to control an arbitrary fan. Once a fan is assigned to a tool using M563, M106 Sxxx will control the fan assigned to the tool currently in use with no extra terms necessary. RRF seems to handle this part just fine. Maybe DWC 1.x isn't aware of this, and if so, if it's not already addressed in DWC 2.x it probably should be taken care of in anticipation of all the tool changing printers coming, which will have a different part cooling fan for each tool.
What does your fan section in your config look like?
These are the only two fan-related commands in my config:
M563 P0 D2:3 H3:4:5:6 F3 ;assigns motors 2 & 3, heaters 3-6 and fan 3 to tool 0
M106 P1 H6 T60 L255 X255 C"Water Pump" ;thermostatic fanYou can see the currently configured fan settings by sending M106 and the fan number you want to see.
OK thanks, that does work. This didn't seem to be covered in the g code reference.
-
It seems to be working now. I don't know what changed. I'll double check later.
-
M106 with no parameters will return the tool fan setting.