View Single Post
  #64   Report Post  
Posted to rec.crafts.metalworking
Bob La Londe Bob La Londe is offline
external usenet poster
 
Posts: 652
Default Some kind of macro system for G-codes, for linux

"Mike Henry" wrote in message
...

"Ignoramus7608" wrote in message
...
On 2010-07-23, Mike Henry wrote:

"Ignoramus24043" wrote in message
...
On 2010-07-22, Mike Henry wrote:

"Ignoramus21191" wrote in
message
...
Is there some Linux based macro system for generating G codes. Say, I
wanted to mill out a rectangular pocket, or drill a bolt hole pattern
etc. I would love to use a preprocessor like macro systems for
assemblers, or C preprocessor type thing that would be eared towards
CNC machining.

I can probably do something homegrown, but would prefer to find
something that is well thought out.

Writing text files with commands does fit my personality, but I woud
prefer to be able to create my own higher level commands.

i

Does EMC2 support conversational programming? Mach3 has what are
called
Wizards which are canned routines to do common tasks like the ones you
mention. You invoke one of them, which calls up a dialog box with
fields
for parameters for the pocket size/depth, hole size and pattern, etc.
You
fill those in and the Wizard generates the G-code for that task and
sends
the code to the controller. Maybe EMC2 has something similar.


I have not seen that sort of thing. It may exist, but I am unaware. I
have not even looked at that stuff yet.

i

Someone else mentioned that EMC2 has that capability through a utility
of
some sort - maybe the name was Axis? In Mach the Wizards are routines
that
can be programmed by users and made available for non-programmers to
use.
Mach uses some form of Basic, I think, but EMC2 is probably a little
more
advanced there.

Another advantage of Mach's Wizards is that the G-code from different
ones
can be concatenated to make a variety of features on a part. You can
use a
Wizard to surface the part to thickness, mill a circular pocket and then
drill a hole pattern for flange bolts. The G-code output from each
routine
gets added to that from each predecesor and you end up with one program
that
makes the entire part.

Mike



I think only the NFS Wizard does that directly (I thought it was a bug when
I discovered it by accident. LOL), but I have cut and pasted code together
from multiple wizards.