Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature PSU POWER Action gcode #19837

Merged

Conversation

thinkyhead
Copy link
Member

Recreation of uneditable #19831 by @senseisimple so it can be cleaned up for merge.


Description

Adds PSU_POWERUP_GCODE and PSU_POWEROFF_GCODE definitions to the PSU_CONTROL block which enables running gcode as part of the PS_ON/OFF (M80/M81) switching (manual, auto on, and timeout) routines.

An example use is to turn on separately controlled case lights on/off (M355) as part of power on/off.

Benefits

Allow running gcode as part of the PS_ON/OFF (M80/M81) action which implicitly benefits from the related functionality of the AUTO_POWER_CONTROL and POWER_TIMEOUT controls.

Configurations

Stock Configuration.h is included in the commit with the two new definition entries PSU_POWERUP_GCODE and PSU_POWEROFF_GCODE commented.

Related Issues

A relevant feature request is open (this adds a more generic approach than those suggested):
#13318

senseisimple and others added 2 commits October 21, 2020 03:42
PSU_POWERUP_GCODE and PSU_POWEROFF_GCODE to allow running gcodes as part of the PS_ON/OFF (M80/M81) switching. 

Example use being turning separately controlled case lights on/off (M355) as part of power on/off.

A relevant feature request is open (this adds a more generic approach than those suggested): MarlinFirmware#13318

set poweroff gcode to only run if powered on
@thinkyhead thinkyhead merged commit 7d64de6 into MarlinFirmware:bugfix-2.0.x Oct 21, 2020
@thinkyhead thinkyhead deleted the bf2_pr_19831_editable branch October 21, 2020 20:03
thinkyhead added a commit to thinkyhead/Marlin that referenced this pull request Oct 21, 2020
sebsx pushed a commit to sebsx/Marlin that referenced this pull request Oct 25, 2020
sebsx pushed a commit to sebsx/Marlin that referenced this pull request Oct 25, 2020
Speaka pushed a commit to Speaka/Marlin that referenced this pull request Nov 2, 2020
vgadreau pushed a commit to vgadreau/Marlin that referenced this pull request Dec 9, 2020
sebsx pushed a commit to sebsx/Marlin that referenced this pull request Dec 30, 2020
tharts pushed a commit to tharts/Marlin that referenced this pull request Jan 6, 2021
kpishere pushed a commit to kpishere/Marlin that referenced this pull request Feb 19, 2021
W4tel-BiDi pushed a commit to W4tel-BiDi/Marlin that referenced this pull request Apr 5, 2021
thinkyhead added a commit to thinkyhead/Marlin that referenced this pull request Apr 28, 2021
thinkyhead added a commit to thinkyhead/Marlin that referenced this pull request Apr 29, 2021
thinkyhead added a commit that referenced this pull request Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants