Jump to content

The GCODE Output File Sets the First Layer Height to +0.3mm


Recommended Posts

Posted · The GCODE Output File Sets the First Layer Height to +0.3mm

I have been wondering why my first layers are not sticking well. I checked my manual leveling using a 0.06mm feeler gauge and it seems fine. I then tried printing a part and turning the printer off at the first layer. I then measured the height (gap) with feeler gauges and measured 0.38mm. I looked at the GCODE file and found that the Z Height was being set to 0.3mm (G1 F600 Z0.3). See the code below:


Why does Cura do this?


;Filament used: 0.595774m
;Layer height: 0.2
;Generated with Cura_SteamEngine 4.3.0
M82 ;absolute extrusion mode
G21 ; metric values
G90 ; absolute positioning
M82 ; set extruder to absolute mode
M107 ; start with the fan off
M140 S105 ; Set bed temperature (no wait)
G28 X Y F6000 ; move X/Y to min endstops
G28 Z F1200 ; move Z to min endstops ; raise the nozzle
M190 S105 ; wait for bed temperature to reach target
M104 S220 T0 ; set extruder temperature (no wait)
G29 ; auto-leveling
M420 S1 ; enable bed leveling compensation
M109 S220 T0 ; set extruder temperature and wait
M300 P200 ; beep to indicate that the temp is reached
G0 F5000 X10 Y10 Z0.3 ; move to start
G1 F500 X60.0 E9 ; start purge line
G1 X150.0 E18.5 ; finish purge line
G92 E0 ; set extruder to zero
M117 Printing from Cura...; message
G92 E0
G92 E0
G1 F1200 E-0.5
G1 F600 Z1.3
;MESH:Nozzle Fan Spacer.stl
G0 F2400 X81.795 Y83.534 Z1.3
G1 F600 Z0.3
G1 F1200 E0
G1 F600 X81.749 Y84.028 E0.02475
G1 X81.804 Y84.495 E0.04821


  • Link to post
    Share on other sites

    Posted · The GCODE Output File Sets the First Layer Height to +0.3mm

    Yes that explains why your first layer has a height of 0.3mm.

    It is a default behavior in Cura that the first layer height is a little bit more than the configured layer height. It also depends on the layer height you configure, so it is not always 0.3.


    Opinions as to what is better are different. A higher Layer Height should ensure that an uneven print bed is better compensated. 


    But if you don't like it, just set the First Layer Height manually to the value you want or to the general Layer Height.

    • Like 1
    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.3 stable released
        In this stable release, Cura 5.3 achieves yet another huge leap forward in 3D printing thanks to material interlocking! As well as introducing an expanded recommended print settings menu and lots of print quality improvements. Not to mention, a whole bunch of new printer profiles for non-UltiMaker printers!
          • Thanks
          • Like
        • 56 replies
      • Here it is. The new UltiMaker S7
        The UltiMaker S7 is built on the success of the UltiMaker S5 and its design decisions were heavily based on feedback from customers.
        So what’s new?
        The obvious change is the S7’s height. It now includes an integrated Air Manager. This filters the exhaust air of every print and also improves build temperature stability. To further enclose the build chamber the S7 only has one magnetically latched door.
        The build stack has also been completely redesigned. A PEI-coated flexible steel build plate makes a big difference to productivity. Not only do you not need tools to pop a printed part off. But we also don’t recommend using or adhesion structures for UltiMaker materials (except PC, because...it’s PC). Along with that, 4 pins and 25 magnets make it easy to replace the flex plate perfectly – even with one hand.
        The re-engineered print head has an inductive sensor which reduces noise when probing the build plate. This effectively makes it much harder to not achieve a perfect first layer, improving overall print success. We also reversed the front fan direction (fewer plastic hairs, less maintenance), made the print core door magnets stronger, and add a sensor that helps avoid flooding.

        The UltiMaker S7 also includes quality of life improvements:
        Reliable bed tilt compensation (no more thumbscrews) 2.4 and 5 GHz Wi-Fi A 1080p camera (mounted higher for a better view) Compatibility with 280+ Marketplace materials Compatibility with S5 project files (no reslicing needed) And a whole lot more  
        Curious to see the S7 in action?
        We’re hosting a free tech demo on February 7.
        It will be live and you can ask any questions to our CTO, Miguel Calvo.
        Register here for the Webinar
          • Like
        • 18 replies
      • UltiMaker Cura Alpha 🎄 Tree Support Spotlight 🎄
        Are you a fan of tree support, but dislike the removal process and the amount of filament it uses? Then we would like to invite you to try this special release of UltiMaker Cura. Brought to you by our special community contributor @thomasrahm
        We generated a special version of Cura 5.2 called 5.3.0 Alpha + Xmas. The only changes we introduced compared to UltiMaker Cura 5.2.1 are those which are needed for the new supports. So keep in mind, this is not a sneak peek for Cura 5.3 (there are some really cool new features coming up) but a spotlight release highlighting this new version of tree supports.  
          • Like
        • 29 replies
    • Create New...