m24

M24 starts or resumes the selected file: After M25, M24 resumes the job.
M24 starts or resumes the selected file #

M24 starts the file you opened with M23. If you already ran part of the file and paused with M25, it picks up where you left off.

Resuming paused prints

Send M24 after M25. The older wiki said that when resuming a paused print Smoothieware automatically runs the macro file resume.g (if it exists) before resuming, and that you can create a resume.g file on the SD card to run custom G-code when resuming from a pause. That has not been checked against the current firmware, and the current source does not look for a resume.g file. It has a before_resume_gcode setting instead, see the Player options. If you used the player’s suspend command instead, see the Player module for how to resume that kind of pause.

Restarting from the beginning

To restart a file from the beginning, use M23 to select it again (this resets it), then M24 to start printing.

In this context, “print” refers to running a job on any Smoothie-controlled device such as a 3D printer, laser engraver/cutter, CNC router, etc.

Format

M24

Which means: print the file that was previously selected by the M23 command.

Parameters

The M24 command takes no parameters. It operates on the file previously selected with M23.

Example

If your SD card’s contents were:

  • config.txt
  • firmware.cur
  • Readme.txt
  • myGcode.gco

And you previously executed M23 myGcode.gco, then issuing M24 will result in the G-code commands in the file myGcode.gco being executed. The sequence below starts the file, pauses it, then resumes it:

M23 myGcode.gco
M24
M25
M24

Configuration

There are no settings for M24. For G-code to run before resuming a suspended job, see the Player options.

Further reading

These resources are used as references:

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.