Hi All,

I wrote a python extension for axis that allows C language style extensions
to the GCode if anyone wants to give it a try.

http://tsemsb.blogspot.com/2010/04/cgcc-gcode-with-c-constructs.html

It allows you to write code like this:

// Constants
const float X_Holes = 10;
const float Y_Holes = 10;

// Loop
for (float y = 0; y < Y_Holes; y++) {
    for (float x = 0; x < X_Holes; x++) {
        if (x != y) {
            G00 Z1
            G00 X[x] Y[y]
            G01 Z0 F1
            G00 Z1
        }
    }
}

and it gets translated into regular GCode with o-words.

Lawrence
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to