Re: [Emc-users] Archived discussion of IRC link - broken

2012-02-01 Thread andy pugh
On 1 February 2012 05:24, BRIAN GLACKIN glackin.br...@gmail.com wrote: http://www.linuxcnc.org/irc/irc.freenode.net:6667/emc/ and results in Not Found I don't think that the IRC archive has worked for quite a long time. There are a couple of private chatbots archiving the IRC, but I am not

Re: [Emc-users] rs274ngc bison/flex parser

2012-02-01 Thread Erik Christiansen
On 01.02.12 00:05, Michael Haberler wrote: ok, while this wonderful discussion was raging on, I built a working parser for the current linuxcnc dialect, as an experiment in feasability (this is NOT an end-user tool!) It would take all the fun out of it, if it were. :-) Before using the debug

Re: [Emc-users] question on gcode parsing

2012-02-01 Thread Erik Christiansen
On 31.01.12 21:45, dave wrote: To my uncluttered mind ... read blank ... is this a good way to set the state of a machine at any given line as a precursor to restart from line no? IIUC¹, running an interpreter through the code from line 1 to a given line, with all external actions

Re: [Emc-users] rs274ngc bison/flex parser

2012-02-01 Thread Michael Haberler
Erik, Am 01.02.2012 um 09:23 schrieb Erik Christiansen: On 01.02.12 00:05, Michael Haberler wrote: (1) The grammar specifies expression and control flow constructs, but seems 100% devoid of any explicit gcode grammar. I've scrolled up and down twice now, but still can't see any rapids,

Re: [Emc-users] rs274ngc bison/flex parser {was: question on gcode parsing}

2012-02-01 Thread Michael Haberler
See for example the interesting pycparser project at http://code.google.com/p/pycparser. It uses clang/llvm : http://eli.thegreenplace.net/2011/07/03/parsing-c-in-python-with-clang/ which is a bit on the heavy side for the task at hand, but I already used pycparser successfully to aid

Re: [Emc-users] rs274ngc bison/flex parser

2012-02-01 Thread Erik Christiansen
On 01.02.12 11:48, Michael Haberler wrote: Am 01.02.2012 um 09:23 schrieb Erik Christiansen: The grammar specifies expression and control flow constructs, but seems 100% devoid of any explicit gcode grammar. I've scrolled up and down twice now, but still can't see any rapids, moves,

Re: [Emc-users] rs274ngc bison/flex parser

2012-02-01 Thread andy pugh
On 1 February 2012 14:36, Erik Christiansen dva...@internode.on.net wrote: because having a documented grammar in the parser would only allow run-time _extending_the_rs274ngc_interpreter_by_remapping_codes. It would only permit remapping of standard gcodes by changing the grammar. But the

Re: [Emc-users] question on gcode parsing

2012-02-01 Thread Michael Haberler
Another interesting related trawling find, with a some ideas for syntax evolution: A G code precompiler which parses a language based on C control structures, and generates rs274ngc gcode for LinuxCNC (including O-word constructs etc). It's by a fellow named Lawrence Yu, and its based on

Re: [Emc-users] Passing file names into a subroutine

