PursaSlic3r temp changes when sent

Slicer (name, version, operating system)
PursaSlicer 2.0.0 Linux Mint 19.2 64
What is the problem?
Sending gcode the temp changes
What did you already try to solve it?
Exported the gcode
Logs (octoprint.log, serial.log or output on terminal tab, ...)
Recv: echo: External Reset
Send: N0 M110 N0125
Recv: Marlin 1.0.0
Recv: echo: Last Updated: Sep 3 2018 19:03:20 | Author: (Ender-3 Pro)
Recv: Compiled: Sep 3 2018
Recv: echo: Free Memory: 9679 PlannerBufferBytes: 1232
Recv: echo:Hardcoded Default Settings Loaded
Recv: echo:SD init fail
Recv: echo:SD init fail
Recv: ok
Changing monitoring state from "Connecting" to "Operational"
Send: N0 M110 N0
125
Exec(GCodeSystemCommands): OCTO9
Return(GCodeSystemCommands): ok
Recv: ok
Send: N1 M115*39
[...]
Recv: ok
[...]
Send: M504
Recv: ok
Send: M501
Recv: echo:Hardcoded Default Settings Loaded
Recv: ok

Example GCODE file
From octoprint:
"; generated by PrusaSlicer 2.0.0+linux64 on 2019-06-27 at 18:08:38

;

; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm
; top infill extrusion width = 0.40mm
; first layer extrusion width = 0.42mm

M73 P0 R6
M73 Q0 S6
M201 X9000 Y9000 Z500 E10000 ; sets maximum accelerations, mm/sec^2
M203 X500 Y500 Z12 E120 ; sets maximum feedrates, mm/sec
M204 P1500 R1500 T1500 ; sets acceleration (P, T) and retract acceleration (R), mm/sec^2
M205 X10.00 Y10.00 Z0.20 E2.50 ; sets the jerk limits, mm/sec
M205 S0 T0 ; sets the minimum extruding and travel feed rate, mm/sec
M107
G21; set mm units
G28 ;home all axis
M190 S60 ; set and wait for bed temp to be reached
M104 S190 ; set extruder temp and start heating
G28 ; Home all axes
M104 S190 ;
M109 S190; wait for extruder temp to be reached"
From slic3r
"; generated by PrusaSlicer 2.0.0+linux64 on 2019-06-27 at 18:41:53

;

; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm
; top infill extrusion width = 0.40mm
; first layer extrusion width = 0.42mm

M73 P0 R6
M73 Q0 S6
M201 X9000 Y9000 Z500 E10000 ; sets maximum accelerations, mm/sec^2
M203 X500 Y500 Z12 E120 ; sets maximum feedrates, mm/sec
M204 P1500 R1500 T1500 ; sets acceleration (P, T) and retract acceleration (R), mm/sec^2
M205 X10.00 Y10.00 Z0.20 E2.50 ; sets the jerk limits, mm/sec
M205 S0 T0 ; sets the minimum extruding and travel feed rate, mm/sec
M107
G21; set mm units
G28 ;home all axis
M190 S60 ; set and wait for bed temp to be reached
M104 S210 ; set extruder temp and start heating
G28 ; Home all axes
M104 S210 ;
M109 S210; wait for extruder temp to be reached"

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware...)
Ocotprint Version 1.3.11, octopi latest, Ender 3 pro, stock fw

Nothing is changed between sending the gcode to octoprint and exporting it.
I only noticed since the filament wasn't sticking and the temp was down to 190 instead of 210.

OK think I found the culprit. I had
M104 S[layer_temperature] ; set extruder temp and start heating
changing it to
M104 S[first_layer_temperature] ; set extruder temp and start heating

Seems to have fixed the code.

1 Like