Top surface scarring even with Z hop When the print is finished, it looks like the extruder is digging into the top layer as it returns to home?

I tried adding Z hop at 5&nbsp;mm but it's not really helping.

Sorry for the picture, white on white is hard to show.

I tried a range of speeds from 40-90&nbsp;mm/s and over extrusion of 100-105&nbsp;%, but the scar remains.

Any suggestions?

Here is the end code:

;TIME_ELAPSED:333.340017
G1 F1500 E417.35346
M140 S0
M141 S0
M107
M104 S0
M140 S0 
;Retract the filament
G92 E1
G1 E-1 F300
G28 X0 Y0
M84
M82 ;absolute extrusion mode
M104 S0
Z-Hops only occur when the slicer is retracting Filament automatically (i.e. when Cura detects a move between parts/around outer walls where stringing would be a problem).

In your end G-Code, you do retract your filament, but manually. This means that Cura does not add the Z-Hop code.

Solution:
Add this before your G28 X0 Y0 command:

G91   ;Change Positioning to relative
G1 Z5 ;Move head up by 5mm (or bed down, depending on your machine)


The G91 command is needed because otherwise you wold need to provide an absolute Z position which is guaranteed to be above your last layer (so you would either need to set the height to the top of your build volume (takes ages to move the head there) or to adjust the height for each printed part (annoying)).

Documentation for the G91 command: http://marlinfw.org/docs/gcode/G091.html

Manual for Z-Hop and other travel moves in Cura: https://ultimaker.com/en/resources/52507-travel

Edit:

Note that this is only a good idea if MAX_SOFTWARE_ENDSTOPS are enabled in your Marlin configuration.h. Otherwise, the head could move ABOVE the maximum Z height (zMax) if the print height h &gt;= zMax -5mm.

Thanks to @0scar for mentioning this!