Maruis,

My last post was altered by the forum (lines were wrapped). This
made my example GCMC program look more complicated than it actually is.
So here it is again without the comments:
____________________________________
for( x = 0; x <= 10; x += 0.5 )
{
    for ( y = 0; y <= 4; y += 0.5 )
    {
        drill( [x, y, -0.5], 0.1, 0.1);
    }
}
____________________________________

Sorry,
Tony

-----Original Message----- 
From: Tony Zampini
Sent: Saturday, November 16, 2013 11:26 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] gcmc - v1.1.1

Marius,

You can think of GCMC as a "high level" gcode generator. It takes a lot of
the
drudgery out of writing gcode by hand. Here's a very
simple example: Let's say you are making a tooling plate, and you want
to drill a bunch of holes on a 0.5 inch grid. Let's say your grid covers
an area of 10 inches in the X direction and 4 inches in the Y direction.
This would result in 189 holes (21 in X, and 9 in Y). The following seven
lines of
GCMC code would do the job:
_______________________________________
for( x = 0; x <= 10; x += 0.5 )            // Step through each X from 0 to
10 inches, in 0.5 inch steps
{
    for ( y = 0; y <= 4; y += 0.5 )        // Step through each Y from 0 to
4 inches, in 0.5 inch steps
    {
        drill( [x, y, -0.5], 0.1, 0.1);    // Execute a drill cycle at
coordinates (X, Y), depth= -0.5, retract = 0.1 inches, peck amount = 0.1
inches
    }
}
_______________________________________
(The text that  begins with "//" are comments, and are not necessary for the
program. I
added them to explain what each statement does.)

The above 7 lines of GCMC code will generate 189 lines of gcode.

Once you learn the language, I think you can see that, for the example
above, GCMC
is definitely faster than writing the equivalent gcode by hand. And it's
probably
faster than setting up a CAM project in your typical CAM program.

Tony

-----Original Message----- 
From: Marius Liebenberg
Sent: Saturday, November 09, 2013 12:59 AM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] gcmc - v1.1.1

Hi Toni,
Please share with us a script of a component that you did. Also a bit of
a description of how your approach worked and how you think about these
jobs when you start them.
I think most of us will be able to program but this is a new way of
thinking and getting started is not that easy. Most of us think in Gcode
fashion and a kickstart to think in a nother fashion is what is needed.
Well at least for me.



On 2013/11/08 10:18 PM, Tony Zampini wrote:
> Bertho,
>
> Thank you for maintaining and improving GCMC. I'm finding it
> very useful and powerful. It makes it so easy to whip up quick
> machining operations. I can do things with GCMC that I simply
> can't do with my CAM program(CamBam). Don't get me wrong,
> I love CamBam, but GCMC provides a high-level way to do
> *anything* you want.
>
> Again, thank you for your efforts, and for providing us with this
> great program.
>
> Tony
>
> -----Original Message-----
> From: Bertho Stultiens
> Sent: Friday, November 08, 2013 10:30 AM
> To: Enhanced Machine Controller (EMC)
> Subject: [Emc-users] gcmc - v1.1.1
>
> Hi all,
>
> This new version allows index [] on vector- and vectorlist-variables to
> function as you'd expect. The syntax page has updated information and an
> example under the operator heading. This version also includes library
> functions in the tar-ball, a beginning of a test-framework and bugfixes.
>
> You can get it at:
> http://www.vagrearg.org/content/gcmc
> See the changes as noted on the page.
>
>
> If you have examples or tests you are willing to share, please let me
> know (on- or off-list). I'd be happy to include them. More examples
> means better understanding for all.
>
>

-- 
Regards / Groete

Marius D. Liebenberg
MasterCut cc
Cel: +27 82 698 3251
Tel: +27 12 743 6064
Fax: +27 86 551 8029
Skype: marius_d.liebenberg


---
This email is free from viruses and malware because avast! Antivirus
protection is active.
http://www.avast.com
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and
register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users 


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&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