Skip to content

Settings

Shawn Bruce edited this page Apr 30, 2021 · 14 revisions

General

Show warning dialog when powering off via toggle button.
Self explanatory.

GPIO Device Specify which GPIO device to use when using GPIO for either switching or sensing. Raspberry Pi's will generally use /dev/gpiochip0

Switching

Switching Method
PSUControl can switch on your power supply using either:

  • GPIO
    Uses available GPIO device. Useful if there are no usable IO pins on the printer PCB and does not require firmware changes. Raspberry Pi users will need to use BCM pin numbering. Support for BOARD pin numbering was removed in v1.0.0.

  • G-Code Command
    Use the existing On/Off commands supported by the printers PCB and firmware. Generally will be M80/M81.

  • System Command
    Executes a system command on the OctoPrint server.
    Note: Commands on *nix systems will be executed within the sh interpreter.

  • Plugin
    Use another plugin which has been registered with PSUControl.

Enable switching with G-Code commands
PSU Control will intercept defined commands and switch the supply on or off using the specified switching option. Not compatible with GCode switching method. Intercepted commands will not be forwarded to the printer controller.

Sensing

Provides PSUControl with the current state of the power supply.

Sensing Method

  • Internal
    Keeps track of the PSU on/off state internally based on the last action. This is the default method to help simplify setup. Using another method is highly recommended.

  • GPIO
    Uses available GPIO device. Useful if there are no usable IO pins on the printer PCB and does not require firmware changes. Raspberry Pi users will need to use BCM pin numbering. Support for BOARD pin numbering was removed in v1.0.0.

  • System Command
    Executes a system command on the OctoPrint server. Command should provide a valid return exit code.
    0 = On, 1 = Off
    Note: Commands on *nix systems will be executed within the sh interpreter.

  • Plugin
    Use another plugin which has been registered with PSUControl.

Polling Interval
Defined how often to check if the PSU is on or off.

Power On Options

Automatically turn PSU ON
Turn the power supply on whenever a printer command within the Trigger Commands list is executed.

Post On Delay
Wait x seconds after turning the power supply on before executing the next printer command. If "connect when powered on' is enabled this delay is before connecting.

Connect when powered on.
Tells OctoPrint to connect to the last used device after turning power on.

Post On GCode Script Sends defined GCode to the printer after powering on.

Power Off Options

Automatically turn PSU OFF when idle
Turns the power supply off after {Idle Timeout} minutes and all hotends are below {Wait For Temperature}°C. Ignore Commands are not counted towards the idle timer.

Disconnect on power off.
Disconnect from the printer after switching the PSU off.

Pre Off GCode Script Sends defined GCode to the printer after powering off.

Disconnect on power off.
Tells OctoPrint to disconnect after turning power off.

Clone this wiki locally