Skip to content

Commit 6271f17

Browse files
authored
Merge pull request prusa3d#3442 from gudnimg/fix-M701-doc
Add documentation for M701, M203, M201 parameters
2 parents 65e19f6 + 3ff2b04 commit 6271f17

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

Firmware/Marlin_main.cpp

+32-8
Original file line numberDiff line numberDiff line change
@@ -7039,8 +7039,17 @@ SERIAL_PROTOCOLPGM("\n\n");
70397039
break;
70407040

70417041
/*!
7042-
### M201 - Set Print Max Acceleration <a href="https://reprap.org/wiki/G-code#M201:_Set_max_printing_acceleration">M201: Set max printing acceleration</a>
7042+
### M201 - Set Print Max Acceleration <a href="https://reprap.org/wiki/G-code#M201:_Set_max_acceleration">M201: Set max printing acceleration</a>
70437043
For each axis individually.
7044+
##### Usage
7045+
7046+
M201 [ X | Y | Z | E ]
7047+
7048+
##### Parameters
7049+
- `X` - Acceleration for X axis in units/s^2
7050+
- `Y` - Acceleration for Y axis in units/s^2
7051+
- `Z` - Acceleration for Z axis in units/s^2
7052+
- `E` - Acceleration for the active or specified extruder in units/s^2
70447053
*/
70457054
case 201:
70467055
for (int8_t i = 0; i < NUM_AXIS; i++)
@@ -7076,8 +7085,17 @@ SERIAL_PROTOCOLPGM("\n\n");
70767085
#endif
70777086

70787087
/*!
7079-
### M203 - Set Max Feedrate <a href="https://reprap.org/wiki/G-code#M203:_Set_maximum_feedrate">M203: Set maximum feedrate</a>
7088+
### M203 - Set Max Feedrate <a href="https://reprap.org/wiki/G-code#M203:_Set_maximum_feedrate">M203: Set maximum feedrate</a>
70807089
For each axis individually.
7090+
##### Usage
7091+
7092+
M203 [ X | Y | Z | E ]
7093+
7094+
##### Parameters
7095+
- `X` - Maximum feedrate for X axis
7096+
- `Y` - Maximum feedrate for Y axis
7097+
- `Z` - Maximum feedrate for Z axis
7098+
- `E` - Maximum feedrate for extruder drives
70817099
*/
70827100
case 203: // M203 max feedrate mm/sec
70837101
for (uint8_t i = 0; i < NUM_AXIS; i++)
@@ -8659,13 +8677,19 @@ SERIAL_PROTOCOLPGM("\n\n");
86598677
}
86608678
break;
86618679

8662-
/*!
8663-
### M701 - Load filament <a href="https://reprap.org/wiki/G-code#M701:_Load_filament">M701: Load filament</a>
8664-
8665-
*/
8680+
/*!
8681+
### M701 - Load filament <a href="https://reprap.org/wiki/G-code#M701:_Load_filament">M701: Load filament</a>
8682+
#### Usage
8683+
8684+
M701 [ E | T ]
8685+
8686+
#### Parameters
8687+
- `E` - ID of filament to load, ranges from 0 to 4
8688+
- `T` - Alias of `E`. Used for compatibility with Marlin
8689+
*/
86668690
case 701:
86678691
{
8668-
if (mmu_enabled && code_seen('E'))
8692+
if (mmu_enabled && (code_seen('E') || code_seen('T')))
86698693
tmp_extruder = code_value_uint8();
86708694
gcode_M701();
86718695
}
@@ -8675,7 +8699,7 @@ SERIAL_PROTOCOLPGM("\n\n");
86758699
### M702 - Unload filament <a href="https://reprap.org/wiki/G-code#M702:_Unload_filament">G32: Undock Z Probe sled</a>
86768700
#### Usage
86778701
8678-
M702 [ U | C ]
8702+
M702 [ C ]
86798703
86808704
#### Parameters
86818705
- `C` - Unload just current filament

0 commit comments

Comments
 (0)