<p>You can send the <code>M86</code> command to your Prusa printer to change the safety timer. For example, to set the timer to disable heating after four hours, you could send <code>M86 S14400</code>. The relevant documentation is on the <a href="https://help.prusa3d.com/article/prusa-specific-g-codes_112173#m-commands" rel="nofollow noreferrer">Prusa-specific G-Codes</a> page.</p>

CC BY-SA 4.0
2023-06-13T03:54:19.870Z
2023-06-13T04:16:46.850Z
2023-06-13T04:16:46.850Z
Simon Ruggier
<p>Overall, this solution should work, but have in mind, that modifying G-code files can be risky and may result in damaging your printer or causing other issues. Therefore, it is essential to exercise caution when creating and executing custom G-code.</p>
<p>As each instance includes a delay of 1200 seconds (20 minutes) and a movement of the Z-axis, the entire code should run for approximately 4 hours and 24 minutes.</p>
<p>However, keep in mind that you should periodically check the printer to ensure that everything is running smoothly and that no errors have occurred. Additionally, you may want to adjust the temperature and movement values based on your specific needs and printer settings. It is essential to exercise caution and closely monitor the printer during this operation to avoid any potential risks.</p>

CC BY-SA 4.0
2023-04-07T06:16:18.350Z
2023-04-07T06:16:18.350Z
kosteklvp
<p>I use this code to dry filament... sorry for the coments in spanish:</p>
<pre><code>; Inicio del código

G28 ; Auto home

G1 Z200 F600 ; Elevar el eje Z a 200mm

G1 X100 Y100 F6000 ; Mover el extrusor al centro de la cama


M140 S70 ; Configurar la temperatura de la cama a 70 grados

M190 S70 ; Esperar hasta que la cama alcance 70 grados

M300 S1000 P500 ; Bip de inicio


G91 ; Modo de coordenadas relativas


; Ciclo de espera de 20 minutos y movimiento del eje Z (18 ciclos para 6 horas)

; Subir 5 mm, esperar 20 minutos, bajar 5 mm, esperar 20 minutos


G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos


G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos


G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos


G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos


G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos



G90 ; Modo de coordenadas absolutas



; Bips finales después de 6 horas

M300 S1000 P500 ; Bip 1

G4 P500 ; Esperar 0.5 segundos

M300 S1000 P500 ; Bip 2

G4 P500 ; Esperar 0.5 segundos

M300 S1000 P500 ; Bip 3



; Fin del código
</code></pre>

CC BY-SA 4.0
2024-06-17T21:43:30.337Z
2024-06-17T21:59:24.370Z
2024-06-17T21:59:24.370Z
Rawsmoke Terríbilus
<p>On my Prusa MK3, I'm trying to make a G-code that only heats up the print bed and moves the Z-axis up and down a little bit every 20 mins to prevent the safety timer going off. This is what I have done:</p>
<ol>
<li>Sliced a random file with PrusaSlicer.</li>
<li>Opened it in TextEdit.</li>
<li>Deleted the G-code for:
<ul>
<li>the actual print</li>
<li>heating the nozzle</li>
<li>waiting for the nozzle to heat up</li>
</ul>
</li>
<li>Changed the G-code to heat the bed to 50 °C.</li>
<li>Inserted this G-code:</li>
</ol>
<pre><code>    G28,
    G1 Z190 Y140 F500,
    G4 S1200,
    G1 Z188,
    G1 Z190,
</code></pre>
<ol start="6">
<li>Copied and pasted  <code>G4 S1200, G1 Z188, G1 Z190</code> command 11 times - total of 12 instances.</li>
</ol>
<p>I believe this should last a total of slightly more than 4 hours, right? I Just want to make sure before I possibly break my printer or if there is a better way to do this.</p>

<pla><filament><prusa-i3><g-code><heated-bed>
Drying filament with heated bed on Prusa - how to "bypass" safety timer?
Gart Hondo
# Drying filament with heated bed on Prusa - how to "bypass" safety timer?

(Asked by: username_0 on 2023-03-25)

On my Prusa MK3, I'm trying to make a G-code that only heats up the print bed and moves the Z-axis up and down a little bit every 20 mins to prevent the safety timer going off. This is what I have done:

1. Sliced a random file with PrusaSlicer.
2. Opened it in TextEdit.
3. Deleted the G-code for:
   * the actual print
   * heating the nozzle
   * waiting for the nozzle to heat up
4. Changed the G-code to heat the bed to 50 °C.
5. Inserted this G-code:

```
    G28,
    G1 Z190 Y140 F500,
    G4 S1200,
    G1 Z188,
    G1 Z190,

```

6. Copied and pasted `G4 S1200, G1 Z188, G1 Z190` command 11 times - total of 12 instances.

I believe this should last a total of slightly more than 4 hours, right? I Just want to make sure before I possibly break my printer or if there is a better way to do this.

**Tags:** pla, filament, prusa-i3, g-code, heated-bed


---

## 3 answers

### Answer by username_1 on 2023-06-13. Score: 1

You can send the `M86` command to your Prusa printer to change the safety timer. For example, to set the timer to disable heating after four hours, you could send `M86 S14400`. The relevant documentation is on the [Prusa-specific G-Codes](https://help.prusa3d.com/article/prusa-specific-g-codes_112173#m-commands) page.


---

### Answer by username_2 on 2023-04-07. Score: 1

Overall, this solution should work, but have in mind, that modifying G-code files can be risky and may result in damaging your printer or causing other issues. Therefore, it is essential to exercise caution when creating and executing custom G-code.

As each instance includes a delay of 1200 seconds (20 minutes) and a movement of the Z-axis, the entire code should run for approximately 4 hours and 24 minutes.

However, keep in mind that you should periodically check the printer to ensure that everything is running smoothly and that no errors have occurred. Additionally, you may want to adjust the temperature and movement values based on your specific needs and printer settings. It is essential to exercise caution and closely monitor the printer during this operation to avoid any potential risks.


---

### Answer by username_3 on 2024-06-17. Score: 0

I use this code to dry filament... sorry for the coments in spanish:

```
; Inicio del código

G28 ; Auto home

G1 Z200 F600 ; Elevar el eje Z a 200mm

G1 X100 Y100 F6000 ; Mover el extrusor al centro de la cama

M140 S70 ; Configurar la temperatura de la cama a 70 grados

M190 S70 ; Esperar hasta que la cama alcance 70 grados

M300 S1000 P500 ; Bip de inicio

G91 ; Modo de coordenadas relativas

; Ciclo de espera de 20 minutos y movimiento del eje Z (18 ciclos para 6 horas)

; Subir 5 mm, esperar 20 minutos, bajar 5 mm, esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z5 F300 ; Subir 5 mm

G4 S1200 ; Esperar 20 minutos

G1 Z-5 F300 ; Bajar 5 mm

G4 S1200 ; Esperar 20 minutos

G90 ; Modo de coordenadas absolutas

; Bips finales después de 6 horas

M300 S1000 P500 ; Bip 1

G4 P500 ; Esperar 0.5 segundos

M300 S1000 P500 ; Bip 2

G4 P500 ; Esperar 0.5 segundos

M300 S1000 P500 ; Bip 3

; Fin del código

```


---

