Gcode and For-Next Loops

More
10 years 11 months ago #65922 by Rick G
Replied by Rick G on topic Gcode and For-Next Loops
Part of the problem is when you get past the basic commands gcode is not universal, not all gcodes may be implemented from one flavor to another. Say linuxcnc and fanuc. Which is one reason you see so many post processor options in Cam software.

These may also help...
linuxcnc.org/docs/2.4/html/gcode_main.html
gnipsel.com/linuxcnc/g-code/

Nothing wrong with print, paper and books, and I would not even call that old fashion!

Rick G

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #65975 by comjon
Replied by comjon on topic Gcode and For-Next Loops
The lack of standards is a problem, as Rick G.commented, and this seems similar to other tech companies creating "proprietary" use of a language.

If you learned For-Next loops or subroutines in a languages like C++ you will find G code easier but odd. For what you are trying to accomplish (code reuse I gather) you could write O codes for pocketing operations, as I learned on the Haas, but it has it's drawbacks. Gcode is procedural, as you may have guessed, you don't write for classes or inheritance or object oriented methodology. There are quirks to some Gcode commands depending on vendor implementations. Standard are nice to have, no doubt.

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds
Powered by Kunena Forum