Learn G-Code for 3D Printing

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ค. 2024
  • G-code is the language that most 3D printers and other CNCs speak. In this video, we'll take a look at the most common G-code commands that will make you understand probably 95% of the instructions that your 3D printing slicer generates. I'll show you how easy, though helpful, just some basic understanding of G-code is. Let's find out more!
    Website article: www.cnckitchen.com/blog/g-cod...
    💚 Support me 💚
    Patreon: / cnckitchen
    Join as a TH-cam member!
    Original CNC Kitchen Threaded Inserts: geni.us/CNCKInsertsChoice
    Merch: teespring.com/stores/cnckitchen
    Buy an Original Prusa i3 printer: geni.us/CNCKPrusa
    PayPal: www.paypal.me/CNCKitchen
    Shop at Matterhackers(US): www.matterhackers.com/?aff=7479
    Shop at 3DJake(EU): geni.us/zHvnB
    🎙Check out The Meltzone Podcast: / @themeltzone
    🛒 Equipment used in this video:
    Original Prusa MK3 (Affiliate): geni.us/CNCKPrusa
    Matte Black PLA from Extrudr: www.extrudr.com/en/products/c...
    Transition FIlament from dasFilament: www.dasfilament.de/filament-s...
    🎥 Related videos:
    Resuming a failed 3D print: • HOW TO: Resume a faile...
    🖨 Printed models:
    Raspberry Pi 4 Case by Malolo: www.thingiverse.com/thing:372...
    Cyclops by Wekster: / posts
    Temperature Test Tower by 3DMN: www.thingiverse.com/thing:209...
    📖 Further Links:
    MARLIN G-code reference: marlinfw.org/meta/gcode/
    DUET/RRF G-code reference: duet3d.dozuki.com/Wiki/Gcode
    Mach 3 G-code reference: machmotion.com/blog/knowledge...
    ⚙ My gear (Affiliate Links):
    🎥 CAMERAS & LENSES
    Panasonic GH5 - Professional 4k60 camera: geni.us/LMN0CmS
    Panasonic GX80/GX85 - Great value system camera: geni.us/M2Sm
    30mm f2.8 macro - Great Macro Lens (80% of my videos): geni.us/vEwqD
    10-25mm f1.7 - Awesome Lens: geni.us/ZTBH
    12-35mm f2.6 - Great Allround Lens: geni.us/S9GOsr
    14-140mm f3.5-5.6 - My go-to travel Lens: geni.us/fSAyKo
    25mm f1.4 - Nice prime for photography: geni.us/mqWM
    🎙AUDIO
    Rode Video Mic Pro - Shotgun mic: geni.us/6JFRdJ
    Rode Film Maker Kit - Wireless mic: geni.us/XMD2N
    Rode NT-USB - Studio Mic: geni.us/YVONvy
    🔴 LIVE STREAMING
    Elgatoo Stream Deck: geni.us/ppIiAL
    Elgatoo HDMI USB Capture Card: geni.us/imhD
    Logitech C920 - Overhead camera: geni.us/ViVgB
    Follow me on Twitter: / cnc_kitchen
    Follow me on Instagram: / cnckitchenyt
    Chapters
    00:00 Introduction
    02:18 General structure
    03:08 Comments
    03:50 Syntax
    04:20 G0 & G1 - Linear moves
    05:16 G90 & G91 - Positioning modes
    06:43 M82 & M83 - Extruder positioning mode
    07:35 G28 - Homing
    08:14 G29 - Bed leveling
    08:30 G92 - Set current position
    09:00 M104 & M109 + M140 & M190 - Setting temperatures
    10:49 M106 - Set fan speed
    11:14 M84 - Disable steppers
    11:40 Summary
    #3Dprinting #gCode #learning
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 311

  • @CNCKitchen
    @CNCKitchen  2 ปีที่แล้ว +92

    Is learning G-code worth the time and effort?
    Don't forget to like & subscribe and share this video on Facebook, Reddit, Twitter, and other platforms!

    • @teedjay91
      @teedjay91 2 ปีที่แล้ว +4

      Yes, the more tools the better! Thanks, great vidéo again.

    • @pearcomputers
      @pearcomputers 2 ปีที่แล้ว +3

      12:10 this way helpful and straight-forward.
      T1 is the only useful 3dp command :P
      .
      but then the event horizon had yet to reach 2021... 1t will :D

    • @staticred1559
      @staticred1559 2 ปีที่แล้ว

      When you start with RRF its better to know the most gcodes :D

    • @1973Washu
      @1973Washu 2 ปีที่แล้ว

      Unless you are doing something really unusual then probably not , a slicer program is more than good enough.

    • @6yjjk
      @6yjjk 2 ปีที่แล้ว

      Dang it, YT ate my comment.
      Stefan, I'd be interested in your take on Gcode post-processors that change rounded corners from a series of G1 moves into a single G2/G3. Do they have any discernible effect on quality or speed? I'd love to try them out myself, but I run an Anet A8 that is so inconsistent as to render experimentation pointless :P

  • @MonguzTea
    @MonguzTea 2 ปีที่แล้ว +61

    I know someone who used to design g-code on paper based on drawings. After that it was typed into the machine. It was in the 70's.

    • @Kalvinjj
      @Kalvinjj 2 ปีที่แล้ว +5

      Sounds a lot like when my dad learned COBOL programming language back in it's days. You're the compiler. Reference the books and convert it yourself to binary for punch cards!

    • @DarkArtGuitars
      @DarkArtGuitars 2 ปีที่แล้ว +3

      For some CNC machines that is still done today, or a hybrid approach generating some automatically and then editing it heavily by hand.

    • @squidcaps4308
      @squidcaps4308 2 ปีที่แล้ว +1

      Pretty much the sole reason why we have such organic looking designs today is the ability to create better g-code. When it is done on paper, each hour of work costs more money. You are forced to make quite simple cuts just because there is no time to write more complicated code. But i found it right away that it is going to be a bit of both, most is created with a computer but quite a bit is created manually.. cause.. you often don't need something very complicated and taking time to transfer all of the information needed just to make a simple cut is harder A lot of time you need to modify the code by hand to fit your exact needs. Last time was two days ago, to replace G91 Z5 with G90 Z3 from the usual startup routine cause the spindle was about 3mm from max Z at the top of the object, which sets the homing position.. oh wait, i removed a bunch of M106s yesterday cause i forgot i was printing PETG.

    • @DarkArtGuitars
      @DarkArtGuitars 2 ปีที่แล้ว +3

      @@squidcaps4308 yes, of course, noone is going to hand code a generative design. But if you're programming a relatively simple part on a machine like a swiss lathe, it is often times easier to code it by hand then to go through the trouble of creating a post processor for your CAM. Those are cases for mass production though, where 10h upfront to save 30 seconds on each part pays off in a week and from there on it's profit.
      For oneoff parts and complex geometry, modern CAM is definitely the way to go, and the only way.

    • @6yjjk
      @6yjjk 2 ปีที่แล้ว +5

      I did it that way in college in the late 90s, before they let us loose on CAD/CAM software. Writing code and seeing it run always gives me a kick; writing code and seeing it *cut* *metal* was just unbelievably cool.

  • @jamesrobinson6010
    @jamesrobinson6010 2 ปีที่แล้ว +4

    As someone who started in CNC running a commercial CNC milling machine, learning basic gcode is the first step in troubleshooting problems. Its amazing that robots (CNC machines) are so accessible now and a $200 3d printer is for all intents and purposes the same thing as a several hundred thousand dollar CNC mill! This video is an exceptional guide and building block for anyone who wants to actually "understand" the printing process. Slicers and CAM programs are awesome, but they also make the entry point of CNC so accessible that it can frustrate and discourage a new user because they dont have the building blocks necessary to know why things are not working as expected. Great video!

  • @perakuikka3025
    @perakuikka3025 2 ปีที่แล้ว +17

    I've been 3D printing with my prusa for few months and this has been the most helpful video for me to understand G-code. Much appreciated Stefan!

    • @takeittothegrave6302
      @takeittothegrave6302 2 ปีที่แล้ว

      Hey Pera,ican help you with 3d design for 3d priting or gcode generation just hit me up on Upwork and i will sort you out 'Victor k'

  • @licensetodrive9930
    @licensetodrive9930 2 ปีที่แล้ว +13

    This is like a chapter in a video based encyclopedia about 3D printing.
    Great stuff!

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว +1

      Glad you liked it!

  • @ramalightfoot9943
    @ramalightfoot9943 2 ปีที่แล้ว +1

    This needs to be on a 3d printing playlist for videos you must watch before getting into 3d printing. Let me say that again.
    WATCH THIS VIDEO NOW, REGARDLESS OF WHERE YOU ARE WITH 3D PRINTING.
    This seemed like it was going to be so boring, and I only clicked on it because it was 3d printing related and couldn't be bothered to get up and actually print something.
    I *REALLY* wish I had this video when I first started 3D printing. This video is AMAZING, and perfect for beginners that want to know a bit about GCode, rather than being scared to look at the GCode. This is the precise reason I've never succeeded at a temperature tower, and now I feel confident that I CAN do that.
    Thank you CNC Kitchen. If I hadn't already subbed, this video would be another great reason to do so.

  • @mechsparks
    @mechsparks ปีที่แล้ว

    Right now I'm working with full control tool. Your video helped lot to understand the code. Thanks.

  • @Kalvinjj
    @Kalvinjj 2 ปีที่แล้ว +36

    Great video! The other ones I would add is G4 - dwell: waits for a specified time, for example, for you to remove the droop of filament that purges or something like this, and M0, the unconditional stop, that waits until you press the encoder button on the LCD.
    For most useless G-code, I would give the medal to M510: lock the machine. I cannot imagine a single reason why anyone would need a password for a 3D printer, or maybe in some extreme case a makerspace would use that, but I dunno, feels extremely useless.

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว +5

      Great choices!

    • @ramalightfoot9943
      @ramalightfoot9943 2 ปีที่แล้ว +4

      I would like to second this. Having a follow-up video would be excellent. There are so many things GCode can do I didn't even know about, and G4 would be an excellent one to start adding to my startups.

    • @hyperfluff_folf
      @hyperfluff_folf 2 ปีที่แล้ว +2

      Ok M0 is now easily the holy grale that should have been mentioned, i always wanted to use a stop but didnt look what it was, now i know so ty

    • @Kalvinjj
      @Kalvinjj 2 ปีที่แล้ว +2

      @@hyperfluff_folf EDIT: checked again to be sure: it seems the following I'll be posting is only relevant if you don't have an LCD screen.
      Oh, since it seems M0 got enough attention, I'll add here that Marlin requires EMERGENCY_PARSER enabled on the firmware for M0 to work, I have it enabled but dunno if all firmwares do, hope it is your case whenever you try using it

    • @wheezybackports6444
      @wheezybackports6444 ปีที่แล้ว +4

      Considering g-code is a standard that's used on just about every CNC machine in existence M510 is probably there for the more dangerous equipment you might need authorization and preparation for at work. Like the type of thing that might cut your fingers off if you get them too close.

  • @AndyChaplin
    @AndyChaplin 2 ปีที่แล้ว +22

    Nice introduction! It would be cool to see a follow-up with a few commands for maintenance and tuning - M503/M500 and making alterations there, PID tuning for the nozzle and bed, setting steps, that sort of thing. Keep up the good work!

    • @mscir
      @mscir 11 หลายเดือนก่อน +2

      I would like to second the request for videos on PID tuning.

  • @timothykonrad5945
    @timothykonrad5945 2 ปีที่แล้ว

    Omg, solving some major problems with the absolute/relative positioning in the g code thanks so much

  • @ristllin
    @ristllin 2 ปีที่แล้ว +6

    I felt there was no proper intro vid on youtube for this type of information. Job well done Stefan.

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว +1

      Thanks! Appreciate it.

  • @vynaltheworld4092
    @vynaltheworld4092 10 หลายเดือนก่อน

    I needed the temp g code command so thanks so much I really appreciate it also I completely understand g code now very easy to follow and understand

  • @edwinirizarry9277
    @edwinirizarry9277 2 ปีที่แล้ว +4

    Love it man I would so love to see more in-depth gcode vids from you . I come to this channel for fine tuned printing info and I thank you for what you do 🙏🏻👍

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว

      Awesome, thank you!

  • @conrad6091
    @conrad6091 2 ปีที่แล้ว

    Helpful and straightforward. Thanks for your work making these videos.

  • @magnamic5614
    @magnamic5614 2 ปีที่แล้ว

    Very helpful and VERY straightforward.
    Thank you!

  • @msmazzo
    @msmazzo 2 ปีที่แล้ว

    Thank you! I was looking a bit for commands so I could read my codes easier. As a CNC guy, I have some G code experience, but I wasn't sure what the specific machine commands would be.

  • @andredelfini
    @andredelfini 2 ปีที่แล้ว +10

    Great summary and explanation!
    I just missed one that I believe is important: M600, which pause the print for a Filament change.
    This way we can produce prints with multi color in different heights.

  • @spiedermensch3582
    @spiedermensch3582 2 ปีที่แล้ว +1

    Very clear and valuable! I'm bookmarking this.

  • @hughessay1372
    @hughessay1372 2 ปีที่แล้ว

    Great quick summary--Well done!

  • @247printing
    @247printing 2 ปีที่แล้ว +21

    Again what learned! ☺️

  • @objection_your_honor
    @objection_your_honor 2 ปีที่แล้ว +3

    I needed this video 21 years ago.
    I learned the hard way, by reading a book.

  • @shiftyjesusfish
    @shiftyjesusfish 2 ปีที่แล้ว +1

    Oh boy! Time to get all sorts of custom errors I end up creating for myself while I play with this!

  • @dangerverma
    @dangerverma 9 หลายเดือนก่อน

    Simple guide, thanks Stefan!

  • @Prof.Polymath
    @Prof.Polymath 2 ปีที่แล้ว

    Great video mate, really well explained. Thank you. 👍🏼

  • @victortitov1740
    @victortitov1740 2 ปีที่แล้ว

    i think the knowledge of g -code comes in most handy when tuning and troubleshooting a printer. I ended up printing a small cheatsheet and slapping it onto the frame of the printer, very useful. I have some tuning commands (those that set acceleration and stuff), printer dimensions and speed limits there.

  • @ravenoustraal
    @ravenoustraal 2 ปีที่แล้ว +1

    This basic overview gives me confidence to try it soon! Ty

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว +1

      Do it! It's an essential skill.

  • @michaelbujaki2462
    @michaelbujaki2462 7 หลายเดือนก่อน

    I found learning g-code to be most practical on my Vertex Nano. The motors on that printer weren't strong enough to move the belts when they were tensionned properly, so skipped steps were inevitable. I created a code which sent the nozzle from one corner of the bed to the opposite corner so that the axes would recenter.
    I'm now on a Prusa Mini and I'm working on g-code modifications so that I can use a stainless steel hotend without tripping the thermal runaway detection.

  • @buntyshukla2625
    @buntyshukla2625 2 ปีที่แล้ว +1

    Just last semester I learned this but didn't understood anything but your explanation is really very great

  • @d.i.a.5392
    @d.i.a.5392 10 หลายเดือนก่อน

    Thank you great and clear intro.

  • @andresdica
    @andresdica 2 ปีที่แล้ว

    Danke Stefan, It was a really helpful video.

  • @s.k.t.3855
    @s.k.t.3855 2 ปีที่แล้ว

    Great video! I've needed to watch this video because I'm attempting to get an ABB robot to 3D print. Now I have the resources to begin my project!

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว

      Glad it was helpful!

  • @filetdelumiere5037
    @filetdelumiere5037 2 ปีที่แล้ว

    As usual, you videos are so useful !

  • @NaterNorris
    @NaterNorris 2 ปีที่แล้ว

    Thanks for the video, nice and clear.

  • @JJ-jt4ji
    @JJ-jt4ji 2 ปีที่แล้ว

    Thank you for sharing, subbed

  • @dpmott
    @dpmott 2 ปีที่แล้ว

    M112 is Emergency Stop, and is in the top 10 gcode commands that I manually type into the OctoPrint terminal. (PID configuration and EEPROM save commands also make the list.)

  • @johngodden1665
    @johngodden1665 2 ปีที่แล้ว

    Great video. I am a NEWBIE to this and that was straightforward, easy to understand. Thank you

    • @takeittothegrave6302
      @takeittothegrave6302 2 ปีที่แล้ว +1

      hey John ,i can help you generate gcodes..

    • @johngodden1665
      @johngodden1665 2 ปีที่แล้ว

      @@takeittothegrave6302 no need at this time. Thank you

  • @leanazulyoro
    @leanazulyoro 2 ปีที่แล้ว

    Extremely helpful! Thanks!

  • @russwoodward8251
    @russwoodward8251 2 ปีที่แล้ว

    This is great. Thank you!

  • @KB-qh2jt
    @KB-qh2jt 2 ปีที่แล้ว

    Nice work Stefan!

  • @deanoconnor7807
    @deanoconnor7807 2 ปีที่แล้ว

    Thank you for sharing your time and knowledge.

  • @TheJay6621
    @TheJay6621 2 ปีที่แล้ว

    yes this was helpful and straightforward..

  • @konradritter7543
    @konradritter7543 2 ปีที่แล้ว

    I had a feeling, this channel might have exactly this type of video (which I wanted to look for atm). Was not disappointed! Leaving comment for TH-cam algorithm.

  • @ffelt
    @ffelt 2 ปีที่แล้ว

    Fantastic thanks a lot for this helpful work

  • @digilockmech3487
    @digilockmech3487 2 ปีที่แล้ว

    Very nicely explained..thanks s lot

  • @automaticprojects
    @automaticprojects 10 หลายเดือนก่อน

    Super helpful as always

  • @owengreene7659
    @owengreene7659 2 ปีที่แล้ว

    Very well done. Thank you .

  • @ruudb72
    @ruudb72 2 ปีที่แล้ว

    Great video! Thanks.

  • @JessVideoDude
    @JessVideoDude 2 ปีที่แล้ว

    Awesome! Thank you for sharing! 🙂

  • @funguy4900
    @funguy4900 2 ปีที่แล้ว

    Great channel. Thanks for your great videos.

  • @ferenctaisz449
    @ferenctaisz449 2 ปีที่แล้ว

    Thank you so much for this video. You made my life happier :)

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว

      You are so welcome!

  • @truegret7778
    @truegret7778 2 ปีที่แล้ว

    I would be interested in a short video from you, Stefan, regarding power loss recovery and specifically the use of M413, please.

  • @shawnmcandrew6923
    @shawnmcandrew6923 2 ปีที่แล้ว

    love cnc kitchen. A Most informative channel.

  • @Garga0
    @Garga0 7 หลายเดือนก่อน

    Yes it is helpful.
    Thx

  • @stanleywhite4240
    @stanleywhite4240 ปีที่แล้ว

    Thank You Stefan

  • @ethzero
    @ethzero 2 ปีที่แล้ว +1

    Very good!
    As a curious novice to 3D printing, I noticed there was a subtle difference to the way the Creality Slicer (Cura, rebranded) and Ultimaker Cura ended a print with CS moving the bed to the rear of the printer and UC presenting to the front.
    After discovering in the Machine Settings, this was a behaviour controlled by the G1 command, I was able to copy the *rear* presenting behaviour over to UC.
    The reason? I have OctoPrint's Webhook plugin fire off an event to turn on an external fan to cool the bed after a successful print. Having the print bed present to the rear enables (slightly) better cooling.
    Ideally I love there to be some functionally to turn off the fan once the temp is at ambient :)

    • @matthew98594
      @matthew98594 2 ปีที่แล้ว

      Couldn't you do a M190 S30 then M107? Could even present print after cooling

  • @samderby3073
    @samderby3073 2 ปีที่แล้ว +5

    This inspired me to write my own slicer. Now I just need a printer to test it on :). Almost done saving up.

  • @zacharytrich8084
    @zacharytrich8084 2 ปีที่แล้ว

    Great information!

  • @vynaltheworld4092
    @vynaltheworld4092 ปีที่แล้ว

    yes thanks so much very helpful

  • @kkloikok
    @kkloikok 2 ปีที่แล้ว +1

    So I've seen flow control (if statements) in GCODE or at least in prusa and S3D. I'd like to see a video on what those are really useful for and how to use them

  • @lacomarca3d796
    @lacomarca3d796 2 ปีที่แล้ว +4

    Other important? Maybe many, but I’d like to say than G2/G3 were the pair I was missing. The cura plug-in for them made my day. Salut i fins aviat! 😁

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว +1

      I left out G2/G3 on purpose because I'd bet 99.999% of G-Code printed on 3D printers don't use the command (which is a pity but a result of us using stls).

    • @lacomarca3d796
      @lacomarca3d796 2 ปีที่แล้ว

      @@CNCKitchen next gen printers should work through STEP files or something like that so curvilinear shapes are taken into consideration, I guess that even the printer drivers will work better since they will not have to process so much lines of code in exchange of a single G2/G3 command. Thanks for all your efforts 👍🏼😁

    • @wordreet
      @wordreet 2 ปีที่แล้ว

      WAH? I never noticed that! Though I already knew that 3D printing g-code had those straight lines, and had accepted it because our workshop does the same. Hehe. 😅
      For those that want to know, G2 is a clockwise arc and G3 is anti-clockwise.
      We use G2 & G3 all the time in CNC mills. We get the code off a workshop server after loading it across from the "engineering office", and they use automatically generated code from a "drawing" file these days. But sometimes it's pretty easy to notice all the micro straight lines in the side of a milled radius metal component.
      But I don't see much advantage for G2 G3 in 3D printing, whereas in milling it can define and control quality of finish and cutter wear due to cutter rotation + movement direction.

  • @hoffer_moment
    @hoffer_moment 2 ปีที่แล้ว

    took screenshots of all those slides, very very useful :)

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว

      They are also all available on my website!

  • @Drew_pew_pew_pew
    @Drew_pew_pew_pew 2 ปีที่แล้ว +1

    I like relative positioning for extrusion more because it's easier to edit the gcode when you want to resume a failed print. I don't recall if you talked about this in your previous video about print failures. It can be done with absolute positioning (Ideamaker was setup this way but you can change this) but I found this out after I threw my print in the garbage 🙄

  • @Bianchi77
    @Bianchi77 2 ปีที่แล้ว

    Keep it up, nice video clip, thank you for sharing it :)

  • @Wheatley101
    @Wheatley101 2 ปีที่แล้ว

    Very useful!! Thanks buddy!!
    Greetings from UK!!

  • @wordreet
    @wordreet 2 ปีที่แล้ว

    Excellent video! I recently donated my old Tevo Tarantula to someone who's thinking about starting 3D printing.

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว

      That is awesome!

  • @garagemonkeysan
    @garagemonkeysan 2 ปีที่แล้ว

    Great video. Super useful for GCode introduction. Mahalo for sharing! : )

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @PaulDominguez
    @PaulDominguez 2 ปีที่แล้ว

    Great G-code primer

  • @WhamBamSystems
    @WhamBamSystems 2 ปีที่แล้ว

    Love this! I love to tinker with gcode to customize some models.

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว

      Such an important yet underrated skill!

  • @RasberryPhi
    @RasberryPhi 10 หลายเดือนก่อน +1

    ich möchte auch sehr gerne CNC programmieren lernen. Ich hoffe, dass mir deine Videos helfen werden. Dieses war schonmal sehr aufschlussreich. Vielen Dank aus Bayern!😊

  • @sub-sonicwavescaraudio1814
    @sub-sonicwavescaraudio1814 ปีที่แล้ว

    So, I've been 3D printing as a hobby/side business for about 2 years now. During that time I got really busy with the printed custom projects for customers and my focus was shifted to building the Bass Controllers internal components and the actual quality of the printed pieces was really inconsequential as long as the basic idea of the custom design IE the added logo or added text or overall design was aesthetically pleasing The quality of the print didn't even get noticed. So I spent more time making sure that my internal components and the workability and durability of the controller built inside of the printed part was the highest of quality and I didn't pay any attention to how well or how terrible my printing was. Obviously if there were failed prints or if there were major blemishes or inconsistencies those got addressed and the project got reprinted but there was no thought into why it had happened. However lately I have slowed my side business down and I have focused a lot more on the actual 3D printing portion as I have upgraded to an IDEX printer and hopefully coming very soon my ordered carbon X1 so quality now is my focus on the actual prints. I have also been using Cura Prusa slicer bamboo Labs and idea maker and having to import printers into different slicers that don't come with pre-designed profiles I have had to look at start code and in code and was completely lost. I found this video today and in the 12 minutes of this video I learned more than I have in the last 2 years I love how analytically adept you are and the way you approach each issue so systematically I have now watched like four or five of your videos and again I have learned more in these few videos from you then in the entirety of my two years of printing before so thank you very very much!!! But particularly this video learning those 10 g codes that you just showed us will forever change the face of my 3D printing projects and abilities. Simply put the building blocks that you just gave me are going to help propel me into a new world of 3D printing and will inevitably be the most valuable tools I will ever use so this video has changed my 3D printing life for the better and thanks to you I will never be the same!!!!

  • @outofdarts
    @outofdarts 2 ปีที่แล้ว +37

    Great overview!

    • @thedartdomain4197
      @thedartdomain4197 2 ปีที่แล้ว +2

      Didn't expect to see you here, but that makes sense!

    • @Bobololo
      @Bobololo 2 ปีที่แล้ว +2

      Hey, it's that guy :)

    • @isaiaht8648
      @isaiaht8648 2 ปีที่แล้ว +1

      Funny how everyone in the 3D printing community is interconnected like this lol

  • @landlocked4771
    @landlocked4771 2 ปีที่แล้ว +1

    Very helpful and straight forward Stephen, you have never steered me wrong and I trust you never will. Thank You

  • @alejandrotaudil3689
    @alejandrotaudil3689 2 ปีที่แล้ว

    Thanks Stefan!! very usefull

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว

      Glad it was helpful!

  • @tinajones6313
    @tinajones6313 5 หลายเดือนก่อน

    Yes helpful, thanks

  • @operaglass09
    @operaglass09 2 ปีที่แล้ว

    Thank you for the video, which is a good starting point to decipher the complex G-code. 😊
    The kart that runs through the streets of Japan shown around 34 seconds in the introductory video used to be a service that called itself Mario Kart.🏎
    However, they had been using the character without Nintendo's permission, which led to a court case, and since then they have been operating the service wearing Disney characters and stuffed animals.🐈
    In January of this year, the kart company was ordered by the court to pay 50 million yen and lost.💸
    This is a victory for Nintendo.

  • @laudavhutcheon946
    @laudavhutcheon946 2 ปีที่แล้ว

    Follow up please. I am building my own, very large, 3D printer and teaching myself gcode. It has been challenging :)

  • @karmajoyst
    @karmajoyst 2 ปีที่แล้ว

    Great video

  • @tomjones2860
    @tomjones2860 2 ปีที่แล้ว +3

    M851 is the command that you need to know. Get that right with your probe and perfect first layers every time.

  • @ZorlacSkater
    @ZorlacSkater 2 ปีที่แล้ว

    Thank you bro, very clear tutorial. But you should add a simple example and show how you execute it

  • @Narigopia
    @Narigopia 6 หลายเดือนก่อน

    Perfect!

  • @joexie6834
    @joexie6834 2 ปีที่แล้ว

    thanks for the video. if I would trim the Z axis height as I would put print plate or remove it(the height woud be added from the original plate). what would be the gcode command should be? thanks for any help.

  • @ernestlane
    @ernestlane 2 ปีที่แล้ว

    Excellent.

  • @wonsnot
    @wonsnot 2 ปีที่แล้ว +2

    I literally needed this today and was researching it myself when this popped up in my feed 👍

  • @WeItenspinner
    @WeItenspinner 2 ปีที่แล้ว

    My most important command is M92 to set the feeding rate for a new extruder gearbox.

  • @tonyaudsley4342
    @tonyaudsley4342 9 หลายเดือนก่อน

    Can you please tell me if its possible to change the Cura "line width" in the G-code

  • @MaxGoddur
    @MaxGoddur 2 ปีที่แล้ว

    It would be most helpful if a video could be made covering how g-code is made to work with Temp towers. I have the Prusa MK3 i3 and am looking to use a temp tower which I found on 3d printers site. What I don't have is the knowledge to alter the G-code for running it on the printer for that temp tower.

  • @elmariachi5133
    @elmariachi5133 2 ปีที่แล้ว

    I would like to understand more about the M500 to M504 commands, and when and how to use them. Which settings do they actually load, is homing and loading of the bed levelling including? What about mesh bed levelling, is it restored with M501, too?

  • @the22fu
    @the22fu 2 ปีที่แล้ว

    Dickes Dankeschön!

  • @TheSamuraj85
    @TheSamuraj85 2 ปีที่แล้ว

    Thank you Stefan for the great Video!
    What about settings extrusion multipliers? For example if you want to print more objects with the option "Compleat individual object" in PrusaSlicer and you want to change for each object different extrusion multipliers (flow for one object 100%, the second object 90% and so on,...)? How is that? Thank you and Auf Wiedersehen :)

  • @Dave-gf3kd
    @Dave-gf3kd 2 ปีที่แล้ว

    EXCELLENT!

  • @Dwz800
    @Dwz800 2 ปีที่แล้ว +1

    Another one I really preciate and use often is adjusting printspeed in octoprint with M220 S... (For example 200% => M220 S200)

  • @randyedwards3244
    @randyedwards3244 ปีที่แล้ว

    Hi there Stefan, such an educational site where I have learned a considerable amount in a short time. One g-code in particular that has been eluding me is one for controlling the extruder. I'm trying to calibrate the extruder on my Geeetech A30 Pro and find it frustrating that this particular code seems to be avoiding all my attempts to locate it. The Geeetech control panel lacks any setting regarding extruder control and I thought using a g-code to do so would be rather simple. Apparently not! I would appreciate any assistance or direction you could provide, Thanks!

  • @loubano
    @loubano 2 ปีที่แล้ว +2

    All your vidéo and tutorials are so greats !!!!!
    Big thanks to you 😀
    Thumb up and subscription Mandatory 😀👍
    Greetings
    Cedric
    France

  • @hericperez
    @hericperez ปีที่แล้ว

    This is the first time I don't feel scare about coding., Thank you.

  • @behzadabf
    @behzadabf 2 ปีที่แล้ว

    this one is good... tanxxxx

  • @TheMidnightSmith
    @TheMidnightSmith 2 ปีที่แล้ว

    Omg you just helped me figure out an end gcode for raising nozzle head! Rather than use the wierd Prusaslicer "if" statements, I'll just use this lol

    • @hologos_
      @hologos_ 2 ปีที่แล้ว

      The prusaslicer "weird" if statements prevent the printer to destroy itself if it should move higher than is the maximum Z. If you remove it and your printer has max Z lets say 250 and the printer ends the print at z = 245 and you tell it to move 10mm at the end, you will grind your gears because it could never reach z = 255.

  • @yuchending4977
    @yuchending4977 ปีที่แล้ว

    Hi, if I use M82 command to use the absolute mode for the extruder, how the E number relates to the steps or the rotation angle of the stepper motor? I'm thinking mod the extruder motor to let it drive a rotary stage. Thank you!

  • @thomasfeix7979
    @thomasfeix7979 2 ปีที่แล้ว

    Impressed that your text file in the video is actually from today! :)

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว

      I'm a procrastinator...

    • @thomasfeix7979
      @thomasfeix7979 2 ปีที่แล้ว

      @@CNCKitchen and I thought more like you deliberately put one in from today :)

  • @yurimarschall5302
    @yurimarschall5302 2 ปีที่แล้ว

    Super informatives Video! :))) Welche Z-Werte bekomme ich bei meinem MK3S+, wenn ich vor Beginn des Drucks, also gleich nach dem ersten G28 eine Prusa- Z-Kalibrierung (anfahren des oberen Z-Achsenendes und eine leichte übersteuerung von 10-20 mm) durchführe? Wird dann der soll- oder ist-Wert abgespeichert? Reicht dann ein G28 um gefahrlos wieder in die Home-Position zurück zu kehren und das meshbedleveling zu starten? Ein Tipp wäre nett, weil ich ungerne (wieder) mit der Nozzle ins/durchs Druckbett fahren würde :D (Hintergrund: Im Rahmen der letzten Upgrades stellt sich meine Z-Achse teilweise im Druck zwischen Layer 2 -20 schief (Vermutlich ein leichter Slipstickeffekt). Eine anfängliche Z-Kalibrierung scheint die Fehleranfälligkeit signifikant zu senken)
    Das wäre mein Ansatz:
    ; Regulärerer erster Block
    M862.3 P "[printer_model]" ; printer model check
    M862.1 P[nozzle_diameter] ; nozzle diameter check
    M115 U3.9.1 ; tell printer latest fw version
    G90 ; use absolute coordinates
    M83 ; extruder relativeG mode
    M104 S[first_layer_temperature] ; set extruder temp
    M140 S[first_layer_bed_temperature] ; set bed temp
    M190 S[first_layer_bed_temperature] ; wait for bed temp
    M109 S[first_layer_temperature] ; wait for extruder temp
    G28 W ; home all without mesh bed level
    ; Manuelle Z-Kalibrierung
    G0 Z20.0 X105 F1000
    G0 Z200.0 ; 20 mm übersteuerung
    G28 w; G80 wird von G28 mit übernommen
    ; Weiter mit dem regulären Code
    Is it safe? :D

  • @Kekht
    @Kekht 2 ปีที่แล้ว

    Thank you for video. I was always wondered - why we need in start G-CODE first SET temp and then SET&WAIT? why not just SET&WAIT?

    • @na_dann_mal_los
      @na_dann_mal_los 2 ปีที่แล้ว

      Like said in the video: set&wait pauses the processing of the gcode, so the heating-up will be in sequence and thus will take more time.
      Set temp (on nozzle and bed) forces the printer to heat up SIMULTANEOUSLY. The following set&wait (on nozzle and bed) waits for both being heated up.

    • @Kekht
      @Kekht 2 ปีที่แล้ว

      @@na_dann_mal_los You did not got what I meant. I clearly understand that. And in some cases that would work. But usually it takes MUCH more time to heat a bed - so to prevent oozing heating bed first make sense, and nozzle heats up much more faster. But, like in example in video, many times I've seen, that first we SET bed and right after - SET&WAIT bed. Why?

    • @CNCKitchen
      @CNCKitchen  2 ปีที่แล้ว +1

      I don't think that there is a particular reason for that. As pointed out with the asterisk, M109 and M190 would have been sufficient but it also doesn't hurt if you have both.