Skip to content

Add feature PSU POWER Action gcode#19831

Closed
senseisimple wants to merge 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
sensimple-contrib:PSU_ACTION_GCODE
Closed

Add feature PSU POWER Action gcode#19831
senseisimple wants to merge 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
sensimple-contrib:PSU_ACTION_GCODE

Conversation

@senseisimple
Copy link

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

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
Copy link
Member

For one reason or another this was not editable by admins, so the PR has been re-created in an editable form.

@senseisimple senseisimple deleted the PSU_ACTION_GCODE branch October 21, 2020 22:27
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

Comments