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 - Ігри
nice to know people are still willing to teach. some might catch on to this alot quicker.
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.
Cool, yes math is very important!
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?
you save that file into .gcode format :)
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.
Yes, 5 axis is much more complicated! Reason for using TCP Tool Center Point.
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 :).
Very interesting info. Amazes me what your doing.
Thanks
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.
No, the machines computer runs the program in our case OSAI controls
Hi! Very nice video! Which syntax highlighter are you using? Can you please share it?
G-code plug-in for Notepad++
@@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 :)
Love the videos also first like and comment
thanks
Do you have to write all programs by hand? This looks like a task which can get automated ^^
No! Most programs I use Mastercam to create the programs.
@@radozeman ok I see
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.
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
@@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.
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!
hello, how to save the notepad++ in .gcode, i can't see the extention in the save options ... thanks
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.
@@radozeman Ok !! Thanks a lot !!
How is 7 + 7 = 15?, and not 7.5 in y?
Is that where I was doing the radius’s? That adds another 1/2
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 :)
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.
❤do you have sub program 🤔
Sub program? As in one where I can just feed it the dimensions and it will handle the rest? Then yes.
Are you familiar with conversational programming?
I have used it before on the machines yes, mostly use CAM.
cnc guy, awesome! I can manual machine all day long. oh and weld
Nice! Welding is always fun as well
I work for a company that produces the striping trucks you see painting lines on the road.
Hi
hi
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.
You could I suppose, or use a CAM program, in my case I use Mastercam.
Yep, got me confused...😂 the CNC machines are nice though.
Jeffrey Myers I know, it was too hard for my console brain to understand😂😂😂
Oh they are fun! A lot easier if you are good with math!
You lost me at the when you opened paint
LOL
G16 XY Plane? I think you meant G17
What machine/control is this running on?
Oasi, an head head 5 axis
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.
Are you a man witch or a wizard because. . . sorcery, SORCERY EVERYWHERE!!! Lol
lol