Browse Source

Extended comment explaining M42 usage

Bas Spaans 11 years ago
parent
commit
01541ee64c
1 changed files with 18 additions and 10 deletions
  1. 18
    10
      Marlin/Marlin_main.cpp

+ 18
- 10
Marlin/Marlin_main.cpp View File

@@ -88,7 +88,7 @@
88 88
 // M29  - Stop SD write
89 89
 // M30  - Delete file from SD (M30 filename.g)
90 90
 // M31  - Output time since last M109 or SD card start to serial
91
-// M42  - Change pin status via gcode
91
+// M42  - Change pin status via gcode. Use M42 Px Sy to set pin x to value y, when omitting Px the onboard led will be used.
92 92
 // M80  - Turn on Power Supply
93 93
 // M81  - Turn off Power Supply
94 94
 // M82  - Set E codes absolute (default)
@@ -124,7 +124,8 @@
124 124
 // M500 - stores paramters in EEPROM
125 125
 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).  
126 126
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
127
-// M503 - print the current settings (from memory not from eeprom)
127
+// M503 - print the current settings (from memory not from eeprom)
128
+
128 129
 // M540 - Use S[0|1] to enable or disable the stop SD card print on endstop hit (requires ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
129 130
 // M600 - Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
130 131
 // M907 - Set digital trimpot motor current using axis codes.
@@ -958,7 +959,7 @@ void process_commands()
958 959
       autotempShutdown();
959 960
       }
960 961
       break;
961
-    case 42: //M42 -Change pin status via gcode
962
+    case 42: //M42 -Change pin status via gcode 
962 963
       if (code_seen('S'))
963 964
       {
964 965
         int pin_status = code_value();
@@ -1499,13 +1500,20 @@ void process_commands()
1499 1500
     {
1500 1501
         Config_PrintSettings();
1501 1502
     }
1502
-    break;
1503
-    #ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
1504
-    case 540:
1505
-    {
1506
-        if(code_seen('S')) abort_on_endstop_hit = code_value() > 0;
1507
-    }
1508
-    break;
1503
+    break;
1504
+
1505
+    #ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
1506
+
1507
+    case 540:
1508
+
1509
+    {
1510
+
1511
+        if(code_seen('S')) abort_on_endstop_hit = code_value() > 0;
1512
+
1513
+    }
1514
+
1515
+    break;
1516
+
1509 1517
     #endif
1510 1518
     #ifdef FILAMENTCHANGEENABLE
1511 1519
     case 600: //Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]

Loading…
Cancel
Save