![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
Hello- as the title states, I'm in need of some help understanding the capabilities of emc2. I used emc2 to control a stepper based harbor freight mill that I put together which used the parallel port as the controller<-->driver interface. It worked great, and the stepper control through the parallel port was very simple. I now have a much bigger mill, a Lagun 2cnc with an anilam controller and wanted to look into how difficult a controller re-fit would be. My question is as follows- regarding the use of servos with emc2, what inputs and outputs does the emc2 software expect to be used? I see a lot of people mentioning systems like Mesa electronics or the fpga based pluto board for hardware interfaces between emc2 and the servo drivers, but what exactly are these systems doing? does it vary driver to driver? Regarding the motors and drivers already on the machine, I'm not even sure of what type of input they take- it seems to be 0-5v analog signals correlated with the rpms- What interfaces would be used to give emc2 the ability to output analog values (or what interface can I expect to carry digital info to a D/A device) ? what hardware is allowing for the "HAL oscope" on this page: http://wiki.linuxcnc.org/cgi-bin/emc...rvo_Amplifiers ?? I'm seeing the hardware abstraction layer subject come up qhuite a lot but im falling short of understanding its role in the whole system's process... the wiki page doesnt seem to cover all that much of its capabilities... someone mind simplifying how HAL is applied for me? maybe hint at how it might help me get bytes out for analog conversion or something? thanks for any help! -pat |
|
#2
| ||||||
| ||||||
| So, you would normally have encoders feeding position information back to a hardware encoder counter, and an interface device sending the appropriate velocity command to a servo amplifiers of some type. Analog velocity servo amplifiers usually take a +/- 10 V analog velocity command, PWM-input servo amps take a digital signal where pulse width is proportional to desired velocity, and step/dir servo drives tale signals just like stepper drives.
HalScope is a SOFTWARE oscilloscope, so it does not require any hardware, by ITSELF, to function. It can grab any HAL signal in the entire EMC2 system and display it in graphical form.
HAL won't help you "get bytes out for analog conversion" directly. You need a DAC and a driver for EMC2 for that DAC. Easiest is to use one that is already made for the purpose, with a driver already written for EMC2. Jon |
|
#3
| |||
| |||
| As Jon says, it's easy to run out of pins. If that's the case you can add another port though. I think your question is more in the range of "what can be done" instead of what EMC2 is capable of. EMC2 is extremely capable, I use it but I'm just scraping the surface. There are uge production machine retrofits with working tool changers, and robots and plotters, and... With two things - patience and the will to make it yourself - you can do remarkable things with EMC2. The wiki, the mailing list and the IRC is your guide to the galaxy. ![]() Regards, Sven |
|
#4
| ||||||
| ||||||
| First of, thanks for the replies, they are much appreciated!
forgive my ignorance but what is a "HAL signal"? is it basically just a variable in the EMC2 environment? so it's not necessarily realized physically?
Thanks again! your assistance is much appreciated! ![]() -Pat |
|
#5
| |||||||
| |||||||
| This is a flexible set of boards, but you basically need a motherboard with card cage, and one each DAC, Encoder and DIO to make the basic system. (I didn't include this info in my first message as I didn't want it to come off as a sales pitch.) Stuart Stevenson at MPM in Wichita has these on 3 of his machines there, and I use it on my Bridgeport mill.
of the raw encoder counts from the PPMC interface. ppmc.0.encoder.00.delta is a raw velocity computed from the number of raw encoder counts per servo sample. pid.0.output is from EMC2's PID calculation, and is the command going into the PWM generator.
This is all in the HAL manual at http://www.linuxcnc.org/docs/HAL_User_Manual.pdf
a few of them with my brushless amp. Jon |
| Sponsored Links |
|
#6
| ||||
| ||||
![]() so, I'm about to go diving into the HAL manual and figured I'd ask if you have manuals or datasheets for each product? maybe to read alongside the HAL business? I guess the HAL manual explains the driver subject and whatnot too huh... I'll follow up after lookin into it. thanks again man! -pat |
|
#7
| |||
| |||
| I used the Mesa PCI card it is a FPGA and there a driver package for EMC2. Look at the 5I20 with a 7i33 and 7i37 at www.mesanet.com With it you can run 4 axis with encoder feedback and 24 o/i points per 7i37. Donnie |
|
#8
| |||
| |||
there are links to each board, and on those pages there are additional links to pinouts, sample wiring diagrams, etc. If you need further info, I can whip up a drawing with specific connection info for your configuration. If I haven't already worked out how to interface the PPMC to your specific servo amps, I could do that. Jon |
|
#9
| ||||
| ||||
I'm currently in the process of acquiring some national instruments daq hardware to figure out what kinda IO and protocols I'll be dealing with, so with this in mind I'll email you asking for general quote on how much your hardware will cost me. Thanks again -Pat |
|
#10
| ||||
| ||||
| OK, I've finally managed to finger through the HAL manual, and there's certainly lots of good stuff in there, but I unfortunately didn't really find what I was initially looking for... let me propose (I'm not sure if my proposal is even feasible) and ask this, if I were to configure emc2/hal to function with external hardware to control 4 servos, monitor 4 encoders, 3 limit switches, control spindle speed etc etc etc, what would I see going on at the parallel port if i were to hit it with a logic analyzer or o-scope? and how would these parameters of the parallel port be configured? would I need more than one? Where can I find details of the IO config? Thanks again! -Pat edit:
Thanks! AHA! http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?HostMot2 found it. thx tho. -pat Last edited by p27182; 10-18-2009 at 10:55 AM. |
| Sponsored Links |
|
#11
| |||
| |||
| It's not very feasible to run servos directly from the parport. What Jon's card and Mesa's parport cards do is use the parport to communicate to the fPGA chip on board. The FPGA chip does the actual counting of pulses and sending of pwm pulses etc. So to answer your question if you connected an o-scope to the parport, you would only see the data that is being sent to the FPGA. HAL is how you configure any I/O of EMC2. If you are using Jon's card then the PPMC driver is how you configure it. if using MESA products then most likely the HOSTMOT2 driver. if using the parport directly (usually for step machines or extra I/O points) then the parport driver is what is used. Exactly what I/O details do you want to see? The mesa 5i20 card has 72 points of I/O it is PCI the mesa 7133 card has 48 points of I/O it is parport The HOSTMOT driver for these cards can configure them into many different amounts of encoder counter, pwm generator and general purpose I/O (GPIO). This talks about HOSTMOT2: http://www.linuxcnc.org/docs/2.3/htm..._hostmot2.html John's Pico PWM card is a little different as it's I/O is more specific: 4 encoder counters, 4 pwm generators, 16 GPIO his PPMC has 4 DAC generators 4 encoder counters and 17 GPIO Here is the info on the PPMC driver: http://www.linuxcnc.org/docs/2.3/htm...pico_ppmc.html All of those cards will control at least 4 servo axis. Mesa's cards are more flexible, the driver is newer (less proven for odd-ball bugs) John's cards are less flexible, the driver is older (so more proven) Each of them have been used by lots of people and are capable. Here is a link to more I/O hardware known to work: http://wiki.linuxcnc.org/cgi-bin/emc...orted_Hardware |
|
#12
| |||
| |||
As for how to set it up, sample config files are included with EMC2, see the sample-configs directory and look under the ppmc or univpwm directories. This would look entirely different with different external hardware, of course. Jon Last edited by jmelson; 10-19-2009 at 12:16 AM. Reason: answer another facet of question |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Steel Capable Benchtop Mills | 2_many_hobbies | Benchtop Machines | 59 | 09-14-2009 11:17 AM |
| DIY 3 Axis capable of 4A? | Curtisbeef | Stepper Motors and Drives | 2 | 05-21-2008 01:31 AM |
| General understanding of more than 3 axis help please! | Dongle | General CNC (Mill and Lathe) Control Software (NC) | 9 | 02-22-2006 08:45 AM |
| Assembly line capable milling machine | MrRage | General Metal Working Machines | 6 | 09-13-2005 07:21 PM |
| Which Cam Software Is The Most Capable? | wild01 | General CAM Discussion | 13 | 07-18-2005 04:32 PM |