# M140 not working, gcode cannot adjust bed temp mid print

**URL:** <https://forum.snapmaker.com/t/m140-not-working-gcode-cannot-adjust-bed-temp-mid-print/17979>\
**Category:** Snapmaker 2.0 (3-in-1)\
**Created:** [April 18, 2021, 1:00pm UTC](https://forum.snapmaker.com/t/m140-not-working-gcode-cannot-adjust-bed-temp-mid-print/17979 "2021-04-18T13:00:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![buzzplop](https://avatars.discourse-cdn.com/v4/letter/b/919ad9/32.png) [@buzzplop](https://forum.snapmaker.com/u/buzzplop)\
**Post date:** [April 18, 2021, 1:00pm UTC](https://forum.snapmaker.com/t/m140-not-working-gcode-cannot-adjust-bed-temp-mid-print/17979/1 "2021-04-18T13:00:33Z")

</div>

Using latest firmwares 1.12.0  
I am using PrusaSlicer, and have noticed that the ‘other layers’ bed temp isnt being set.

I have 70 for first layer, but want 50 for the rest. This works when slicing with luban, but not with PrusaSlicer (I have to wait for the first layer to end then adjust bed temp on the touchscreen). See attached gcodes.

[luban\_xyzCalibrationcube\_58548000.gcode](https://forum.snapmaker.com/uploads/short-url/xewtpwGzvIK6vdwW9HYy10MVPKH.gcode) (316.8 KB) [prusaslicer\_xyzCalibration\_cube.gcode](https://forum.snapmaker.com/uploads/short-url/yYW8upYqpuhy39gzUT6GOsvuTV4.gcode) (411.0 KB)

The touchscreen logs contain lines like:  
`DEBUG,SC,Override M140 S70.0`  
Which make it sound like the touchscreen is overriding the gcode. Is this the case? Why?

---

<div class="post-metadata">

**Author:** ![nivekmai](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/nivekmai/32/15480_2.png) [@nivekmai](https://forum.snapmaker.com/u/nivekmai)\
**Post date:** [April 18, 2021, 6:59pm UTC](https://forum.snapmaker.com/t/m140-not-working-gcode-cannot-adjust-bed-temp-mid-print/17979/2 "2021-04-18T18:59:15Z")

</div>

I think (no proof, just experience with octoprint) if you have the touch screen open to the control panel, it’ll occasionally send gcode to the printer. I’ve found it’s best to make sure to completely back out of the control screen (e.g. go all the way back to the main screen) when starting a print (again, I use octoprint and start my prints from there).

FWIW, I’m using superslicer and setting temp changes at higher layers and it’s working fine for me (provided I don’t touch the touch screen).

---

<div class="post-metadata">

**Author:** ![buzzplop](https://avatars.discourse-cdn.com/v4/letter/b/919ad9/32.png) [@buzzplop](https://forum.snapmaker.com/u/buzzplop)\
**Post date:** [April 18, 2021, 7:08pm UTC](https://forum.snapmaker.com/t/m140-not-working-gcode-cannot-adjust-bed-temp-mid-print/17979/3 "2021-04-18T19:08:20Z")

</div>

I appreciate the insight, unfortunately my actions are to browse to the file with the File menu, select it, then start. Perform absolutely no other action, and the bed temp does not change.

@Edwin any ideas? I’ve also noticed the touchscreen occasionally just ignore my temp change inputs completely and fail to do anything until I set it to zero, then back to the temp I want

---

<div class="post-metadata">

**Author:** ![Edwin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/edwin/32/13481_2.png) [@Edwin](https://forum.snapmaker.com/u/Edwin)\
**Post date:** [April 19, 2021, 10:30am UTC](https://forum.snapmaker.com/t/m140-not-working-gcode-cannot-adjust-bed-temp-mid-print/17979/4 "2021-04-19T10:30:18Z")

</div>

Let’s put a special circumstance.

Pause the machine → Modify the heated bed target temp on touchscreen from 50 degrees to 70 degrees → Resume the work

- First, the touchscreen will record your action as following.

> DEBUG,SC,Override M140 S70.0

- Second, touchscreen will send the signal to Controller. And FW log will record the action as well.

- Third, the target temp will update to the new value and you can see that on the touchscreen.

- The machine will resume the work and approach to the new target bed temp simultaneously.

Hope this helps.

Cheers  
Edwin

---

<div class="post-metadata">

**Author:** ![buzzplop](https://avatars.discourse-cdn.com/v4/letter/b/919ad9/32.png) [@buzzplop](https://forum.snapmaker.com/u/buzzplop)\
**Post date:** [April 19, 2021, 5:47pm UTC](https://forum.snapmaker.com/t/m140-not-working-gcode-cannot-adjust-bed-temp-mid-print/17979/5 "2021-04-19T17:47:29Z")

</div>

Well, this is odd.

After your suggestion I tried SuperSlicer and its working as expected.

Guess I’ll be using that now!  
Would be very interested to know why the PrusaSlicer gcode doesnt work

---

<div class="post-metadata">

**Author:** ![nivekmai](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/nivekmai/32/15480_2.png) [@nivekmai](https://forum.snapmaker.com/u/nivekmai)\
**Post date:** [April 20, 2021, 12:38pm UTC](https://forum.snapmaker.com/t/m140-not-working-gcode-cannot-adjust-bed-temp-mid-print/17979/6 "2021-04-20T12:38:27Z")

</div>

Maybe try slicing the exact same in prusaslicer/superslicer, then diff the 2 files, and compare the gcode (might be better to just remove all the G1 lines), and see what super does different then prusa (they should be nearly identical though…)
