machines/systems/flexibot/docs/marlin/_gcode/M808.md
2025-03-11 23:32:39 +01:00

1.2 KiB

tag title brief author since requires group codes notes parameters example
m0808 Repeat Marker Set or go to a marker for looping G-code thinkyhead 2.0.8 GCODE_REPEAT_MARKERS none
M808
At this time repeat markers only apply during SD printing.
tag optional description values
L true Loop counter. Use `L` or `L0` for an infinite loop.
unit type
count int
pre code
Say "Hello World" 5 times
M808 L5
M118 Hello World
M808

The Repeat Marker command is used to define regions of a G-code file that will be repeated during SD printing. A marker is first set with M808 L[count], and later in the file a plain M808 command is used count down and loop. (By default up to 10 start markers can be nested.)

In slicer software put M808 L to the "Start G-code" and M808 to the "End G-code." But this command is not the only requirement. Before starting each whole object it's important to actually clear the print area of obstacles and to reset the coordinate system with G92 or G28, so this command is best used with belt printers or other systems with automatic print removal.