2012-02-01 Thread Michael Haberler
this works: 1234.ngc --- O1234 sub (debug,in 1234.ngc, p1=#1 p2=#2 p3=#3) O1234 endsub m2 - in MDI/code do this: #1 = 1234 ; 'filename' - must be a number though O#1 call [47] [11] [15] - Michael Am 01.02.2012 um 16:01 schrieb BRIAN GLACKIN: Hi all. I tried to ask this

Re: [Emc-users] rs274ngc bison/flex parser

2012-02-01 Thread Michael Haberler
Am 01.02.2012 um 13:36 schrieb Erik Christiansen: On 01.02.12 11:48, Michael Haberler wrote: Am 01.02.2012 um 09:23 schrieb Erik Christiansen: The grammar specifies expression and control flow constructs, but seems 100% devoid of any explicit gcode grammar. I've scrolled up and down twice

Re: [Emc-users] Back to isolcpus=1, again...

2012-02-01 Thread Tom Easterday
Gene, I too see a big improvement in overall system performance by using taskset to move linuxcnc to the idle core (I am running 2.5.0-pre2 built from source). Out of curiosity how much cpu does Axis use on your machine? While running Axis I am using about 60% of the second core. I don't

Re: [Emc-users] question on gcode parsing

2012-02-01 Thread Alan Condit
I have been working for sometime on a subset of RS274ngc parser. I have a program on my Mac which reads a dxf file and converts it to RS274ngc and allows you to invoke some wizards along with it. The purpose of my parser is to re-read the RS274ngc files I create an allow them to be edited and

Re: [Emc-users] Passing file names into a subroutine

2012-02-01 Thread Dewey Garrett
And another way that works with ngcgui (files tst2.ngc,1.ngc,2.ngc must be in [RS274NGC]SUBROUTINE_PATH) $ cat tst2.ngc otst2 sub #partno = #1 (=1 partno) #value= #2 (=123) o#partno call [#value] otst2endsub $ cat 1.ngc o1 sub #thevalue = #1 (debug, this is part1

Re: [Emc-users] Passing file names into a subroutine

2012-02-01 Thread Kirk Wallace
On Wed, 2012-02-01 at 10:01 -0500, BRIAN GLACKIN wrote: ... snip What I would like avoid constantly cutting and pasting code (or filenames) into my parts program subroutine. I thought I could send via the subroutine a fourth value with the file name. The thought being that I can have a series

[Emc-users] Fear and Loathing on the Internet

2012-02-01 Thread Matt Shaver
I confess that I don't read the mailing lists, or IRC on a regular basis. This morning I was searching the user's list for some information when I came upon the thread about the name change. I had made some early comments on this subject, then paid no more attention. After reading some of the

Re: [Emc-users] question on gcode parsing

2012-02-01 Thread dave
On Wed, 1 Feb 2012 19:34:09 +1100 Erik Christiansen dva...@internode.on.net wrote: On 31.01.12 21:45, dave wrote: To my uncluttered mind ... read blank ... is this a good way to set the state of a machine at any given line as a precursor to restart from line no? IIUC¹, running an

Re: [Emc-users] Back to isolcpus=1, again...

2012-02-01 Thread Ed Nisley
On Wed, 2012-02-01 at 10:59 -0500, Tom Easterday wrote: run the latency-test on the idle core AND run glxgears there (using taskset to move it too), my latency is very bad. That makes perfect sense: the video involved in glxgears locks out interrupts for protracted periods, so running it on the

Re: [Emc-users] Passing file names into a subroutine

2012-02-01 Thread BRIAN GLACKIN
THanks Michael and Dwey, I think I failed to properly code the individual part files and that is the probable error. I will pluck away at it this evening and try again. Kurt, While that is one option, I am usually cutting out of a sheet of wood. I have a higher level routine that I pass the

Re: [Emc-users] Fear and Loathing on the Internet

2012-02-01 Thread Sebastian Kuzminsky
On Feb 1, 2012, at 09:13 , Matt Shaver wrote: What I can offer is to be the defendant of any lawsuits against the project. Any entity, like EMC Corporation, who feels they have a claim against the project can feel free to sue me if they like. And if anyone has electronic equipment (such as

[Emc-users] Simulator based on Ubuntu 11.10 Oneiric

2012-02-01 Thread Sven Wesley
Gentlemen (I've asked before, here are no women), Anders Wallin got the simulator running within 11.10, and I made it as well by some slight changes to Anders guide. I wrote it all down at the wiki: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Build_A_Simulator_Manually And made a demo case here:

Re: [Emc-users] Control a hot wire foam cutter using LinuxCNC?

2012-02-01 Thread Andy Pugh
On 1 Feb 2012, at 19:03, Peter Georgi georg...@bluewin.ch wrote: I found the file with the patch from Lothar and downloaded it. So far so good. But I do not have any idea how to install it. Is their any procedure or just copy it into the Axis directory and rename it? I am in a hotel on my

Re: [Emc-users] question on gcode parsing

2012-02-01 Thread Kenneth Lerman
On 01/31/2012 11:14 PM, Erik Christiansen wrote: On 30.01.12 07:54, Kenneth Lerman wrote: On 01/30/2012 12:28 AM, Erik Christiansen wrote: What is being missed here is that the present parser does all that you fear above, just without the maintainability and documentation benefits conferred

Re: [Emc-users] question on gcode parsing

2012-02-01 Thread Kenneth Lerman
On 02/01/2012 03:34 AM, Erik Christiansen wrote: On 31.01.12 21:45, dave wrote: To my uncluttered mind ... read blank ... is this a good way to set the state of a machine at any given line as a precursor to restart from line no? IIUC¹, running an interpreter through the code from line 1 to a

Re: [Emc-users] Passing file names into a subroutine

2012-02-01 Thread Kenneth Lerman
On 02/01/2012 10:01 AM, BRIAN GLACKIN wrote: Hi all. I tried to ask this question on IRC last eve and had trouble staying in channel. equipment - 25 X 49 X 4 gantry router for wookwork - all cutting is 2.5D I have a subroutine o100 that at present, I pass three values too Value 1 is the

Re: [Emc-users] rs274ngc bison/flex parser

2012-02-01 Thread Kenneth Lerman
On 02/01/2012 10:45 AM, Michael Haberler wrote: Am 01.02.2012 um 13:36 schrieb Erik Christiansen: On 01.02.12 11:48, Michael Haberler wrote: Am 01.02.2012 um 09:23 schrieb Erik Christiansen: The grammar specifies expression and control flow constructs, but seems 100% devoid of any explicit

Re: [Emc-users] Simulator based on Ubuntu 11.10 Oneiric

2012-02-01 Thread Yishin Li
On Thu, Feb 2, 2012 at 4:59 AM, Sven Wesley svenne.d...@gmail.com wrote: Gentlemen (I've asked before, here are no women), Anders Wallin got the simulator running within 11.10, and I made it as well by some slight changes to Anders guide. I wrote it all down at the wiki:

Re: [Emc-users] Passing file names into a subroutine

2012-02-01 Thread BRIAN GLACKIN
You can pass a numeric argument. Then: O#4 call ... Here is where I made a grammar error - I typed o#4 call [var1][var2] instead Got rid of the and it passed this point of the code. The second error is I failed to put o1 sub and o1 endsub around my code. BTW: That's another

Re: [Emc-users] Passing file names into a subroutine

2012-02-01 Thread andy pugh
On 2 February 2012 03:51, Kenneth Lerman kenneth.ler...@se-ltd.com wrote: BTW: That's another place where it would be nice to have variables with string values. Considering that C doesn't really do strings, adding them to G-code might be nontrivial. -- atp The idea that there is no such

Re: [Emc-users] Back to isolcpus=1, again...

2012-02-01 Thread gene heskett
On Thursday, February 02, 2012 01:54:13 AM Tom Easterday did opine: Gene, I too see a big improvement in overall system performance by using taskset to move linuxcnc to the idle core (I am running 2.5.0-pre2 built from source). Out of curiosity how much cpu does Axis use on your machine?