Re: [Emc-users] Can I use arrays in gcode? I need to store surface profile data

2009-08-26 Thread Erik Christiansen
On Wed, Aug 26, 2009 at 12:34:14AM +0200, Andy Pugh wrote: 2009/8/26 Alan Battersby alan.batter...@ntlworld.com: So can someone suggest the best way of achieving my aim? Possibly Python? ie instead of having the cleverness in g-code, have it in a higher level language that produces

Re: [Emc-users] Can I use arrays in gcode? I need to store surface profile data

2009-08-26 Thread Kenneth Lerman
Here is my first guess at how I would do this: 1 -- First, I would enhance emc to support a new M code that took at least four arguments and returned at least one variable. Lets say M999 takes arguments N, X, Y, Z. N would be the name of an external program to run (say N=123, then ExtFn123

Re: [Emc-users] Can I use arrays in gcode? I need to store surface profile data

2009-08-26 Thread Erik Christiansen
On Wed, Aug 26, 2009 at 12:15:22PM +0100, Alan Battersby wrote: As to using Gawk etc, I am interested in the idea of reading depth information from a named pipe or something similar. In case it should come to that, I'll try to put together a simple example using named pipes. I can see they're

Re: [Emc-users] Can I use arrays in gcode? I need to store surface profile data

2009-08-26 Thread Stephen Wille Padnos
Kenneth Lerman wrote: Stephen Wille Padnos wrote: Kenneth Lerman wrote: Here is my first guess at how I would do this: 1 -- First, I would enhance emc to support a new M code that took at least four arguments and returned at least one variable. Lets say M999 takes arguments N, X, Y,

Re: [Emc-users] Can I use arrays in gcode? I need to store surface profile data

2009-08-26 Thread Kenneth Lerman
Stephen Wille Padnos wrote: Kenneth Lerman wrote: Here is my first guess at how I would do this: 1 -- First, I would enhance emc to support a new M code that took at least four arguments and returned at least one variable. Lets say M999 takes arguments N, X, Y, Z. N would be the

Re: [Emc-users] Can I use arrays in gcode? I need to store surface profile data

2009-08-26 Thread Stuart Stevenson
I know a couple people with probes. The probes stuff would be useful. :) On Wed, Aug 26, 2009 at 10:15 AM, Stephen Wille Padnos spad...@sover.netwrote: Kenneth Lerman wrote: Stephen Wille Padnos wrote: Kenneth Lerman wrote: Here is my first guess at how I would do this: 1 --

Re: [Emc-users] Can I use arrays in gcode? I need to store surface profile data

2009-08-26 Thread Alan Battersby
Kenneth Lerman wrote: Here is my first guess at how I would do this: 1 -- First, I would enhance emc to support a new M code that took at least four arguments and returned at least one variable. Lets say M999 takes arguments N, X, Y, Z. N would be the name of an external program to run

[Emc-users] Can I use arrays in gcode? I need to store surface profile data

2009-08-25 Thread Alan Battersby
Hi, I am writing a gcode generator to create paths for ornamental turning by simulating a rose engine. I have nearly completed the initial part and am now looking at one of my further aims which is to allow me to import a surface profile and then cut patterns following this profile. I have the