Writing G Code using Notepad++, What I do for a Job

Поділитися
Вставка
  • Опубліковано 5 сер 2017
  • Part of my job consists for writing programs for trimming parts on CNC machines. In this video I write a basic program that will flush trim a part using a 5 axis CNC machine. Code is written to use Tool Center Point (TCP) which means I am programming from the tip of the tool rather than the pivot point of the machine.
    Check us out on Facebook: / rdallengaming
    Get Your Own RDAllen Shirts: shop.spreadshirt.com/rdallen/
    Monthly Snacks! www.universalyums.com/?ref=yum...
    Music: www.purple-planet.com
    / nocopyrightsounds
  • Ігри

КОМЕНТАРІ • 54

  • @holyschmit5409
    @holyschmit5409 4 роки тому +1

    nice to know people are still willing to teach. some might catch on to this alot quicker.

  • @nolanmanley5359
    @nolanmanley5359 7 років тому +1

    Very cool. Makes it easy to see why math and geometry is good to know. Much respect to the machinist that do it the old way. I've been an IAM member for 30+ years now in the Aviation Electronics field. Thanks for the cool video.

    • @radozeman
      @radozeman  7 років тому +1

      Cool, yes math is very important!

  • @hmhbanjo
    @hmhbanjo 3 роки тому +7

    I'm a beginner and this may be a beginners question. How do you take the g-code text from Notepad++ to the g-code format for the CNC?

    • @matejkuka797
      @matejkuka797 Рік тому +1

      you save that file into .gcode format :)

  • @ragtoppin
    @ragtoppin 7 років тому

    Thanks for adding the clip of the machine dry running the part, it helped me understand. What you do is what I did in a past life, but I never did 5 axis, just 3 with indexing tables. Thanks for sharing.

    • @radozeman
      @radozeman  7 років тому

      Yes, 5 axis is much more complicated! Reason for using TCP Tool Center Point.

  • @keniak1-g960
    @keniak1-g960 4 роки тому +1

    Hey a small tip at paint: When you are using the select tool you can use Ctrl + X to fill that part of space with blank space and you're welcome :).

  • @toddspeck9415
    @toddspeck9415 5 років тому

    Very interesting info. Amazes me what your doing.

  • @vernoncostello6495
    @vernoncostello6495 6 років тому

    Do you drip feed your program directly using notepad? I am trying to get my CNC to work correctly, but the program I am using seems to send to fast, and I have adjusted the baudrate as slow as it can go.

    • @radozeman
      @radozeman  6 років тому

      No, the machines computer runs the program in our case OSAI controls

  • @grigorgrishugrigorov
    @grigorgrishugrigorov 2 роки тому

    Hi! Very nice video! Which syntax highlighter are you using? Can you please share it?

    • @radozeman
      @radozeman  2 роки тому

      G-code plug-in for Notepad++

    • @grigorgrishugrigorov
      @grigorgrishugrigorov 2 роки тому

      @@radozeman Yes, I understand, I am using several, but they all look pretty poor in compare to the one you are using, so I was more asking about the .xml file or the name of the g-code language author (or link to download it from somewhere).
      Thank you in advance :)

  • @64fishing20
    @64fishing20 7 років тому

    Love the videos also first like and comment

  • @ZorlacSkater
    @ZorlacSkater 2 роки тому

    Do you have to write all programs by hand? This looks like a task which can get automated ^^

    • @radozeman
      @radozeman  2 роки тому +1

      No! Most programs I use Mastercam to create the programs.

    • @ZorlacSkater
      @ZorlacSkater 2 роки тому

      @@radozeman ok I see

  • @henryfitzthum7563
    @henryfitzthum7563 5 років тому

    Where would one find codes for different functions / meanings to G00, G01,G02 etc..., I'm still wet behind the ears as in learning, I built my CNC Router from scratch, I'm running Mach3, produce a lot of my code via inkscape object to path then use another program to convert to gcode.
    I'm wanting to learn how to read and edit gcode as I've noticed if I run a simple project for example a Letter F or words etc.. it runs fine, BUT once I start complex code that has words shapes patterns etc has approx. 40,000 lines for a period of time it starts messing up approx mid cycle e.g on line 18,000 kinda like it's missing steps, I was kinda wondering if I learn how to read and edit this code maybe I could prevent this.

    • @radozeman
      @radozeman  5 років тому

      I have heard that with those that they can handle so much code before they mess up for some reason. G-code though can be very machine/controller specific, you can try looking for a basic g-code guide, but you still want want something more specific to your application

    • @henryfitzthum7563
      @henryfitzthum7563 5 років тому

      @@radozemanhank you for your reply, I have read that a circular cut motion will cause it to loose steps and the program I use to generate gcode doesn't allow an option to change to e.g zig zag.
      I don't know maybe one of the motors got hot or a bad linear rail, as the code I ran took over an hour and was almost finished but it would mess up in the same location everytime which made me think it's code, cause I checked everything including couplers thinking maybe these are slipping nope.

    • @radozeman
      @radozeman  5 років тому

      All depends on how well your controller handles circular motion, in most cases you want to use G02/G03 as that will give a much better circle then having say 1,000 points to make a circle/radius. Not to mention a lot less code!

  • @pegaze22
    @pegaze22 3 роки тому

    hello, how to save the notepad++ in .gcode, i can't see the extention in the save options ... thanks

    • @radozeman
      @radozeman  3 роки тому +1

      gcode is typically saved in a NC format, so .nc, cnc, etc. You can always just save as a text file .txt, then change the file type.

    • @pegaze22
      @pegaze22 3 роки тому

      @@radozeman Ok !! Thanks a lot !!

  • @seangholland3055
    @seangholland3055 6 років тому +2

    How is 7 + 7 = 15?, and not 7.5 in y?

    • @radozeman
      @radozeman  6 років тому

      Is that where I was doing the radius’s? That adds another 1/2

  • @matejkuka797
    @matejkuka797 Рік тому

    why do this in notepad++ ? i know CAM cost some money but there are so many options to use for free :) but i really apreciatte skills i love writing code from head :)

    • @radozeman
      @radozeman  Рік тому

      Know of any free ones that handle 5 axis work? With that being said, still important to understand the g-code, problem with most programmers now days if you ask me, they now how to use the CAM software but don't know anything about the g-code that is generated.

  • @user-ui4yx2kq1d
    @user-ui4yx2kq1d 4 місяці тому

    ❤do you have sub program 🤔

    • @radozeman
      @radozeman  4 місяці тому

      Sub program? As in one where I can just feed it the dimensions and it will handle the rest? Then yes.

  • @frankdank7439
    @frankdank7439 3 роки тому

    Are you familiar with conversational programming?

    • @radozeman
      @radozeman  3 роки тому

      I have used it before on the machines yes, mostly use CAM.

  • @loader980
    @loader980 7 років тому

    cnc guy, awesome! I can manual machine all day long. oh and weld

    • @radozeman
      @radozeman  7 років тому +1

      Nice! Welding is always fun as well

    • @loader980
      @loader980 7 років тому

      I work for a company that produces the striping trucks you see painting lines on the road.

  • @FarmingSimulator-mo1me
    @FarmingSimulator-mo1me 7 років тому

    Hi

  • @gravestoner2488
    @gravestoner2488 3 роки тому

    Why not write a program to produce this gcode for you every time? Choose input method, and write a program to parse that information and translate it into code.

    • @radozeman
      @radozeman  3 роки тому

      You could I suppose, or use a CAM program, in my case I use Mastercam.

  • @JeffreyMyers_
    @JeffreyMyers_ 7 років тому

    Yep, got me confused...😂 the CNC machines are nice though.

    • @socorrocalzada2534
      @socorrocalzada2534 7 років тому

      Jeffrey Myers I know, it was too hard for my console brain to understand😂😂😂

    • @radozeman
      @radozeman  7 років тому

      Oh they are fun! A lot easier if you are good with math!

  • @mathos6296
    @mathos6296 7 років тому +6

    You lost me at the when you opened paint

  • @pakman422
    @pakman422 5 років тому

    G16 XY Plane? I think you meant G17

    • @pakman422
      @pakman422 5 років тому

      What machine/control is this running on?

    • @radozeman
      @radozeman  5 років тому

      Oasi, an head head 5 axis

    • @pakman422
      @pakman422 4 роки тому

      Very ineteresting. Those do use some interesting code structure. Ya G16 if I remember correctly is usually Polar Coordinate programming. Like if you wanted to program a bolt hole circle. Fancy way to do so. At least most controls including Fanucs use it.

  • @edwardznorton4881
    @edwardznorton4881 7 років тому

    Are you a man witch or a wizard because. . . sorcery, SORCERY EVERYWHERE!!! Lol