On Wednesday 30 October 2013 12:01:53 Marius Liebenberg did opine:

> I downloaded, extracted, configured and maked it. Now what, I cant get
> any further than that. I like the idea and want to test it but you are
> going to have to give some small bit of guidance as to how we get to use
> it please.
> 
Needs an installer script written, so I ran it in place from the cli.

I ran it on the two test files, with cutter.gcmc being able to be executed 
on my mill, but arccw.test.gcmc failed.  Good sized radius error at end of 
the arc according to linuxcnc.

I think we need some docs too.  But the .ngc file it generated for 
cutter.gcmc as a demo was impressive, actually generating more ncg code 
than I expected.  No clue what it is, but it ran to completion in 
LCNC-2.5.3 as of yesterdays pull.

So I think we have the makings of another very useful tool once we have 
some instructive docs.

Thank you, Bertho.


> On 2013/10/30 01:47 PM, Bertho Stultiens wrote:
> > Hi all,
> > 
> > Every time I had to write a CNC-mill program using G-codes I got
> > annoyed by the archaic format and syntax. Especially when needing to
> > convert positional data from mil to mm, having recurring patterns and
> > then also trying to keep track of everything.
> > 
> > I looked for a meta compiler or generic pre-processor, but could not
> > find anything that satisfied me. Being able to program should be
> > "easy".
> > 
> > The G-Code Meta Compiler (gcmc) is just that, a scripting meta
> > language, using modern procedural paradigms and a context free
> > grammar, to generate G-code. It takes in a script and generates all
> > the movements.
> > 
> > Units can be assigned/attached to values to do metric/imperial
> > conversions automatically. A rich set of built-in functions for
> > G-codes and mathematical manipulations make it easy to keep track.
> > 
> > Variables are typed into integer/floating point (scalars), vectors and
> > vector-lists. You can define functions and use local variables.
> > Standard loop-control is performed using foreach/for/while/do-while
> > constructs as well as conditional execution with if/if-else
> > constructs.
> > 
> > The context-free grammar allows you to make sources more readable and
> > therefore more debug-able.
> > 
> > You can find the code at my git repository:
> >   https://gitorious.org/gcmc/gcmc
> > 
> > An example script can be found in the "tests" directory (cutter.gcmc)
> > and some preliminary documentation about the grammar and built-in
> > functions can be found in the doc directory (gcmc.txt).
> > 
> > Please note that the code is not entirely mature as of yet. However,
> > the basics should function properly and you are encouraged to use it
> > and take a look.
> > 
> > If you have any comments you are welcome to provide feedback.


Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)

Most people want either less corruption or more of a chance to
participate in it.
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to