Re: [Emc-users] Serial Encoders
On Mon, 2008-03-10 at 22:28 -0400, Stephen Wille Padnos wrote: Since you're convinced you want a quadrature encoder now, here's a link: :) http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=GH6102-ND I've used these before, and they're good, robust controls. They have detents (pretty good clicky ones), and the switch is also a pushbutton with a separate contact pair. They're good for setting something like spindle speed or FO, but probably not for something like a jogwheel (only32 counts per rev). At $20 each (probably less at non-DK distributors), I think they're a good deal. - Steve ($21 from the US Digikey) I like it. Plus the push to select feature is nice too. I am a little leery about the low counts per revolution. For eight bits of resolution, that would be, 256 bits per full scale/32 counts per rev. = 8 rev. In real use, is eight turns a bother? Actually, it might be safer. I did see this encoder: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=601VCS-ND at $30, with 128 counts = 2 turns, but no detent or select switch, though I suppose these could be added. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pwm-0-gen problems
On Mon, 2008-03-10 at 22:05 -0400, Gene Heskett wrote: ... snip I haven't even gotten that far, this is trying to use axis to enable it and 'spin' it by issueing the pwm and dir sigs. I don't have the outputs of Steve's card even connected to the spindle controller card yet, I'm at the point of trying to get the card to actually recognize that its supposed to do something, like run the relays etc. But there is nothing coming out of the pwm pin on the parport but a nice, solid at 50 mv, logic zero. I made a shot in the dark suggestion, sorry. I reread your first post. You have pwmgen.0.pwm connected to parport.0.pin-16-out, but Halmeter shows FALSE for both pins. I assume you had an RPM high enough for Halmeter to catch at least some of the pulses. Did you get anything from Halmeter for pwmgen.0.enable, pwmgen.0.value? I am guessing you have motion.spindle-speed-out connected to scale.X and then pwmgen.0.value, motion.spindle.on connected to pwmgen.0.enable and motion.spindle.forward and reverse connected to parport.0.pin-xx-out pins? I assume you meant the gcode S'number' command? Yes. I'm printing the hal manual right now. It might have a clue or 7, if I can recognize it when it bites me on the ankle. :) This is something that I configured the last time I ran stepconf, so theoretically, all I should have to do is hook it up and go unless theres a bug in stepconf or I have some duff hardware. These are pins that have not been previously utilized. Side note, this is a reversable motor and controller, and I was surprised to see that there isn't any provision for reversing it in axis. In manual mode, I think there should be a spindle feature on the screen with a CW icon, Stop, CCW icon, + and - buttons. I believe AXIS checks the configuration and shows only the buttons that are configured. Maybe by seeing if the .ini file(s) have a line with motion.spindle.forward, motion.spindle.reverse, etc. present or connected. F9, F10 should do CW and CCW also? Or do you mean reversing the signal settings? And I have used it in reverse a few times when sharpening a bit with a diamond wheel. However, with the A axis working so I can rotate the bit I'm sharpening accurately, I shouldn't have to do that any more. My brain is tapping out. Good luck. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pwm-0-gen problems
On Mon, Mar 10, 2008 at 10:05:12PM -0400, Gene Heskett wrote: This is something that I configured the last time I ran stepconf, so theoretically, all I should have to do is hook it up and go unless theres a bug in stepconf or I have some duff hardware. These are pins that have not been previously utilized. It looks like this is a bug in stepconf. An incorrect value is written for pwmgen.0.offset. When the sample calibration values shown in stepconf are used unaltered, it's necessary to enter an RPM number of around S156000 to get PWM output. For the time being, you can fix this by hand-calculating (or finding by trial-and-error) the right value and placing it in a custom.hal file. I intend to fix this for the next bugfix release of emc2. In that case, you'll be able to correct your .hal file simply by re-running stepconf. Jeff - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Spindle Index
If you make a disk, the number of slots per revolution will be limited to something like 30kHz/3k RPM = 10 Note the common thinko here: 3k RPM is not the same as 3k RPS. 3kRPM = 50 RPS, so if you assume 30 kcounts/sec, you have 3 Hz / 50 = 600 counts/rev to play with. *%$# it, I've been doing this all day. Thanks for correcting me. Someone might have taken it as being correct. Question everything seems to be good advise. Plus, writing out your units in equations. Or you could use the GNU 'units' program which is available for windows [1] or any linux distribution, [2] like so: $ units 30kHz/3krpm 1/rev * 600 I would think 50 slots per revolution would be plenty, making 200 quadrature counts per revolution, so with the correction, we go from being on the edge to being well within limits (10 kHz (?)). For Penance, I should build an encoder and test it. Let's see, a 3 disk is ~ 9 in circumference, 9/50 = .180 slot width, piece of cake. Although, I seem to remember someone has a bright yellow lathe with a disk like this. It also works in reverse: $ units 3krpm*50*4/rev kHz * 10 Now, isn't that handy? -fenn [1]: http://gnuwin32.sourceforge.net/packages/units.htm [2]: 'apt-get install units' or http://ftp.gnu.org/gnu/units/units-1.87.tar.gz - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Running EMC2 from another, local app
Hi all, Awhile back, EMC2 v2.1.1, I was successful in commanding EMC2 from a terminal window using commands such as 'telnet localhost 5007' and 'axis-remote'. 'Telnet' opens a variety of commands to EMC2 (through emcrsh) and 'axis-remote' allows shutdown (and a just few others). Now, with v2.2.3, telnet is not working. Here is what I get (I first start 'emc' in another terminal): ~$ telnet localhost 5007 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused ~$ I have searched wiki and linuxcnc for 'telnet' and 'emcrsh', but to no avail. Also, I thought, AXIS communicates with EMC2 via telnet? Any help is appreciated. Thanks, Glenn - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Running EMC2 from another, local app
Glenn, Do you have the following in one of the hal files for the configuration you are running: loadusr emcrsh If you do not include that, then you will get the indicated error since the application to respond to your telnet session is not running. I don't recall whether the latest thing I have run is v2.2.2 or v2.2.3, but I just downloaded the latest version a couple of weeks back, and it was working then. I will try it tonight and make sure it is working. I also know that Chris is about to release a new version, but I have not seen that it has actually been released yet. I need to add some online documentation for that utility, it is still mainly within the c source files. Regards, Eric Awhile back, EMC2 v2.1.1, I was successful in commanding EMC2 from a terminal window using commands such as 'telnet localhost 5007' and 'axis-remote'. 'Telnet' opens a variety of commands to EMC2 (through emcrsh) and 'axis-remote' allows shutdown (and a just few others). Now, with v2.2.3, telnet is not working. Here is what I get (I first start 'emc' in another terminal): ~$ telnet localhost 5007 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused ~$ I have searched wiki and linuxcnc for 'telnet' and 'emcrsh', but to no avail. Also, I thought, AXIS communicates with EMC2 via telnet? Any help is appreciated. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Running EMC2 from another, local app
Glenn R. Edwards wrote: Hi all, Awhile back, EMC2 v2.1.1, I was successful in commanding EMC2 from a terminal window using commands such as 'telnet localhost 5007' and 'axis-remote'. 'Telnet' opens a variety of commands to EMC2 (through emcrsh) and 'axis-remote' allows shutdown (and a just few others). Now, with v2.2.3, telnet is not working. Here is what I get (I first start 'emc' in another terminal): ~$ telnet localhost 5007 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused ~$ This most certainly is not an EMC problem, but a network setup problem. Chances are you don't have telnet server running on the EMC machine. Telnet is a pretty deprecated service, and may not be enabled by default anymore. Can you use ssh? ssh is served by the sshd daemon, I forget what the name of the telnet daemon is (inetd, xinetd ?) On the EMC machine, type : telnet localhost If you get the same refused message, the machine is not serving telnet requests, and you'll have to enable the server. I don't know enough about the way you set up your system to advise further. Jon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Running EMC2 from another, local application
Hi all, Awhile back, EMC2 v2.1.1, I was successful in commanding EMC2 from a terminal window using commands such as 'telnet localhost 5007' and 'axis-remote'. 'Telnet' opens a variety of commands to EMC2 (through emcrsh) and 'axis-remote' allows shutdown (and a just few others). Now, with v2.2.3, telnet is not working. Here is what I get (I first start 'emc' in another terminal): ~$ telnet localhost 5007 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused ~$ I have searched wiki and linuxcnc for 'telnet' and 'emcrsh', but to no avail. Also, I thought, AXIS communicates with EMC2 via telnet? Any help is appreciated. Thanks, Glenn - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Running EMC2 from another, local app
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] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Tuesday, March 11, 2008 1:15 PM Subject: Re: [Emc-users] Running EMC2 from another, local app Glenn R. Edwards wrote: Hi all, Awhile back, EMC2 v2.1.1, I was successful in commanding EMC2 from a terminal window using commands such as 'telnet localhost 5007' and 'axis-remote'. 'Telnet' opens a variety of commands to EMC2 (through emcrsh) and 'axis-remote' allows shutdown (and a just few others). Now, with v2.2.3, telnet is not working. Here is what I get (I first start 'emc' in another terminal): ~$ telnet localhost 5007 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused ~$ This most certainly is not an EMC problem, but a network setup problem. Chances are you don't have telnet server running on the EMC machine. Telnet is a pretty deprecated service, and may not be enabled by default anymore. Can you use ssh? ssh is served by the sshd daemon, I forget what the name of the telnet daemon is (inetd, xinetd ?) On the EMC machine, type : telnet localhost If you get the same refused message, the machine is not serving telnet requests, and you'll have to enable the server. I don't know enough about the way you set up your system to advise further. Jon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Radius to start differs from radius to end...
Thank to everyone who answered my question about this yesterday. Once I set the tool diameters to zero in EMC, the gcode from Synergy ran correctly without any modification (though I did need to scale the feed rate down to 20%; that's a different story). So far I am really impressed with Synergy and I've actually just bought the 3D solid version. Its not easy to learn, but I think that's in part because I am not familiar with any 3D package really. Ben Dave Engvall wrote: Hi Ben, Remember, Synergy does things differently. It writes code that is offset by cutter radius and also uses G41/G42. This means the tool table diameters need to be zero. Small deviations are then entered into the tool table to compensate for sharpening or small adjustments in dimensioning. I've not been successful in making that work so I just live with zero. If anyone knows how to make that work I'd be interested. Synergy will let you rough with a tool that is tool big and then come back with a smaller tool and just cleanup the inside corners. Really a handy feature. HTH Dave On Mar 10, 2008, at 4:26 AM, Ben Dugan wrote: I'm pretty sure I've seen this asked before, but I couldn't find it in the archives for this mail list. I'm running EMC2. I get this error on lines with G2 or G3 in them. (The code is output from Synergy). If I get this error, is there still a setting (like INCH_TOLERANCE) that will relax the conditions that produce this error? Also: is this affected by cutter diameter compensation settings, or by relative vs incremental vs absolute modes? Google has showed me some mention of this on other mail lists, but I fiddled with those settings and couldn't resolve it that way. Is there a place in the documentation where I can read about this? Thanks in advance! Ben -- --- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pwm-0-gen problems
On Tuesday 11 March 2008, Jeff Epler wrote: On Mon, Mar 10, 2008 at 10:05:12PM -0400, Gene Heskett wrote: This is something that I configured the last time I ran stepconf, so theoretically, all I should have to do is hook it up and go unless theres a bug in stepconf or I have some duff hardware. These are pins that have not been previously utilized. It looks like this is a bug in stepconf. An incorrect value is written for pwmgen.0.offset. When the sample calibration values shown in stepconf are used unaltered, it's necessary to enter an RPM number of around S156000 to get PWM output. There are 2 buglets then, Jeff. The other is that stepcpnf doesn't give you a choice of mode/type for pwmgen. I had to hand edit that into the top of my .hal file also. I guess it assumes most are running induction motor driven spindles which aren't reverseable, but most of the VSR stuff is. For the time being, you can fix this by hand-calculating (or finding by trial-and-error) the right value and placing it in a custom.hal file. We did this on IRC tonight, and a line in custom.hal seems to have fixed that right up. I intend to fix this for the next bugfix release of emc2. In that case, you'll be able to correct your .hal file simply by re-running stepconf. Jeff Thanks Jeff. -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) It is wise to keep in mind that neither success nor failure is ever final. -- Roger Babson - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Homing using 2 motors per axis
Gentlemen, My milling machine uses 2 ball screw spindles with separate motors (and separate microstep drivers) to move the Y-axis portal which is 1.2 meter wide. To do accurate homing, each axis should have its own homing switch and the motors should be controlled using different I/O signals. This, most likely, has been done before. Does anyone have some information, or maybe even a pointer to a complete implementation for this? Before I start reading through the integrator and HAL manuals I though I try it the easy way first ... Regards, Rob - I keep always telling collegues there is no easy way ... - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users