---
title: Run code at the end of a job
slug: faq/run-code-at-the-end-of-a-job
docTags: 
createdAt: 2023-09-01T14:18:28.038Z
---

To run code at the end of a job (for example: turn output off to raise dust-cap), one can either

- Configure the CAM software to insert the code at the end of a job (often the setting is called "End G-Code")
- Override M30 command in the macro file and insert the code into it: [M Function override and user M-functions](docId\:zgweLrC4enlOm9Qgbgl8C)
  [M30 command](docId\:LHmMbAy23Q7kqBe9WDV0_) is placed at the end of job file by the CAM software as a standard practice.




