# Start g code advice

**URL:** <https://klipper.discourse.group/t/start-g-code-advice/18157>\
**Category:** General Discussion\
**Created:** [August 8, 2024, 3:49pm UTC](https://klipper.discourse.group/t/start-g-code-advice/18157 "2024-08-08T15:49:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quad121](https://avatars.discourse-cdn.com/v4/letter/q/5fc32e/32.png) [@Quad121](https://klipper.discourse.group/u/Quad121)\
**Post date:** [August 8, 2024, 3:49pm UTC](https://klipper.discourse.group/t/start-g-code-advice/18157/1 "2024-08-08T15:49:47Z")

</div>

### Basic Information:

Printer Model: Ender 5 pro mod  
 MCU / Printerboard: skr 1.4 turbo  
 Host / SBC  
 klippy.log

_Fill out above information and_ **_in all cases attach your_ `klippy.log` _file_** (use zip to compress it, if too big). _Pasting your_ `printer.cfg` _is **not** needed_  
_ **Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there** _

### Describe your issue:

…  
Could anyone please give me some advice. In my klipper start g code ( as shown attached). Before printing it performs heat up of the bed and hot end which is stated in M190 S90 and M109 S250.

My question is when I’m not printing ASA and wanting to print a different filament, you need to manually make changed to this Start g code.  
Can this be changed to an ‘open’ temp to match what your printing at the time?

 ![IMG_0042](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/3/333853746b82cff89a7bc206aec5acb227d66160.png)

---

<div class="post-metadata">

**Author:** ![theophile](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/theophile/32/31_2.png) [@theophile](https://klipper.discourse.group/u/theophile)\
**Post date:** [August 8, 2024, 4:42pm UTC](https://klipper.discourse.group/t/start-g-code-advice/18157/2 "2024-08-08T16:42:31Z")

</div>

The [official sample macro](https://github.com/Klipper3d/klipper/blob/master/config/sample-macros.cfg) includes an example for just such a purpose. It also contains some notes for further reading on how macros work and how to use them.

In short, you want to have your macro accept parameters for the target temperature, then configure your slicer to call the macro with the necessary parameters.

---

<div class="post-metadata">

**Author:** ![Quad121](https://avatars.discourse-cdn.com/v4/letter/q/5fc32e/32.png) [@Quad121](https://klipper.discourse.group/u/Quad121)\
**Post date:** [August 8, 2024, 7:48pm UTC](https://klipper.discourse.group/t/start-g-code-advice/18157/3 "2024-08-08T19:48:17Z")

</div>

Many thanks theophile

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [September 8, 2024, 5:48am UTC](https://klipper.discourse.group/t/start-g-code-advice/18157/4 "2024-09-08T05:48:57Z")

</div>

Closed on September 8, 2024, 5:48am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
