• This Forum is for adults 18 years of age or over. By continuing to use this Forum you are confirming that you are 18 or older. No content shall be viewed by any person under 18 in California.

I’m dipping my toes into the CNC world.

Where does a guy start to learn g-code?
Take an existing program that works in your machine, sit down with the programming manual for your machine, go line by line looking up each command. Learn what G00, G01, and every other G code in that program do. Same with every other command. Run the program, then change a dimension by a little bit and see what happens. It will take time. Lathe programs are relatively simple and repetative. Rough turn, finish turn, drill, bore, thread, groove(cutoff). You can generate a snippet of code for each and just plug in dimensions.
 
Take an existing program that works in your machine, sit down with the programming manual for your machine, go line by line looking up each command. Learn what G00, G01, and every other G code in that program do. Same with every other command. Run the program, then change a dimension by a little bit and see what happens. It will take time. Lathe programs are relatively simple and repetative. Rough turn, finish turn, drill, bore, thread, groove(cutoff). You can generate a snippet of code for each and just plug in dimensions.
That’s kinda what I did
Get lists of G, M and other key words like I, K and F.
I started mapping out what functions and paths machine is doing line by line.
After just a week of that I can already mostly read the screen in real time 1749560814223.jpeg
 
On a Haas lathe or mill the "distance to go screen " is your best friend. That and "single block" operating mode, where the machine executes the program line by line with each push of the start button. If you are 1" from your part in the chuck, going line by line, and your "distance to go screen" says your next Z move will be Z-6" , do not hit the go button. It really is this simple to avoid a crash. I cannot state this strongly enough, "distance to go" is literally that! When in doubt just cut some air to prove out the program. Happy machining!
Paul
 
I have a kilo bite brain ,while everybody else has a mega bite . So if I absorb something new I gotta kick out something I might need . I will stick with this hand crank machine Thank You !! LOL
 
On a Haas lathe or mill the "distance to go screen " is your best friend. That and "single block" operating mode, where the machine executes the program line by line with each push of the start button. If you are 1" from your part in the chuck, going line by line, and your "distance to go screen" says your next Z move will be Z-6" , do not hit the go button. It really is this simple to avoid a crash. I cannot state this strongly enough, "distance to go" is literally that! When in doubt just cut some air to prove out the program. Happy machining!
Paul
I saw that shown on a video
Our system has distance to go.
Had to make another bushing for the threading bar.
My bar had a metric shank so I modified my bar to .499 so that bushing would fit standard 1/2 tooling.
B611E62E-E4BA-4D24-BB17-478475DD243B.jpeg

824BD8D7-02A6-44CA-911E-0C6E74BCEBC8.jpeg
 
I’d like to learn it as well. I just don’t have anyone close that I know of that can help. It really interest me.
 
Nearby community college?
If I wasn’t averse to crowded areas that’s what I would do.

There’s some excellent videos on YouTube, there’s different operating systems like fanuc and Fagor (which is what we run) that change things a bit but I’d pick one of the more modern systems and focus on that.
 

Upgrades & Donations

This Forum's expenses are primarily paid by member contributions. You can upgrade your Forum membership in seconds. Gold and Silver members get unlimited FREE classifieds for one year. Gold members can upload custom avatars.


Click Upgrade Membership Button ABOVE to get Gold or Silver Status.

You can also donate any amount, large or small, with the button below. Include your Forum Name in the PayPal Notes field.


To DONATE by CHECK, or make a recurring donation, CLICK HERE to learn how.

Forum statistics

Threads
165,561
Messages
2,198,302
Members
78,961
Latest member
Nicklm
Back
Top