Re: [Emc-users] C Style Extensions for GCode

2010-04-08 Thread Flying Electron Inc
Glad the tool might be of use to you! There was indeed a problem with the postfix -- operator. I made the fix and v1.01 is available for download at http://tsemsb.blogspot.com/2010/04/cgcc-now-at-version-101.html As of now the assignment operators like -= or += are not implemented, however the l

Re: [Emc-users] C Style Extensions for GCode

2010-04-08 Thread Erik Christiansen
On Wed, Apr 07, 2010 at 07:31:11AM -0700, dave wrote: > On Wed, 2010-04-07 at 08:45 -0400, Kent A. Reed wrote: > > > > Use magic file extensions if you must but please don't make them > > mandatory. That's a "convenience" that has driven me mad in the M$ world. > > > > Regards, > > Kent > > >

Re: [Emc-users] C Style Extensions for GCode

2010-04-08 Thread Thomas Powderly
Lawrence, thanks for a nice tool in CGCC i ran the example and found i needed to create a directory ~/GCode2 and then needed to put the CGCC directory in there under my Ubuntu, the cgcc.err file wasn't able to be rm'd but that may be local permissions on my system I understand your code better a

Re: [Emc-users] C Style Extensions for GCode

2010-04-07 Thread Flying Electron Inc
Thanks for all the comments about CGCC! Lots of different ways to skin a cat. Lots of different languages that can be used to generate GCode too. I don't think any one language is better then any other. I added a new page with more information on what CGCC can actually do http://tsemsb.blogspo

Re: [Emc-users] C Style Extensions for GCode

2010-04-07 Thread Dave Hylands
On Tue, Apr 6, 2010 at 7:56 PM, Unfocused Brain wrote: > > Using an existing language is the approach I used. > > I wrote a simple library for PHP, BASIC and JavaScript. Integrating any > language into the EMC2 user interface is trivial. Generating useful > G-Code is the real trick. > > Here is a

Re: [Emc-users] C Style Extensions for GCode

2010-04-07 Thread dave
On Wed, 2010-04-07 at 08:45 -0400, Kent A. Reed wrote: > > > > Date: Wed, 7 Apr 2010 10:04:27 +0200 > > From: Bernhard Kubicek > > Subject: Re: [Emc-users] C Style Extensions for GCode > > To: "Enhanced Machine Controller (EMC)" > > > > it is

Re: [Emc-users] C Style Extensions for GCode

2010-04-07 Thread Mark Wendt
efull features, e.g. the filtering in emc. > > > > On Wed, Apr 7, 2010 at 2:45 PM, Kent A. Reed wrote: > >>> >>> Date: Wed, 7 Apr 2010 10:04:27 +0200 >>> From: Bernhard Kubicek >>> Subject: Re: [Emc-users] C Style Extensions for GCode >>

Re: [Emc-users] C Style Extensions for GCode

2010-04-07 Thread Bernhard Kubicek
27 +0200 > > From: Bernhard Kubicek > > Subject: Re: [Emc-users] C Style Extensions for GCode > > To: "Enhanced Machine Controller (EMC)" > > > > it is quite obvious that a good incooporation to emc would be: > > 1) give them a specific file extenions

Re: [Emc-users] C Style Extensions for GCode

2010-04-07 Thread Kent A. Reed
> > Date: Wed, 7 Apr 2010 10:04:27 +0200 > From: Bernhard Kubicek > Subject: Re: [Emc-users] C Style Extensions for GCode > To: "Enhanced Machine Controller (EMC)" > > it is quite obvious that a good incooporation to emc would be: > 1) give them a specific file

Re: [Emc-users] C Style Extensions for GCode

2010-04-07 Thread Bernhard Kubicek
it is quite obvious that a good incooporation to emc would be: 1) give them a specific file extenions eg : .cgc 2) have your filter expect the code from standard input e.g. std:cin 3) use the Filter section in theconfig/devicename.ini to form a connection between your extension and the converter 4)

Re: [Emc-users] C Style Extensions for GCode

2010-04-07 Thread Sven Wesley
Me like! 2010/4/7 Flying Electron Inc > 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: >

Re: [Emc-users] C Style Extensions for GCode

2010-04-06 Thread Unfocused Brain
Using an existing language is the approach I used. I wrote a simple library for PHP, BASIC and JavaScript. Integrating any language into the EMC2 user interface is trivial. Generating useful G-Code is the real trick. Here is a link to the basic version: http://www.unfocusedbrain.com/projects/20

Re: [Emc-users] C Style Extensions for GCode

2010-04-06 Thread Neil Baylis
This is a very powerful extension, but I'm wondering if it's the best approach. Rather than coming up with a new meta-language for creating G Codes, why not just add a statement that runs an external program that outputs G Codes? That way, you can write the program in any language you like, make us

Re: [Emc-users] C Style Extensions for GCode

2010-04-06 Thread sam sokolik
well - that is just cool! Nice work sam Flying Electron Inc wrote: > 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

[Emc-users] C Style Extensions for GCode

2010-04-06 Thread Flying Electron Inc
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_Hol