Ken, I strongly agree with you, you did a wonderful hack, adding a lot of functionality with a minimal amount of work. It was "the right thing to do", and the price sure is unbeatable :)
I learned programming back in 1976 in FORTRAN66 on an IBM 1130. At least, it was a high level language. RS274 is more like an assembler on which we add flow control and macros (this can be very efficient, as does Alan)..., the next step could be to write a compiler (which translate, as suggested by André, some kind of FORTRAN to RS274, then enter the road of structured programming with PASCAL_EMC, then OO, with RS274++ :) Or we can take lessons from the actual trends in computing, and just add bindings and specific classes to an *existing* OO language such as ruby, python, perl... python being a very good candidate. In that case, this will be EMC specific, but that is not a problem as long as RS274-NGC is still supported. It is NOT a replacement, it is an augmentation. Is it difficult, very difficult or extremely difficult to add an NML+HAL library to python? Michel -----Original Message----- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Kenneth Lerman Sent: mardi 21 août 2007 19:17 To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Interactive machining I disagree with the defenders who say it is not a kludge. It is a kludge. It was when I wrote it and it is now. The reason that these features must begin with an o-word is very simple. It made it easier to change the parser. The code simply tests if the line begins with an o-word. If it does, it calls a function that processes o-words. The change was simple and effective. I wrote that set of changes (call, if, then, else, while, return, endsub, do -- plus the expression changes -- eq, ne, le, lt, gt, ge) in about a week while I was on vacation. It IS free. If you don't like that syntax, please feel free to not use it. If you prefer a different syntax, please, please feel free to add it to the interpreter. I won't take offense. Really, I won't. It is a kludge. One of my better ones, I think. Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (888)ISO-SEVO (888)476-7386 Newtown, CT 06470 Fax: (203)426-9138 http://www.MarkKenny.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andre' Blanchard Sent: Tuesday, August 21, 2007 11:07 AM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Interactive machining At 08:11 AM 8/21/2007, you wrote: >On Tuesday 21 August 2007, mgouget wrote: > >Binding EMC2 to a *real* language seems an *excellent* idea to me. > > > > > > > >RS274 is an antique language. Adding O words, named parameters and special > >comments, although very useful when nothing else is available, is only a > >kludge... > > >I highly disagree with that word, its not a 'kludge' but simply is giving >RS274 the same looping and branching abilities the basic cpu is capable of. While it works and is way better then not having it and for the price it is great. I guess the main thing I don't get is, why the strange syntax, what would have been wrong with doing IF THEN and IF GOTO branches and WHILE loops like other CNC controls? IF[#105LE0.0]GOTO8998 IF[#110LE0]GOTO8998 (Do stuff) N8998 IF[]THEN#101=0.0005 WHILE[]DO1 (Do stuff) WHILE[]DO2 (Do stuff) WHILE[]DO3 (Do stuff) END3 END2 END1 I get the feeling that not much research is done into how this stuff has been done in the past. Why reinvent the wheel? __________ Andre' B. Clear Lake, Wi. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
