Add firmware G code support for pause, and message display

To Bambu Lab

Stop Code

Please implement the standard M0 stop code in firmware.

It does not work currently, and there is no way that I can find to pause the printer and wait for operator input.

M0, M1 - Stop the printer M0: Stop or Unconditional stop
Usage
     M0 [P<ms<] [S<sec>] [string] M1 [P<ms>] [S<sec>] [string]

Message Display

Please support the standard way to display message on the console, and for monitorying applications.

Currently messages are shown on the printer display and broadcasted to monitoring applications but using a custom M1002 code, such as “M1002 gcode_claim_action : 2”

This is problematic for multiple reasons.

  1. it limits the information that can be shown to only what the manufacture defines
  2. it makes the gcode less readable
  3. it makes the gcode less portable
  4. it makes any monitoring app using MQTT need to understand custom codes.

Gcode before 3D printers used

(MSG, This is a message)

in order to display a message on the console. (I am not sure how universal it is, but certainly the family of Mach products use this.

Prusa uses M117 to display a message.

M117 - Display Message M117: Display Message
This causes the given message to be shown in the status line on an attached LCD. 
It is processed early as to allow printing messages that contain G, M, N, or T.

Both BL printers have displays that can display text, so they can display arbitrary text, possibly with a length limit.

5 Likes

Need exactly this right now… Trying to do bed level, but with a poper probe, and I need to be able to reliably pause to put the probe in place and remove it again.

Assuming this isn’t a Bambu printer? You’ll need to insert a user cleared pause (M400 U1 for a Bambu printer) before the bed leveling in the start g-code.

4 Likes

This is indeed a Bambu Lab printer, X1C if it makes any difference.

The problem with M400 U1 is that it moves the hotend, clears the nozzle on the wiper, then parks it over the filament shoot.

The method and gcode here worked to get close enough to level.

I usually do not use or need the automatic leveling feature.

I don’t have AMS and do some occasionally manual filament changes. Would be great if during this pauses I could add a message saying something like “insert green filament”, so I don’t insert the wrong one.

2 Likes

Hello everybody
Is there a solution for this topic?
Today I wanted to add a pause for a print and display a message that tells me to put hex nuts, I added a pause but I don’t know what custom code will work for the message

2 Likes