RE: [CAD_CAM_EDM_DRO] Re: code generation?
Posted by
Mark Thomas
on 2003-04-07 21:21:02 UTC
I suppose this is a little like saying you shouldn't program in Visual
Basic until you learn Assembly language. In both situations there is
definite value to be able to understand the low level code generated by
a compiler or in the case of CNC the CAM program. However there are many
good professional programmers who never look at compiler output.
On the other hand being able to hand optimize code at low levels can
sometimes be a huge advantage, especially in a commercial program. Hand
editing G-code files can also be an advantage as well, again for
optimizing codes. As an example some CAM programs will produce many
lines of code for a curved line, when in fact only a few G02 or G03
commands are all that is needed.
However, unless the code is being used in a production situation, the
end result for the average home shop user is the same.
Personally I like to know what's going on at the lower levels, so I will
often check the generated G-code files. This is especially true if
multiple copies of the same part are being produced. If the work I am
doing is straight forward then I will more than likely just write the
G-code without bothering to go through the CAD/CAM route.
What I will say is that writing your own code is very satisfying and
helps demystify the CNC process, and can at times be the quickest way to
go from blank to finished part.On the other hand there are times when
hand coding would be very tedious and prone to error, so it's much
better to let the computer do the grunt work for you.
Just my 2c.
Mark
Oh yes, I do know Assembly for a number of chipsets, but 99% of my
programing is in C/C++.
Basic until you learn Assembly language. In both situations there is
definite value to be able to understand the low level code generated by
a compiler or in the case of CNC the CAM program. However there are many
good professional programmers who never look at compiler output.
On the other hand being able to hand optimize code at low levels can
sometimes be a huge advantage, especially in a commercial program. Hand
editing G-code files can also be an advantage as well, again for
optimizing codes. As an example some CAM programs will produce many
lines of code for a curved line, when in fact only a few G02 or G03
commands are all that is needed.
However, unless the code is being used in a production situation, the
end result for the average home shop user is the same.
Personally I like to know what's going on at the lower levels, so I will
often check the generated G-code files. This is especially true if
multiple copies of the same part are being produced. If the work I am
doing is straight forward then I will more than likely just write the
G-code without bothering to go through the CAD/CAM route.
What I will say is that writing your own code is very satisfying and
helps demystify the CNC process, and can at times be the quickest way to
go from blank to finished part.On the other hand there are times when
hand coding would be very tedious and prone to error, so it's much
better to let the computer do the grunt work for you.
Just my 2c.
Mark
Oh yes, I do know Assembly for a number of chipsets, but 99% of my
programing is in C/C++.
Discussion Thread
Brian Sherwood
2003-04-05 22:01:58 UTC
code generation?
stevenson_engineers
2003-04-06 01:02:59 UTC
Re: code generation?
Greg Pettengill
2003-04-06 09:43:43 UTC
Re: [CAD_CAM_EDM_DRO] Re: code generation?
Tim Goldstein
2003-04-06 09:51:28 UTC
RE: [CAD_CAM_EDM_DRO] Re: code generation?
Fred Smith
2003-04-06 10:08:40 UTC
Re: code generation?
doug98105
2003-04-06 10:11:35 UTC
Re: code generation?
Tim Goldstein
2003-04-06 10:25:11 UTC
RE: [CAD_CAM_EDM_DRO] Re: code generation?
Randy Gordon-Gilmore
2003-04-06 11:51:08 UTC
Re: code generation?
Tim Goldstein
2003-04-06 12:06:21 UTC
RE: [CAD_CAM_EDM_DRO] Re: code generation?
Brian Sherwood
2003-04-06 15:12:12 UTC
Re: code generation?
stevenson_engineers
2003-04-06 15:39:01 UTC
Re: code generation?
Brian Sherwood
2003-04-06 18:02:44 UTC
Re: code generation?
Randy Gordon-Gilmore
2003-04-06 19:34:08 UTC
Re: code generation?
Chris L
2003-04-06 20:46:57 UTC
Re: [CAD_CAM_EDM_DRO] Re: code generation?
Chris L
2003-04-06 20:59:25 UTC
Re: [CAD_CAM_EDM_DRO] Re: code generation?
doug98105
2003-04-06 21:57:53 UTC
Re: code generation?
stevenson_engineers
2003-04-06 23:58:39 UTC
Re: code generation?
Tony Jeffree
2003-04-07 02:29:35 UTC
Re: [CAD_CAM_EDM_DRO] Re: code generation?
doug98105
2003-04-07 06:41:20 UTC
Re: code generation?
Brian Sherwood
2003-04-07 07:39:03 UTC
Re: code generation?
doug98105
2003-04-07 09:11:48 UTC
Re: code generation?
Fred Smith
2003-04-07 11:01:29 UTC
Re: code generation?
Brian Sherwood
2003-04-07 11:32:03 UTC
Re: code generation?
James Cullins
2003-04-07 11:52:13 UTC
Re: [CAD_CAM_EDM_DRO] Re: code generation?
CL
2003-04-07 12:38:31 UTC
Re: [CAD_CAM_EDM_DRO] Re: code generation?
turbulatordude
2003-04-07 12:42:10 UTC
Re: code generation? - hand coding
Brian Sherwood
2003-04-07 12:46:36 UTC
Re: code generation?
James Cullins
2003-04-07 14:28:54 UTC
Re: [CAD_CAM_EDM_DRO] Re: code generation?
Mike
2003-04-07 16:07:52 UTC
RE: [CAD_CAM_EDM_DRO] Re: code generation?
Mark Thomas
2003-04-07 21:21:02 UTC
RE: [CAD_CAM_EDM_DRO] Re: code generation?
CL
2003-04-08 05:57:47 UTC
Re: [CAD_CAM_EDM_DRO] Re: code generation?
sparkness2001
2003-04-08 10:43:38 UTC
Re: code generation?