CAD CAM EDM DRO - Yahoo Group Archive

RE: Why can't I re-run this program?

on 2001-07-11 12:11:59 UTC
Hi Ray,

Thanks for the comments. I'm mostly interested in "adopting" a simple,
"hobbyist" subset of the Gcode commands, as I'd like to run part code on
more then one controller. I'm not really hand coding, I like to rely on
Vector CAD/CAM to generate the code for me. I guess the "programmer" in
me wants to think about reusable code, modularity, ease of
understanding, etc.

I was also wondering about conditional statements; if we have labels for
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"?

Translators might be a good idea!

Alan KM6VV


Ray wrote:
>
> From: Jon Elson <elson@...>
> Subject: Re: RE: Why can't I re-run this program?
>
> >Alan Marconett KM6VV wrote:
> >
> >> Hi Ray, Tim,
> >>
> >> I've been studying the recent posts on stopping, I.E. M02 & M30, and
> >> also reading CNCpro's, and FlashCut's doc's. I under stand that there
> >> are variations in Gcode!
>
> >EMC does not now have subroutines. This is a major drawback for those
> >writing code by hand. I think there has been a TCL hack that makes the
> >GUI trick the system into doing subroutines.
>
> Jon is correct that EMC's g-code - RS-274NGC - does not support subroutines.
> He is also correct about the hacked code. I wrote a little Tcl/Tk code that
> will take g-code files and treat them as subroutines within a master
> program. It is not exactly easy to use but it's under the scripts menu if
> you are using tkemc.
>
> >> I was hoping to find a common denominator (majority vote) for doing
> >> subroutines. ;>)
> >>
> >> A common method of doing variables would also be nice!
>
> >If it wasn't part of the RS-274D spec, then every control manufacturer
> >was left to figure out a syntax on his own.
>
> And even if it was a part of the RS-274 documents, there was no
> required enforcement of the language. RS is an acro-whatever for
> recommended standard. I doubt that our vote will carry much weight with
> the big control making companies!
>
> Perhaps we should see this an an economic opportunity and write
> dictionaries and sell translators.
>
> 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?