RE: Why can't I re-run this program?
Posted by
Ray
on 2001-07-12 06:51:14 UTC
From: Alan Marconett KM6VV <KM6VV@...>
commercial machines it comes down to sales posturing. "With the
competition's machine you will have to write 20 blocks of code. With ours
you can do it in one!" <g> There have been positive results to the
language from some of this but it does tend toward confusion.
If you chase down the roots of the "hobby" grade controllers, most started
with bright folk who had a dream and wrote some code. Most of these were
less interested in rigorous interpretations of RS-274 motion control
language than they were in making their software and hardware work. The
result is everything from HPGL -> dxf -> a g-code flavor -> conversational.
but they aren't be used for jumps or loops. The line numbers are not used
for anything except reference to humans. Variables are subject to math
and can be applied to distances and codes but again there is no good way
within the interpreter itself to use them for jumps.
IMHO - NIST has taken g-code interpretation about as far as it wants and
needs with the current six axis system. For the future they seem to be
looking to other approaches to translate geometry or real or drawn objects
into machine motion. (There are a bunch of interesting papers on their
site)
HTH
Ray
>Hi Ray,Don't we all! If you chase down the roots of G-code variation in
>
>Thanks for the comments. <s> I guess the "programmer" in
>me wants to think about reusable code, modularity, ease of
>understanding, etc.
commercial machines it comes down to sales posturing. "With the
competition's machine you will have to write 20 blocks of code. With ours
you can do it in one!" <g> There have been positive results to the
language from some of this but it does tend toward confusion.
If you chase down the roots of the "hobby" grade controllers, most started
with bright folk who had a dream and wrote some code. Most of these were
less interested in rigorous interpretations of RS-274 motion control
language than they were in making their software and hardware work. The
result is everything from HPGL -> dxf -> a g-code flavor -> conversational.
>I was also wondering about conditional statements; if we have labels forThere are conditional (boolian) statements available in the NGC interpreter
>subroutines, do we have something in NGC or another "flavor" Gcode? We
>could use labels for "jumps", i.e., "#IF V200 = 0 GOTO P20", Ok, the
>syntax is not there yet (make it look a little like basic?). The V200
>would be the variable, and P20 would signify the point in the program
>that is labeled $20. Possibly "G23 #200 = 1.200 P20"?
but they aren't be used for jumps or loops. The line numbers are not used
for anything except reference to humans. Variables are subject to math
and can be applied to distances and codes but again there is no good way
within the interpreter itself to use them for jumps.
IMHO - NIST has taken g-code interpretation about as far as it wants and
needs with the current six axis system. For the future they seem to be
looking to other approaches to translate geometry or real or drawn objects
into machine motion. (There are a bunch of interesting papers on their
site)
HTH
Ray
Discussion Thread
jguenther@v...
2001-07-09 08:46:59 UTC
Why can't I re-run this program?
Tim Goldstein
2001-07-09 09:22:31 UTC
RE: [CAD_CAM_EDM_DRO] Why can't I re-run this program?
jguenther@v...
2001-07-09 09:34:51 UTC
RE: [CAD_CAM_EDM_DRO] Why can't I re-run this program?
Jon Elson
2001-07-09 10:17:41 UTC
Re: [CAD_CAM_EDM_DRO] Why can't I re-run this program?
Ray
2001-07-10 07:38:51 UTC
RE: Why can't I re-run this program?
Jon Elson
2001-07-10 10:20:01 UTC
Re: [CAD_CAM_EDM_DRO] RE: Why can't I re-run this program?
Alan Marconett KM6VV
2001-07-10 13:59:22 UTC
Re: [CAD_CAM_EDM_DRO] RE: Why can't I re-run this program?
Jon Elson
2001-07-10 20:54:17 UTC
Re: [CAD_CAM_EDM_DRO] RE: Why can't I re-run this program?
Ray
2001-07-11 04:55:59 UTC
Re: RE: Why can't I re-run this program?
John Guenther
2001-07-11 05:15:59 UTC
RE: [CAD_CAM_EDM_DRO] RE: Why can't I re-run this program?
Smoke
2001-07-11 08:09:01 UTC
Re: [CAD_CAM_EDM_DRO] Why can't I re-run this program?
Alan Marconett KM6VV
2001-07-11 10:49:29 UTC
RE: Why can't I re-run this program?
Alan Marconett KM6VV
2001-07-11 12:11:59 UTC
RE: Why can't I re-run this program?
Jon Elson
2001-07-11 20:20:59 UTC
Re: [CAD_CAM_EDM_DRO] RE: Why can't I re-run this program?
Jon Elson
2001-07-11 20:32:56 UTC
Re: [CAD_CAM_EDM_DRO] RE: Why can't I re-run this program?
Alan Marconett KM6VV
2001-07-11 21:49:11 UTC
RE: Why can't I re-run this program?
Ray
2001-07-12 06:50:59 UTC
Re: Why can't I re-run this program?
Ray
2001-07-12 06:51:14 UTC
RE: Why can't I re-run this program?
Jon Elson
2001-07-12 11:11:09 UTC
Re: [CAD_CAM_EDM_DRO] RE: Why can't I re-run this program?
Alan Marconett KM6VV
2001-07-12 12:39:47 UTC
RE: Why can't I re-run this program?
Alan Marconett KM6VV
2001-07-12 13:25:00 UTC
RE: Why can't I re-run this program?