D
18
c/cnc-operatorshenrygranthenrygrant1mo agoTop Commenter

Overheard a guy at the tool crib say his G-code is cleaner since he started writing comments like code

I was grabbing a new end mill at the crib last Tuesday and this older machinist was telling the guy behind the counter that he adds comments to every tool change line now. He said it saves him 10 minutes per setup because he doesn't have to trace through the program to remember what each section does. I tried it on a job for some aluminum brackets and he was right, it really helps when you come back to a program a month later. Has anyone else picked up programming habits from other trades like that?
2 comments

Log in to join the discussion

Log In
2 Comments
clark.iris
clark.iris1mo ago
The part about saving 10 minutes per setup really hits home for me. But here's something nobody mentions - writing comments also helps when you're running the same program on different machines. Like if you've got a Haas and a Fadal both trying to run the same bracket, the tool change comments let you spot where the offsets need to be different without reading every line of code. I had to do that last month on a repeat job and it saved me from a crash because I saw the comment said "watch Z clearance on machine 2." Plus it makes it way easier when you're training new guys, they can read the comments and understand what the program is supposed to do instead of just guessing.
5
the_riley
the_riley1mo ago
Right, because who needs a crash course when a comment can do all the heavy lifting for ya.
5