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

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

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

2010-04-07 Thread Sven Wesley
Me like! 2010/4/7 Flying Electron Inc sa...@flyingelectron.com 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

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

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 bernhard.kubi...@gmail.com 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 eg : .cgc

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

2010-04-07 Thread Bernhard Kubicek
: Bernhard Kubicek bernhard.kubi...@gmail.com 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 eg : .cgc 2) have your filter expect the code from

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

2010-04-07 Thread Mark Wendt
in emc. On Wed, Apr 7, 2010 at 2:45 PM, Kent A. Reedknbr...@erols.com wrote: Date: Wed, 7 Apr 2010 10:04:27 +0200 From: Bernhard Kubicekbernhard.kubi...@gmail.com Subject: Re: [Emc-users] C Style Extensions for GCode To: Enhanced Machine Controller (EMC) it is quite obvious that a good

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 bernhard.kubi...@gmail.com Subject: Re: [Emc-users] C Style Extensions for GCode To: Enhanced Machine Controller (EMC) it is quite obvious that a good incooporation

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 r...@unfocusedbrain.com 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

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

[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

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 to

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

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: