Skip to content
Justin edited this page Jan 23, 2026 · 1 revision

P1S-GCODE

Overview

P1S-GCODE is a repo of start and end G-code profiles for the Bambu Lab P1S, designed for use with OrcaSlicer (and compatible Bambu-style slicers).

The goal of this repository is to provide custom G-code variants that balance:

  • reliability
  • speed
  • maintainability

These files are intended to be drop-in replacements for slicer start/end G-code, not firmware modifications.


Scope

This repository focuses on:

  • Start G-code variants (S / L / L-Lite / XL)
  • End G-code variants (S / L / XL)

Out of scope:

  • Firmware modification or replacement
  • Filament-specific tuning inside start G-code
  • Aggressive plate or nozzle wear

Design Principles

The G-code in this repository follows a few core rules:

  1. Predictability over cleverness
    Start G-code should prepare the printer, then get out of the way.

  2. Slicer owns printing behavior
    Fan control, temperatures, and first-layer behavior are handed back to the slicer (YOUR SETTINGS) before printing starts.

  3. Compatibility-first defaults
    G-code avoids assumptions about build plates, coatings, or hardware beyond what is explicitly documented and widely supported.

  4. No persistent side effects
    Start and end G-code are designed to leave the printer in a clean, predictable state.

  5. Deterministic setup
    Critical states such as extrusion mode, fan behavior, and leveling are explicitly set to ensure consistency.


Supported Environment

  • Printer: Bambu Lab P1S
  • Slicer: OrcaSlicer (recommended)
  • Firmware: Stock Bambu firmware
  • AMS: Supported

Other Bambu Lab printers may partially work but are not the target of this repository.


How to Use

  1. Choose the appropriate Start and End G-code variants (see G-code Variants).

  2. Paste them into OrcaSlicer:

    • Printer Settings → Custom G-code
  3. Do not mix variants unless you understand the execution model.

Before modifying these files, read:

  • Execution Model
  • Known Limitations

Modifications

These files are intentionally conservative.

If you want to experiment (e.g. aggressive wipes, stationary cooldown parking, filament-specific fan logic), treat this repository as a baseline, not a sandbox.

Changes that introduce hidden state or filament assumptions are intentionally excluded.


License & Disclaimer

Use at your own risk.

These G-code files directly control hardware motion and temperature. While tested, no warranty is provided.

Always review changes carefully before running modified G-code on your printer.

Clone this wiki locally