Suppress "ATX Power" widget on dashboard
-
We use M80 in our config, which enables an "ATX Power" widget on the dashboard. Is there a way to suppress this from being visible? If not, is there a way to modify the functionality without branching DWC?
Thanks
-
@oozebot I think you need to take out the M80 from your config.
I needed it and could not 'find' it until I added M81 to my config file.
I have an M80 gcode meta command as the first line in homex.g and homey.g to make sure the printer is on when i start anything.
-
@sinned6915 well, that’s the issue.. we use two power supplies- an “always on” 5v and a 24v. M80 is required to be at the top of config.g when the printer is first powered up or else all sorts of errors are displayed due to the toolboard(s) not being powered up. However, entering low power mode (24v off) requires calling several commands prior to M81, which is all the widget does..
-
Instead of using M80 to turn the power on.
Assuming you are using a Duet3 MB6HC, uset M950 to configure io4.out as a gpio and then use M42 to switch it.
io4.out is connected to the pson FET
Edit: this is true for the Duet 3 Mini 5+, fairly sure the same can be done in the MB6HC.
-
@serbitar I’ll give it a go and report back.. thanks!
-
@oozebot Looking at the schematics looks like pson has its own pin.
Maybe you can switch the power supply on with another output such as a fan header, etc. It just needs to be FET switched to ground.
-
@oozebot i am not following.
- What logic do you have connected to the PS_ON pin?
- How are you controlling the power to the 24V PSU?
Here is what I did if it helps-
I am on Duet2. I have like a 5A-5V Meanwell that is always on. It powers the Duet, Duex & Panel Due. I have 2 HiLetGo 5V control Opto-Isolated relay that control mains power to the the 24V PSU and the mains powered bed heater.Switching the printer 'ON' with the pysical switch powers on the 5V PSU and provies input power to the realys.
Without M81 in my config file, I did not have the widget. with M81 towards the top, it appears in on the DWC Dashboard.
-
@sinned6915 I appreciate the response, but we do have our power routine ironed out other than this ATX Power widget issue. Our setup also uses a similar 5v relay to toggle the 24v power supply but the macro which controls this contains more code than just M80/M81.
There are many issues with the widget for our use case as it simply turns the power supply on and off. That creates an unsafe condition with our machines as we utilize a belt driven z-axis, protected by stepper motors with built in brakes. Simply turning on the power supply (M80) without reprocessing config.g (what it does), disengages the brakes with no chance to energize the steppers (M17), resulting in the gantry dropping.
So our original question remains as we must find a way to protect against this unsafe condition and removing the widget would solve the issue.
-
@oozebot have you tried replacing the M80 command in the config with a macro call?
instead of M80 in the config.g file, put something like this-M98 P"0:/macros/my custom-power-macro.g"
and within that macro gcode meta commnands along the lines of -
if boards[0].vIn.current < 23 M80 G4 P1000 ; wait 1 second for power to stabilize elif boards[0].vIn.current > 23
otherwise i think that of you have a macro that is named "M80.g" it will get read instead of the default M80 one.
EDIT: its sort of defined here- https://duet3d.dozuki.com/Wiki/G-Codes_not_implemented
-
@sinned6915 Thanks. Yes to trying both.. adding M80 in a macro still results in the widget displaying on the dashboard. Creating a custom M80.g (we've tried both the macros and sys folder) does not result in the functionality being overridden - which would have worked.
-
Another issue is that M999 disables pson when called. If M80 isn't at the top of config.g, the 24v power supply shuts down every time a change is made to the config, etc.