Browse Source

Turn off power supply off-load

Disable the high current output and wait a little before to turn off,
because the interrupting capacity of the PSU is unknown.
Could be a function if needed by other.
Nicolas Rossi 12 years ago
parent
commit
6504e96165
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      Marlin/Marlin_main.cpp

+ 8
- 1
Marlin/Marlin_main.cpp View File

@@ -1156,7 +1156,14 @@ void process_commands()
1156 1156
       #endif
1157 1157
       
1158 1158
       case 81: // M81 - Turn off Power Supply
1159
-      
1159
+        disable_heater();
1160
+        st_synchronize();
1161
+        disable_e0();
1162
+        disable_e1();
1163
+        disable_e2();
1164
+        finishAndDisableSteppers();
1165
+        fanSpeed = 0;
1166
+        delay(1000); // Wait a little before to switch off
1160 1167
       #if defined SUICIDE_PIN && SUICIDE_PIN > -1
1161 1168
         st_synchronize();
1162 1169
         suicide();

Loading…
Cancel
Save