diff --git a/docs/Config_Reference.md b/docs/Config_Reference.md index 812dd7a9..e3c6bfbb 100644 --- a/docs/Config_Reference.md +++ b/docs/Config_Reference.md @@ -1319,8 +1319,9 @@ a belt printer, can find use in looping sections of the sdcard file. (For example, to print the same part over and over, or repeat the a section of a part for a chain or other repeated pattern). -See the `config/sample-macros.cfg` file for a Marlin compatible M808 -G-Code macro. +See the [command reference](G-Codes.md#sdcard-loop) for supported +commands. See the [sample-macros.cfg](../config/sample-macros.cfg) +file for a Marlin compatible M808 G-Code macro. ``` [sdcard_loop] diff --git a/docs/G-Codes.md b/docs/G-Codes.md index cb84fa65..273870d5 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -66,13 +66,6 @@ In addition, the following extended commands are availble when the - Load a file and start SD print: `SDCARD_PRINT_FILE FILENAME=` - Unload file and clear SD state: `SDCARD_RESET_FILE` -When the [sdcard_loop config section](Config_Reference.md#sdcard_loop) is -enabled, the following extended commands are available. -- Begin a looped section in the SD print: `SDCARD_LOOP_BEGIN COUNT=` - - A count of 0 indicates that the section should be looped indefinately. -- End a looped section in the SD print: `SDCARD_LOOP_END` -- Complete existing loops without further iterations: `SDCARD_LOOP_DESIST` - ## G-Code arcs The following standard G-Code commands are available if a @@ -541,6 +534,17 @@ enabled: future boundary checks; issue a G28 afterwards to reset the kinematics. +## SDcard loop + +When the [sdcard_loop config section](Config_Reference.md#sdcard_loop) +is enabled, the following extended commands are available: +- `SDCARD_LOOP_BEGIN COUNT=`: Begin a looped section in the SD + print. A count of 0 indicates that the section should be looped + indefinately. +- `SDCARD_LOOP_END`: End a looped section in the SD print. +- `SDCARD_LOOP_DESIST`: Complete existing loops without further + iterations. + ## Send message (respond) to host The following commands are availabe when the