# Is there a G-code to get power supply state?

I'm using M80 and M81 G-codes to power on/off power supply.

Is there a G-code to know the actual state of the power supply?

• While there is no dedicated command for this, there may be some options. Can you describe your hardware? Are you using a stock printer or a custom? What are you turning off with the M81? Are you just turning off the 12V and leaving 5V board supply on? What boardset are you running? RAMPS? – markshancock May 10 '17 at 19:39