# Gcode adds line to turn off LED at tool change

**URL:** <https://forum.snapmaker.com/t/gcode-adds-line-to-turn-off-led-at-tool-change/43269>\
**Category:** U1 Troubleshooting guides\
**Created:** [September 5, 2026, 4:46pm UTC](https://forum.snapmaker.com/t/gcode-adds-line-to-turn-off-led-at-tool-change/43269 "2026-09-05T16:46:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sentientsponge](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sentientsponge](https://forum.snapmaker.com/u/sentientsponge)\
**Post date:** [September 5, 2026, 4:46pm UTC](https://forum.snapmaker.com/t/gcode-adds-line-to-turn-off-led-at-tool-change/43269/1 "2026-09-05T16:46:41Z")

</div>

Hey, I was hoping someone might have encountered this or know a solution. I had been using regular Orca when the problem started, so switched to Snorca and it didn’t do it until the other day. The only change I made that I can think of is I updated the U1 to the latest firmware (1.6.0). Basically, the slicer is adding a line at the tool change to turn off the LED light, which is really annoying and also shouldn’t be a thing because the error detection and camera both need the light on (also, I have the cooling fan plugged into the extra port at the end of the LED strip, which is why it’s really a problem). I can’t find anything in the slicer that even mentions the LED, so I have no idea why it’s doing it. Below is one example of a section with the line in the gcode. Any help would be appreciated.

;--------------------  
; CP TOOLCHANGE START  
; toolchange #1  
; material : PETG → PLA  
;--------------------  
M220 B  
M220 S100  
; WIPE\_TOWER\_START  
; CP TOOLCHANGE UNLOAD  
;WIDTH:1  
G1 X62.990 Y210.770  
SET\_PRESSURE\_ADVANCE ADVANCE=0.0200  
G1 X44.102 E0.7179  
G1 F4702  
G1 X41.490 E0.2079  
;WIDTH:0.5  
G1 Y210.020 F2400  
G4 S0  
G1 E-10 F1800  
SET\_LED LED=cavity\_led WHITE=0  
M104 S105 T2 ; set nozzle temperature ;cooldown

---

<div class="post-metadata">

**Author:** ![Zoe\_M](https://avatars.discourse-cdn.com/v4/letter/z/8491ac/32.png) [@Zoe\_M](https://forum.snapmaker.com/u/Zoe_M)\
**Post date:** [September 7, 2026, 8:01am UTC](https://forum.snapmaker.com/t/gcode-adds-line-to-turn-off-led-at-tool-change/43269/2 "2026-09-07T08:01:15Z")

</div>

Hi, After investigation, our software team could not find any hard‑coded instances of the `SET_LED LED=cavity_led WHITE=0` command within the slicer source code.

Have you added any custom G‑code snippets, such as the following post: [How to set the LED light to automatically turn off in Orca after printing ends！](https://forum.snapmaker.com/t/how-to-set-the-led-light-to-automatically-turn-off-in-orca-after-printing-ends/41807) ?

Could you also please share your `.3mf` project file with us?

---

<div class="post-metadata">

**Author:** ![sentientsponge](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sentientsponge](https://forum.snapmaker.com/u/sentientsponge)\
**Post date:** [September 7, 2026, 3:18pm UTC](https://forum.snapmaker.com/t/gcode-adds-line-to-turn-off-led-at-tool-change/43269/3 "2026-09-07T15:18:12Z")

</div>

Hi, Zoe. Thanks for the response. I made a very quick one layer test print using three filaments as an example.

(Attachment LED Goes Off Each Tool Change Example.3mf is missing)

---

<div class="post-metadata">

**Author:** ![sentientsponge](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sentientsponge](https://forum.snapmaker.com/u/sentientsponge)\
**Post date:** [September 7, 2026, 3:19pm UTC](https://forum.snapmaker.com/t/gcode-adds-line-to-turn-off-led-at-tool-change/43269/4 "2026-09-07T15:19:37Z")

</div>

Hi, Zoe. Thanks for the response. I made a very quick one layer test print using three filaments as an example, but it’s not an allowed file type to attach here. Who should I send it to?

---

<div class="post-metadata">

**Author:** ![sentientsponge](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sentientsponge](https://forum.snapmaker.com/u/sentientsponge)\
**Post date:** [September 7, 2026, 3:44pm UTC](https://forum.snapmaker.com/t/gcode-adds-line-to-turn-off-led-at-tool-change/43269/5 "2026-09-07T15:44:59Z")

</div>

Ok, so I went back and double checked all my profiles (printer and filaments) and found the issue. For some reason, that line was in a filament profile as the end gcode, which is weird since I don’t recall ever adding custom gcode to any filament. But I deleted the line and the problem stopped in the test print I tried. I didn’t realize that Snapmaker Orca and regular Orca shared custom profiles, is that something that was recently added?

---

<div class="post-metadata">

**Author:** ![Zoe\_M](https://avatars.discourse-cdn.com/v4/letter/z/8491ac/32.png) [@Zoe\_M](https://forum.snapmaker.com/u/Zoe_M)\
**Post date:** [September 8, 2026, 2:11am UTC](https://forum.snapmaker.com/t/gcode-adds-line-to-turn-off-led-at-tool-change/43269/6 "2026-09-08T02:11:11Z")

</div>

Hi, thank you very much for the update.

I just consulted with our engineer, and he confirmed that Snapmaker Orca and the original Orca Slicer use two separate configuration folders. There is no code logic in either program that directly reads from or writes to the other’s directory.
