Skip to content

Default starting gcode causes bed to crash into bottom hard limit if started straight after a large print #1874

Description

@Lex-FX

Bambu Studio Version

1.6.2.4

Where is the application from?

Bambu Lab Official website

OS version

WIN10

Additional system information

No response

Printer

X1C

How to reproduce

Finish a print that is more than 150mm in code height. This will cause the end gcode to leave the bed 2mm off the bottom gcode max travel:

M17 Z0.4 ; lower z motor current to reduce impact if there is something in the bottom
{if (max_layer_z + 100.0) < 250}
G1 Z{max_layer_z + 100.0} F600
G1 Z{max_layer_z +98.0}
{else}
G1 Z250 F600
G1 Z248

Or, just move the bed to the bottom of the Z travel.

Remove the print, then start another print.

Actual results

As the title says, the start gcode has the bed move 12mm down as it's first move which is beyond the hard limit so it crashes and stalls the motors. Yes the current has been reduced, but it's still a physical crash. The 12mm move is a relative move, so regardless of whether it's been homed or not, it's going to crash the bed if the bed is at the bottom of the chamber.

G91
M17 Z0.4 ; lower the z-motor current
G0 Z12 F300 ; lower the hotbed , to prevent the nozzle is below the hotbed
G0 Z-6;

So what has to be remembered before or after every print is to home the printer, or at least move it off the bottom.

Expected results

So the question is, can a simple G28 command be used for the X1C? I can't find anywhere through BambuLab what the actual home gcode is for the X1C. It's not just a simple drive to axis home to zero plus maybe a 2nd soft bounce home. There's a Z bed vibration as well.

If the G28 command can't be used directly, can someone please post the gcode to replicate the homing routine when you press the home button on the printer or BBStudio? That way I can insert this as the first start move.

As an aside, I'm not really sure of the logic behind having a relative move Z down as a start gcode for a printer with the bed on the Z. The comments in the code say to make sure the nozzle is above the bed, but in what situation is the nozzle going to be near the bed during a start? For my Troodon/Voron with the Z on the gantry I get it coz the gantry droops when the motors turn off so my first move I want to always be up. But for the X1C, I don't get it.

Project file & Debug log uploads

Pillow Indenter.zip
log.zip

Checklist of files to include

  • Log file
  • Project file

Metadata

Metadata

Assignees

Labels

Printerissues of PrinterbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions