thinkyhead

M32 - Select and Start

sdcard Begin an SD print from a file.

The M32 command exists to allow G-Code to load other G-Code files and run them as sub-programs.

For legacy reasons in M32 uses the ‘!’ character to start the filename (which must also be the last command parameter).

Usage

M32 [P<flag>] [S<filepos>]

Argument Description
[P<flag>]

Sub-Program flag

[S<filepos>]

Starting file offset

Notes

Requires SDSUPPORT

Beta level and little-used feature. Needs more testing and use cases.

Examples

Select and start a file at offset 5022.

M32 S5022 !/boats/sailboat.gco

Select and start a file from within G-Code.

M32 P !/models/lgbust.gco#

The # suffix is needed when using P to “stop buffer pre-reading” so no commands after M32 will go into the buffer until after it returns.