Re: [Emc-users] gear shift component

2008-04-28 Thread Kenneth Lerman
Stuart, You might consider combining the ls1 - ls5 into a single variable. I assume that those variables represent components of a state. You might then be able to give the various values meaningful names. That would make the code easier to read and maintain. Ken - Original Message

Re: [Emc-users] CNC Fest

2008-04-28 Thread Kenneth Lerman
Sure. Feel free to host a CNC Festival. Then all you will need is people to attend it. I would guess that you would have about as many attendees from the US as we will have attendees from Brazil at the US CNC Fest. Unfortunately, the economics of travel between the US and Brazil is not

Re: [Emc-users] Watchdogs

2008-04-28 Thread Kenneth Lerman
Does anyone use a single chip solution consisting of a single 8 pin microprocessor? An Atmel atTiny13 is $1.40 in an 8 pin dip package. These chips power up nicely, require no external oscillator, and are easy to program. If you don't trust them, get two. Use one to drive the high side of the

Re: [Emc-users] VFD Interference

2008-04-22 Thread Kenneth Lerman
To the best of my knowledge, there has been no attempt to optimize the performance of the interpreter. If there is strong feeling that this might be a problem, I suspect that it could be improved significantly. My general experience with products that have never been optimized is that a factor

Re: [Emc-users] VFD Interference

