gelly
Posts: 29
Joined: Sun Nov 23, 2014 2:17 am

Turn off printer with GCODE after finishing ?

I read somewhere there are gcodes to send a signal to the power supply to go into standby mode (assuming ATX power supply) is anyone familiar with that ? so it can be added somewhere in the code ?
User avatar
jimc
Posts: 1124
Joined: Wed Aug 28, 2013 11:02 pm
Location: mullica, nj
Contact: Website

Re: Turn off printer with GCODE after finishing ?

Well its not quite that easy. Your printer has to be set up for the power supply to be controlled by some of the pins in your controller board. Most are not. The gcode would vary depending on the mfg of the printer and the pins they chose to perform the task. On my rambo bosrd for instance there are output pins that can be switched on or off by sending a code. The pins can control a relay which in turn swiches the supply on or off.
User avatar
TenKOhms
Posts: 172
Joined: Wed May 14, 2014 3:04 pm

Re: Turn off printer with GCODE after finishing ?

If you have are running Marlin firmware or a derivative of it, you can connect the PS_ON wire from the atx psu to the PS_ON pin of your board and the command M81 will shut the PSU down, M80 will turn the PSU on. Works nicely on my RAMPS 1.4 board.
AndersE
Posts: 224
Joined: Sun Feb 02, 2014 4:40 pm

Re: Turn off printer with GCODE after finishing ?

How can you start the powersupply with gcode when there are no power to the printer???
Rigor_M
Posts: 8
Joined: Fri Oct 24, 2014 8:42 pm

Re: Turn off printer with GCODE after finishing ?

A computer power supply (ATX) has a +5V STB (stand by) supply. You use that line to power the board.
Then, you use the green wire (PS_ON) to turn on or off (M80 / M81) the printer.

Mind that the controller board is always powered on. only the +12V is turn off (steppers, hotend, heatbed, etc)
MPaydar
Posts: 1
Joined: Sun Jul 21, 2024 7:12 am

Re: Turn off printer with GCODE after finishing ?

No sure about the GCODE method, but I putty into the controller and shut it down as normal (systemctl poweroff), and once things power down, I turn the actual power rocker switch off.

Return to “General Discussion and Tips”