> For the complete documentation index, see [llms.txt](https://yanweiliu.gitbook.io/introduction-to-3d-printing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yanweiliu.gitbook.io/introduction-to-3d-printing/3d-lie-yin-ji-de-cao-zuo/3dlie-yin-g-code-ff1a-ru-he-zai-lie-yin-wan-hou-zi-dong-guan-bi-dian-yuan.md).

# 如何在列印完後自動關閉電源

## 修改G-Code

**啟動:**

G28 ;Home

G1 Z15.0 F6000 ;Move the platform down 15mm

;Prime the extruder

G92 E0

G1 F200 E3

G92 E0

**結束:**

G91

G1 F1800 E-3

G1 F3000 Z10

G90

G28 X0 Y0 ; home x and y axis

M106 S0 ; turn off cooling fan

M104 S0 ; turn off extruder

M140 S0 ; turn off bed

M84 ; disable motors

**M81 ; turn off printer**

**使用M81能在列印結束後，自動關機**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yanweiliu.gitbook.io/introduction-to-3d-printing/3d-lie-yin-ji-de-cao-zuo/3dlie-yin-g-code-ff1a-ru-he-zai-lie-yin-wan-hou-zi-dong-guan-bi-dian-yuan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