2008-04-22 Thread Kenneth Lerman
I believe Axis runs the entire program at load time. The interpreter does read and interpret ahead, but I don't know how far or what the limits are. Ken - Original Message - From: Andre' Blanchard [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net

Re: [Emc-users] touchscreen cycle start

2008-04-22 Thread Kenneth Lerman
I would suggest adding a touchscreen disable button that would disable other buttons until enabled. For the paranoid among us that could be a mechanical switch. Ken - Original Message - From: Stuart Stevenson [EMAIL PROTECTED] To: EMC2-Users-List Emc-users@lists.sourceforge.net Sent:

Re: [Emc-users] best cnc tool-holder system

2008-04-15 Thread Kenneth Lerman
Why are you considering moving to such a system? Would the Tormach tool holders meet those requirements? Ken - Original Message - From: rtwas [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Tuesday, April 15, 2008 12:37 PM Subject:

Re: [Emc-users] Jogger wheel + switches

2008-03-24 Thread Kenneth Lerman
If you put a little DC bias into the stepper coils, you might be able to vary the detent action to suit the user. Ken - Original Message - From: Ormund Williams [EMAIL PROTECTED] To: emc-users@lists.sourceforge.net Sent: Monday, March 24, 2008 8:29 PM Subject: Re: [Emc-users] Jogger

Re: [Emc-users] newb question: multiple cnc program over multiple*.ngc files

2008-03-21 Thread Kenneth Lerman
The latest code for o-word subroutines permits multiple files to be used. If the called o-word has not been seen in the current file, the interpreter will look for a file named the same as the o-word with a suffix of .ngc. The interpreter will look in the location specified by the

Re: [Emc-users] newb question: multiple cnc programover multiple*.ngc files

2008-03-21 Thread Kenneth Lerman
? Dave On Mar 21, 2008, at 10:00 AM, Kenneth Lerman wrote: The latest code for o-word subroutines permits multiple files to be used. If the called o-word has not been seen in the current file, the interpreter will look for a file named the same as the o-word with a suffix of .ngc

Re: [Emc-users] Emc-users Digest, Vol 23, Issue 44

2008-03-19 Thread Kenneth Lerman
There are a few ways to get things like, The message needs to be changed... done. 1 -- Become a developer and make the change yourself. 2 -- Submit a patch for inclusion by a developer. 3 -- Submit either a feature request or a bug report via sourceforge. Mentioning it on this list might cause

Re: [Emc-users] Running EMC2 from another, local app

2008-03-11 Thread Kenneth Lerman
Jon, Don't confuse the telnet daemon with the telnet tool. The tool lets you specify any port to connect to using tcp. So. telnet localhost 80 will connect the http server. telnet localhost 25 will connect to the mail server. Ken - Original Message - From: Jon Elson [EMAIL PROTECTED]

Re: [Emc-users] OT: C Data Type Problem

2008-02-12 Thread Kenneth Lerman
The function CRC16 is used before it is declared. Either move the definition of CRC16 to before main, or declare it separately prior to its use. I notice that you are using (very) old style declarations in that code. Modern coders would write: unsigned short CRC16(unsigned char *puchMsg,

Re: [Emc-users] Turning Polygons on Lathe

2008-02-11 Thread Kenneth Lerman
The hard part for them was finding someone who could read the broken english (chinglish, I assume) text with unaccented american english and avoid laughing. Ken - Original Message - From: Kirk Wallace [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC)

Re: [Emc-users] Changing parameters within repeat loop

2008-01-28 Thread Kenneth Lerman
I'm not sure what you mean by subroutines called with a repeat, but EMC can certainly do this. Ken - Original Message - From: Craig [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Monday, January 28, 2008 12:07 PM Subject: [Emc-users]

Re: [Emc-users] Ball screws + error compensation

2008-01-27 Thread Kenneth Lerman
- From: Gene Heskett [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Sunday, January 27, 2008 4:15 PM Subject: Re: [Emc-users] Ball screws + error compensation On Sunday 27 January 2008, Kenneth Lerman wrote: At 1080 feet per second, one wavlength

Re: [Emc-users] VFD Analog Frequency Inputs

2008-01-27 Thread Kenneth Lerman
Are you sure that the 0 and +10 terminals are relative to ground? Or are they relative to each other? If they are relative to each other, it certainly could do some harm to connect the DAC directly to the Vin terminal of the VFD. As in -- smoke the DAC, smoke the VFD, smoke both. Ken -

Re: [Emc-users] G-code subroutines

2007-12-26 Thread Kenneth Lerman
Subroutines may CALL one another, but may not be defined within another. So... o100 sub o100 endsub o200 sub o200 endsub is legal. o100 sub o200 sub ... o200 endsub o100 endsub is NOT legal (subroutine declarations may not be nested). Ken - Original Message - From: Ian

Re: [Emc-users] DAC HAL Component Problems

2007-12-23 Thread Kenneth Lerman
I took a quick look at your code... case 3: dacclock=0; if (cycle=12) { cycle=0; } phase=0; cycle++; break;Should be: case 3: dacclock=0; if (cycle=11) { cycle=0; }else cycle++;

Re: [Emc-users] g98/g99

2007-12-03 Thread Kenneth Lerman
I'm getting close to having time and a machine to do some development work on. My long list includes the ability to add complex cycles by writing g-code subroutines to implement them. At the user level, they would be used exactly as if they were built in to the interpreter. Ken -

Re: [Emc-users] rs232 output

2007-11-30 Thread Kenneth Lerman
One problem is that the interpreter is asynchronous to the execution. I believe that someone (Alex Joni, perhaps) added something to allow you to make sure that the output had caught up with the interpreter. Off hand, I don't remember what that was. Ken - Original Message - From:

Re: [Emc-users] Run Macro in Axis

2007-11-09 Thread Kenneth Lerman
Unfortunately, it is not possible to run gcode subroutines from MDI mode. I hope to fix that in the future. That would let you do things like: Ofind_center call in the mdi window. Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (888)ISO-SEVO (888)476-7386

Re: [Emc-users] Ethernet I/O

2007-11-01 Thread Kenneth . Lerman
Do those ARM processors include floating point? My guess is not. Those 70+ MIPs might not go as far as you think if you have to do floating point in software. I'd rather not go to the alternative of converting everything to fixed point. Ken On Tue, Oct 30, 2007 at 12:31:18PM -0600, Jon Elson

Re: [Emc-users] Ethernet I/O

2007-10-29 Thread Kenneth Lerman
06470Fax: (203)426-9138 http://www.MarkKenny.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jon Elson Sent: Sunday, October 28, 2007 10:44 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Ethernet I/O Kenneth

Re: [Emc-users] Ethernet I/O

2007-10-29 Thread Kenneth Lerman
The issue is at the PC end. In the past, parallel ports have been used, but it takes about a microsecond per byte to output to them. Ethernet has the advantage is that the controllers are PCI based and are a lot faster. Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street

Re: [Emc-users] Ethernet I/O

2007-10-29 Thread Kenneth Lerman
Is 100BaseT ethernet full duplex? (I think it is.) In principle, one could make a hub (not technically a hub) that daisy chained cables. So, the master would output to slave 1 abd input from slave N. Slave 1 would input from the master and output to slave 2. Slave 2 would input from slave 1 and

Re: [Emc-users] Ethernet I/O

2007-10-28 Thread Kenneth Lerman
For me, the issue of RTnet is irrelevant. I would, instead, just want to use the Linux driver. If we can get that to generate and receive ethernet frames in real time, we are in business. Then we could let the PC be a master and any peripherals be slaves. In the case of the UPC board, there

Re: [Emc-users] HNC Lathe Spindle Sync Motion

2007-10-15 Thread Kenneth Lerman
I don't know what a K word does, but the interpreter allows only one per block. The interpreter reads the block, storing all of the words in a table, and then interprets it. The order of words in a block in not generally relevant. The K word could be first, or last, or anywhere in the block. Ken

Re: [Emc-users] Re C programming and tuneup/PID HELP. (Kirk Wallace)

2007-10-12 Thread Kenneth Lerman
Hello Aram, It's a great world we live in when we can communicate even though we don't agree on how many letters in the alphabet. :-) I don't think the problem is quite that simple. For example, your approach doesn't take tool length or diameter compenstation into account. I don't think we would

Re: [Emc-users] Comparison operators

2007-10-04 Thread Kenneth Lerman
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?AdditionalGCodeFunctionality The above link points to a page that defines this stuff. Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (888)ISO-SEVO (888)476-7386 Newtown, CT 06470Fax:

Re: [Emc-users] C programming and tuneup/PID HELP.

2007-10-03 Thread Kenneth Lerman
What G codes would you like to add? Many new G code functions could be implemented by using subroutines. That would save a lot of effort. Of course, you would not have compatiblity with other controllers that would use that G code. I have intentions to add the ability for an integrator to

Re: [Emc-users] G100+emc2

2007-09-10 Thread Kenneth Lerman
I would suggest that what you need is a way to set the MAC address; not the IP address. Then you could set the IP address by using DHCP. You could also use TFTP to download the code to it using onboard boot flash. It's a bit more work (particularly in small volume), but the MAC address could also

Re: [Emc-users] Interactive machining

2007-08-21 Thread Kenneth Lerman
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

Re: [Emc-users] Interactive machining

2007-08-20 Thread Kenneth Lerman
Do you mean something like: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?G-Wiz The idea of this is that a GUI would let you generate calls to predefined gcode subroutines. Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (888)ISO-SEVO (888)476-7386 Newtown, CT

Re: [Emc-users] Interactive machining

2007-08-20 Thread Kenneth Lerman
EMC has most of the functionality shown on the link you provided. Language Features YES ? Local Variables for passing parameters and for intermediate calculations within a macro YES ? Common Variables shared by all macros ??? ? Permanent Common Variables that keep their values even

Re: [Emc-users] Macro Language

2007-08-17 Thread Kenneth Lerman
Fenn, See my recent reply to this list regarding o-words and named parameters. O-words provide programming language looping, testing, and subroutine capabilities that can be wrapped around other gcode. Named parameters let you have natural language names for parameters. [Sorry it took so long

Re: [Emc-users] Proglem with EMC script - understandingerror message

2007-08-17 Thread Kenneth Lerman
Stephen, You got it more or less correct. Actually, the arguments to subroutines are expressions; not values. So, you can write: o100 call [25] [#1-17/2]. The brackets must be there to separate the expressions. Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice:

Re: [Emc-users] Macro Language

2007-08-17 Thread Kenneth Lerman
No... AFAIK, named o-words have not yet been implemented. -- At least not by me. Named parameters have been implemented by me. I expect to get a new machine to run ubuntu soon and will get back to developing EMC2 stuff. (My previous machine is now my telephone system.) Ken [EMAIL PROTECTED]

Re: [Emc-users] Macro Language

2007-08-15 Thread Kenneth Lerman
Hi Fenn, What is it that you imagined? Other than the fact that o-words are numeric (on my list of work to do is allowing them to be alphanumeric), what else would you like? Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (888)ISO-SEVO (888)476-7386 Newtown,

Re: [Emc-users] OT Encoder Question

2007-08-03 Thread Kenneth Lerman
You might try posting the question on CNCzone (www.cnczone.com). Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (888)ISO-SEVO (888)476-7386 Newtown, CT 06470Fax: (203)426-9138 http://www.MarkKenny.com -Original Message-

Re: [Emc-users] Getting arcs as G2/G3 moves in g-code?

2007-08-01 Thread Kenneth Lerman
The probing stuff is on my list of things to do when I get the chance. It is not rocket science. (Which is another way of saying that it is within my skill set. :-) KL [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (888)ISO-SEVO (888)476-7386 Newtown, CT 06470

Re: [Emc-users] Keys

2007-07-31 Thread Kenneth Lerman
I thought that the keys we submit are our *public* keys. Am I mistaken? If that is the case, there is no need for them to be secure. For someone to masquerade as a legitimate user, they would need our *private* keys. It is our individual responsibility to safeguard those. I suggest that anyone

Re: [Emc-users] SECONDED: Ray Henry

2007-07-31 Thread Kenneth Lerman
[EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (888)ISO-SEVO (888)476-7386 Newtown, CT 06470Fax: (203)426-9138 http://www.MarkKenny.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alex Joni

Re: [Emc-users] elections

2007-07-29 Thread Kenneth Lerman
Todd, A nice thing about the open development model is that anyone can make sure safe control theory is used. Any time you feel that the design or implementation is not as safe as you would like it, feel free to submit a safer design or implementation. This group is quite open minded. -- But not

Re: [Emc-users] scaling G code

2007-06-08 Thread Kenneth Lerman
If you are going to do that, it shouldn't be a translation matrix; it should be a transform matrix. That would be a general affine transformation. That would provide translation, rotation, and skew. So, if your X and Y axes weren't exactly perpendicular, that could be corrected. We might want to

Re: [Emc-users] bad character in G code file

2007-04-18 Thread Kenneth Lerman
Chris, The meta problem is that the error handling from the interpreter is terrible. Now that I've modified the interpreter to let messages have content other than fixed strings, I can fix this. I would like the interpreter to output a message that looks like: Bad character near line 79

Re: [Emc-users] bad character in G code file

2007-04-18 Thread Kenneth Lerman
Of Chris Radek Sent: Wednesday, April 18, 2007 11:02 AM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] bad character in G code file On Wed, Apr 18, 2007 at 10:42:48AM -0400, Kenneth Lerman wrote: I would like the interpreter to output a message that looks like: Bad character near

Re: [Emc-users] Fwd: latching push button

2007-04-18 Thread Kenneth Lerman
What language is this written in? Why should it not be run thru the comp pre-processor? on-off is NOT a legal C variable name. (I don't know if it is acceptable to comp. I wouldn't think so -- or more precisely, I wouldn't think that comp would convert it to something acceptable by a C

Re: [Emc-users] slow down spans

2007-03-31 Thread Kenneth Lerman
The interpreter will not allow a command that is beyond the soft limit. The trajectory planner assures that there is (essentially) no overshoot of a commanded position. Therefore, there is no need to have a slow zone. If, on the other hand, the software is not trustworthy, hardware limit

Re: [Emc-users] Gang Lathe

2007-02-15 Thread Kenneth Lerman
Me, too. I'm looking at converting my lathe to a CNC gang lathe (sort of like the Omniturn). I will use EMC for it. By the time I'm done, I will be able to do what you suggest. (I don't know the current state). Since I've just begun collecting parts, though, I can't say when I'll be done. :-(

Re: [Emc-users] axis python interface

2007-02-01 Thread Kenneth Lerman
The interpreter parses the gcode on the fly. So there is no need to parse the entire file before cutting metal. I suspect the slowness that you are concerned about is the time for Axis to parse and display the file when a new file is loaded. I don't know if Axis has a way to disable the preview

[Emc-users] An Alternative Syntax

2006-12-31 Thread Kenneth Lerman
Please see: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?AlternativeNamedParameterSyntax I've written this after a discussion on IRC last night (EST). Some comments (paraphrasing) that were made: 1 -- Why don't we just use a real language, instead? 2 -- All those '$' characters are confusing

Re: [Emc-users] Command-line interface to EMC2

2006-12-29 Thread Kenneth Lerman
Why python? If it is because you already know python, then I'd suggest you start by examining AXIS. My guess is that everything you need is in there. [Sort of like making a sculpture of a horse. Take a piece of stone and remove everything that isn't a horse.] :-) I'm sure that cradek and jepler

Re: [Emc-users] Group buy?

2006-12-22 Thread Kenneth Lerman
As a satisfied customer of Jon's, I thought I'd put in my two cents to say that I've been very pleased with the operation and support of Jon's products. Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (203)426-7166 Newtown, CT 06470

Re: [Emc-users] Group buy?

2006-12-21 Thread Kenneth Lerman
Why don't *you* direct your energy in making EMC more user friendly instead? Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (203)426-7166 Newtown, CT 06470Fax: (203)426-9138 http://www.MarkKenny.com -Original

Re: [Emc-users] Mesa m5i20 PWM frequency ?

2006-12-16 Thread Kenneth Lerman
I think Jon means that the inductors would have a larger inductance; not that they would have to handle more current. Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (203)426-7166 Newtown, CT 06470Fax: (203)426-9138

Re: [Emc-users] DIY closed-loop VFD ?

2006-12-11 Thread Kenneth Lerman
My understanding is that you would just set the speed with the vfd and assume that will be close enough. Then you would use the encoder to measure the actual speed and phase lock to it for the purpose of driving the Z axis when ridgid tapping. If you wanted to control the speed more precisely,

<    1   2   3