xr650rRider
Silver $$ Contributor
AI to write G-code
There’s so many great ways to screw up!Don't forget that evil minus symbol. Added a rapid move after an operation and had a brain fart. Had to rebuild my spider and reset the tool.
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.Where does a guy start to learn g-code?
That’s kinda what I didTake 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.
I saw that shown on a videoOn 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
If I wasn’t averse to crowded areas that’s what I would do.Nearby community college?