[Emc-users] NCapplet Java-based GUI for EMC
Hi All, I have been researching different ways to control EMC programmatically and stumbled across code for 'NCapplet': http://www.docjar.org/html/api/emc/gui/NCapplet.java.html Which looks to be a pretty fully implemented Java GUI for EMC. There is no mention of a license or an author, and it also seems to be missing the emc.nml.* package. I am guessing emc.nml is a JNI interface to the equivalent C class. Does anyone out there know who authored this code, it's license, and where I might be able to find the missing package? Thanks in advance. Karl -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Parallel Port PC Card Disabled
Hi there, I am a new EMC2 user and am trying to configure a PCMCIA Card Parallel Port on a Compaq Presario v2000 laptop. I have read that the card can do CNC, so I am optimistic that it will work. http://www.newegg.com/Product/ProductReview.aspx?Item=N82E16839328010 The problem I am encountering is that parallel port seems to be disabled. Running "sudo lspci -v" gives me the following output: - 07:00.0 Communication controller: NetMos Technology PCI 1 port parallel adapter (rev 01) Subsystem: LSI Logic / Symbios Logic Unknown device 0010 Flags: medium devsel, IRQ 11 I/O ports at 3410 [disabled] [size=8] I/O ports at 3418 [disabled] [size=8] I/O ports at 3420 [disabled] [size=8] I/O ports at 3428 [disabled] [size=8] I/O ports at 3430 [disabled] [size=8] I/O ports at 3400 [disabled] [size=16] - I found a similar issue previously posted here: http://www.mail-archive.com/[email protected]/msg11633.html But am unable to find any bios setting to turn off 'plug & play', nor am I able to locate the 'enable' file for the device. Does anyone know where I should be looking to find this file? Or if there is another way to enable the device? Thanks in advance, Karl -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Parallel Port PC Card Disabled
Thanks for your reply Gene. > Karl, I have that feeling that this pcmcia card, and its chipset, > may well be > newer that what linux knows about. Well, the do have 'drivers' listed on the card's site: http://www.drivers-download.com/en/download.php?id=162&did=93 Which are really just (somewhat dated) instructions to get the card working with parport. > I just ran a 'make xconfig' in the 2.6.34-rc2 kernel src code tree, > the > newest one, and it doesn't have any Symbios/NetMos stuff listed under > parport. Also, no mention of Symbios/NetMos stuff under the pcmcia > section > either. > > Is there a possibility you could trade that card for an older > model? Or > possibly the Compaq for a more conventionally built machine? It > could be > something Compaq did differently, trying to make sure you buy > accessories > only from Compaq. If anything it could be a Compaq issue. The previous post mentioned it was resolved after disabling 'plug & play' on the bios. This post here seems to point at that issue as well, albeit on Windows: http://discussions.hardwarecentral.com/showthread.php?t=166510 I guess I'm asking if there is any way at getting at the device and enabling it using linux? Or is it disabled at a deeper level? Thanks, Karl -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Parallel Port PC Card Disabled
> Well, for one thing, you may not NEED for Linux to know anything about > it beyond PCI enumeration, which I think is really done at BIOS > initialization time, anyway. As long as you can find the I/O port > addresses that the enumerator has mapped the ports to, you then edit > that into your hal files that loads the right EMC2 driver, and it > should > work, assuming that the PCMCIA device follows the general port > addressing scheme for parports. Thanks for your thoughts. What I have done is walk through the Stepconf wizard and assign the First Parport Base Address to 0x3410, then the XYZ step/direction pins, then go through the "Test this axis" step with firstly the CNC connected, and then with an oscilloscope on the pins. Neither the CNC moves, nor do I get any reading on the scope. Although being a new user I could very well be making a mistake with this setup process... Karl -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Parallel Port PC Card Disabled
> did you check the on-board peripherals section of the BIOS, to make > sure that the > parallel port is enabled? Unfortunately the BIOS settings are very abbreviated and the only peripheral that can be enabled/disabled is the Wireless card! Karl -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Parallel Port PC Card Disabled
Wow, it worked! Thanks for the great tip Alex! Now the device is no longer [disabled] For anyone else facing this issue in the future I followed the instructions here: http://www.thecooltool.com/files/dateien_578.pdf Namely: --- A) The file 'emc2' in the directory /etc/modprob.de has to be removed, or even better moved. usern...@computername:~$ sudo mv /etc/modprobe.d/emc2 /emc2 B) Setting up the interface: usern...@computername:~$ sudo modprobe parport_pc usern...@computername:~$ sudo modprobe parport_cs usern...@computername:~$ sudo rmmod ppdev usern...@computername:~$ sudo rmmod lp usern...@computername:~$ sudo rmmod parport_cs usern...@computername:~$ sudo rmmod parport_pc --- Thanks again. Karl On Mar 25, 2010, at 3:36 AM, Alex Joni wrote: > for PCMCIA cards I found that the only way to make them work was to > load the > linux drivers, then unload them. > Specifically parport_cs > > (so do something like: modprobe parport_cs, check /proc/ioports for > your > card, rmmod parport_cs (and dependencies if needed.. been a while, > can't > remember exactly if there were any)). > > Regards, > Alex > -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] jdi.py
Hi, I have a quick question regarding the jdi.py program by Jeff Epler. http://axis.unpy.net/01167419757 Is there a particular file structure that is required to run this? i.e. where should I be putting the jdi.py file? I note that the current folder and the ./lib/python folder is being added to the classpath, but it seems that the python emc library imports without it. Also, when editing the .ini file to add the DISPLAY=jdi.py, should this be a full or relative path? If someone could give me some guidance about the required (or best practice) file structure that would be great. Finally, the basic workflow is to run jdi.py from the command line, where by emc is invoked, which inturn reads the DISPLAY=jdi.py and loads the script? It would be good to get it straight in my head exactly what is going on... Thanks for your help. Karl -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Parallel Port PC Card Disabled
> Great link, solves some problems with otherwise strange hardware I > believe. > Thanks & bookmarked for future reference. > > Much of this can be incorporated into the /etc/rc.d/rclocal file so > it is > done automatically at startup. You'll probably have to sudo > yourself to edit > that file. Alternatively, the startup file for emc could be > modified I > assume but I haven't tried that personally. Yes, by setting up a rc.local file I was able to get the card working by loading and unloading parport on startup. To summarize the process. Follow the directions in this pdf: http://www.thecooltool.com/files/dateien_578.pdf But instead of part B, follow the instructions on the Ubuntu site to create a rc.local file: https://help.ubuntu.com/community/RcLocalHowto The contents of the 'local' file should read: #!/bin/sh sudo modprobe parport_pc sudo modprobe parport_cs sudo rmmod ppdev sudo rmmod lp sudo rmmod parport_cs sudo rmmod parport_pc You should then be able to restart and hopefully all is working well. Thanks for the help everyone. Karl -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Random Direction Changes
Hi all, I am experiencing some odd direction changes on a home-brew CNC machine that I have on loan. The machine was apparently purchased off ebay, and all the settings I dug out from data sheets for the driver chips and motors. X and Y are working well, but Z (which has a similarly spec'ed but different motor from the other two) decides to change direction at random. The basic behavior is that when you push the jog button in a certain direction you don't know which direction it will go. It will maintain it's course in that direction, but when releasing the button and pressing it again, it will again choose a random direction. Thus the problem it is very easy to reproduce. I am interested to hear what you think this problem may be caused by? I have yet to pull out the oscilloscope, but being a relative newcomer I wanted to ask for advise on how best to debug this problem. I should add that I did have this CNC set up briefly on Mach3, and encountered the same issue. Thanks in advance, Karl -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Random Direction Changes
Thanks for all the suggestions. No solution yet but a quick update... The signal from the direction pin checked out ok on the multimeter so it is definitely a hardware issue. I have so far checked for bad connections leading up to the PCB and off it to the motor and they are ok. Next step is to take the PCB out and check those connections. The driver is a "SLA7051M-LF871" chip by the way. Progress was slowed somewhat when I foolishly switched the connectors from the Y motor to the Z motor and caused a small explosion! I was thinking I could isolate the problem to either the driver board or the motor, but only managed to blow up the driver chip on the Y Board :( It turns out the 'slightly differently spec'd motors have quite different pin mappings... well at least as they have been mapped out on this DIY connector. So one driver chip down and two more on the way. This CNC stuff is actually quite fun! Karl On Mar 30, 2010, at 5:25 AM, John Harris wrote: > Hi, >Under some circumstances this effect can be produced by one > motor winding connection not being good at the driver end of the motor > cable. Usually with a long (2 mtr) cable. Can also be due to one > output of > the driver unit being bad. With power off, use an ohmmeter to check > the > winding resistance at the motor end off the cable, then look for > similar > resistance at the output pins of the driver unit, and the output > pins of the > driver ICs. If that looks good, with power on and the motor running > look > with a scope at the waveforms on all four driver outputs. The two > outputs > for one winding are different, but one output on one winding should > be the > same as one output on the other winding, and the other two should also > match. > > Also an open circuit Direction signal, with the open at the breakout > board > end of the cable can produce similar effects as suggested below. > > - Original Message - > From: "Slavko Kocjancic" > To: "Enhanced Machine Controller (EMC)" > > Sent: Tuesday, March 30, 2010 2:23 AM > Subject: Re: [Emc-users] Random Direction Changes > > >> [email protected] pravi: >>> Hi all, >>> >>> I am experiencing some odd direction changes on a home-brew CNC >>> machine that I have on loan. >>> The machine was apparently purchased off ebay, and all the >>> settings I >>> dug out from data sheets for the driver chips and motors. >>> >>> X and Y are working well, but Z (which has a similarly spec'ed but >>> different motor from the other two) decides to change direction at >>> random. >>> The basic behavior is that when you push the jog button in a certain >>> direction you don't know which direction it will go. >>> It will maintain it's course in that direction, but when releasing >>> the >>> button and pressing it again, it will again choose a random >>> direction. >>> Thus the problem it is very easy to reproduce. >>> >>> I am interested to hear what you think this problem may be caused >>> by? >>> I have yet to pull out the oscilloscope, but being a relative >>> newcomer >>> I wanted to ask for advise on how best to debug this problem. >>> >>> I should add that I did have this CNC set up briefly on Mach3, and >>> encountered the same issue. >>> >>> Thanks in advance, >>> >> Just check the wires again. That can be caused by bad connection of >> DIR >> signal or even replaced dir/step signal or shorted together. If you >> don't have scope then just use earphone. Connect earphone trought 10k >> resistor to direction signal and ground. You should hear nothing when >> motor moves. But must hear click when you change direction. On the >> step >> pin you should hear clear tone without clicking. That's works even >> betterthan scope!. As all interrupts are heard as clicking in steady >> signal. On scope is very easy to miss that glitch. >> >> -- >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> ___ >> Emc-users mailing list >> [email protected] >> https://lists.sou
Re: [Emc-users] Random Direction Changes
Just to follow up on this earlier post. > But, I'm taking a bit of a wild guess and thinking that you are only > driving ONE of the motor's two phases. This was indeed what the problem was. Using the method Jon suggested (below) we found there was no power coming into one phase of the motor. We ordered a new driver chip and swapped it out. Everything is now working great. Thanks again for your suggestions everyone. Karl > It could be a bad driver or motor, but also could very easily be a bad > connection between them. So, I'd check the wires carefully. > If that doesn't show anything, then I'd check the voltage across the > coils with a voltmeter. > There should be some voltage across the coils > any time the driver is on. If it is a bipolar driver, then it is > simple. If a unipolar, then you have to check that half of the coil > that is currently being driven. If you get no voltage across the > coil, > the driver is suspect. If you have voltage across the winding, then > ohm > out the motor's coils, as it could be an open coil. > > Jon > -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Expanding Foam & Near Realtime CNC Control
Hi All, As I have been querying the list quite a bit with questions I thought I would post a project I have been working on with EMC. It uses the Axis Python Interface to control an Expanding Foam dispensing CNC machine in near-realtime: http://golancourses.net/2010spring/04/05/shaper-dispenser-tests/ To really create 3D forms in an additive way I am still searching for the perfect super-fast-drying foam material... Let me know if you have any thoughts or ideas. Best, Karl -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Expanding Foam & Near Realtime CNC Control
> Now that's pretty neat! Though I gotta tell ya, that foam on the > FedEx > package kinda looks like baby doo-doo. Yes, but if you paint it gold it makes it look beautiful :) > What exactly will the finished product look like or do? Not sure exactly, the idea is to make an interactive fabrication system. Right now I am thinking it could be fun for kids to make small blobby creatures by interpreting their mouse strokes into a certain dispensing pattern. Although I am pretty sure the foam is toxic, and not something you want kids to chew on... > Will the foam, > while in liquid state be poured into some kind of shape? Interesting idea! But I guess you don't need CNC to do that. > And do you > have any control over the rate of and the amount of growth of the > foam? No, it pretty much does it's own thing. It does smooth out really nicely though. Karl -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Expanding Foam & Near Realtime CNC Control
Thanks for all the useful information everyone. I'll be sure to investigate the UV adhesive and different types of foam. On Apr 7, 2010, at 12:17 PM, [email protected] wrote: > There is also a 'minimally expanding foam' available at big box home > improvement stores > for putting in confined spaces like around existing door, etc. It is > for places where excessive > expansion can cause problems (like in the ends of canoe's! ... great > post ... I loved the visual). > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
