This page describes how to control your power supply’s ON/OFF signal from Smoothie using the Switch module.
This allows your board to automatically turn the power supply on or off when needed, such as at the start or end of a job.
Here is how to control an ATX power supply’s ON/OFF signal from a bare pin connected to the PS_ON signal:
switch.psu.enable true # turn atx on/off
switch.psu.input_on_command M80 # command to turn on
switch.psu.input_off_command M81 # command to turn off
switch.psu.output_pin 0.25o! # open drain, inverted
switch.psu.output_type digital # on/off only
switch.psu.failsafe_set_to 1 # so the ATX turns off on a system crash
#switch.psu.ignore_on_halt true # so the ATX does not turn off on a HALT condition (like limit trigger)
# However leave commented or set to false if you want the ATX to turn off for an over heat fault condition
o
in 0.25o!
.
Here is how to control an ATX power supply’s ON/OFF signal from a small MOSFET connected to the PS_ON signal, or to an SSR which powers a non-ATX PSU:
switch.psu.enable true # turn atx on/off
switch.psu.input_on_command M80 # command to turn on
switch.psu.input_off_command M81 # command to turn off
switch.psu.output_pin 2.4 # small mosfet (NB not inverted)
switch.psu.output_type digital # on/off only
#switch.psu.ignore_on_halt true # so the PSU does not turn off on a HALT condition (like limit trigger)
# However leave commented or set to false if you want the PSU to turn off for an over heat fault condition
!
after the pin number), unlike the direct connection method.
Once configured, you can control your power supply with these commands:
Command | Function |
---|---|
M80 |
Turn power supply ON |
M81 |
Turn power supply OFF |
The failsafe_set_to
parameter ensures that if Smoothie crashes, the power supply will turn off automatically.
This is a critical safety feature.
The ignore_on_halt
parameter determines whether the power supply should turn off when Smoothie enters a HALT condition (such as when a limit switch is triggered).
Options: