![]() | |
| 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 Everyone, I'm working on a CNC Router in my free time. I have read many posts about using an Encoder along with a Stepper motor. However I'm confused as to how to get it done. I do not intend to obtain a Closed loop Stepper Drive system (which many said is almost impossible to do - Plz correct me if I'm wrong here!). All i want is The machine to Pause/Stop Execution when the Motor stalls or misses steps. I have read it is quite possible using EMC2. I have been searching various topics and doing a lot of reading over here but I couldn't find info as to how exactly to configure it. Hope someone can help me with the configuration steps or point me to a thread where configuring Encoders with Steppers is discussed. Thank You! Joe! |
|
#2
| |||
| |||
| The only example I can remember: http://wiki.linuxcnc.org/cgi-bin/emc..._With_Encoders The author mentions posting his .ini and .hal files, although I'm not sure where he posted them. Maybe the author subscribes to the emc-user mailing list ?
__________________ Anyone who says "It only goes together one way" has no imagination. |
|
#3
| |||
| |||
| Yes, it is possible. Check out the products by Jon Elson on this site: http://pico-systems.com/oscrc4/catalog/index.php. Jon also maintains a pico-systems forum here at CNCzone. You may find that you could go to a full-blown servo system for very little more using his products. |
|
#4
| |||
| |||
| Thanks Cyclestart, Marzetti. I had come across the link on LinuxCNC site. But like you said even I couldnt find where he had posted his INI n HAL files. ![]() Pico systems are more of a commercial option. It costs about $250 i guess. In a way it is worth the price. But I'm not from the US. So the Shipping charges and Customs duties are gonna make the price double if not triple ![]() If only I could lay my hands on the INI n HAL Files or atleast some advice on how to go about making those edits to the HAL files. In a way I'm a lil afraid of modifying the HAL files unless I'm sure of what I'm doing. Hope someone can me help out with this... Joe! |
|
#5
| |||
| |||
| there are a couple of ways to do this that I have seen... 1. You unhook the feedback from the stepgen that goes back to emc2 and instead hook in the output from the encoder componant back to emc. So instead of the feedback loop coming from the stepgen - it is coming from the encoder. Then you set the following error to what you want emc to estop at. Emc2 -> hal stepgen -> printer port -> stepper drive/stepper -> encoder -> printer port -> hal encoder -> emc2. You would have to make sure you can count the encoder fast enough through the printer port to get the speed you need. 2. You change the encoder so it runs in velocity mode instead of position. Now you setup a pid loop that takes postion and feedback from the encoder and output a velocity command to the stepgen. It in effect runs the like a servo loop. It will actually correct for some missed steps as long as the stepper didn't stall. You set the following error the same as above to estop when tripped. sam |
| Sponsored Links |
|
#6
| |||
| |||
Second, depending on the speed of the machine, software may not be able to keep up with the encoder count rate. That depends on the encoder resolution and the maximum speed of the motors. It can be done with my Universal Stepper Controller. The normal mode of using this board is to have the counters in the board count the step pulses as they go out. But, by flipping a switch, you can make it count the actual position as indicated by the encoders. If you do this, it WILL be a true closed-loop system, as all positioning will be based on the encoder reading, not the step pulses generated. It will not be able to correct for motor stalls or major loss of steps, as that will only ask for greater velocity when the motor has already stalled. It will correct for an occasional dropped step without your ever knowing this has happened, but a properly set up system will not do this anyway. By setting the FERROR parameter in the ini file, you can set a tolerance for the error you want to allow before a following error is declared and the program is stopped. Even when this happens, your position reference will be maintained, due to the encoders. See : http://pico-systems.com/oscrc4/catal...products_id=21 for a look at that board. Jon Last edited by jmelson; 01-25-2010 at 09:21 PM. Reason: typo |
|
#7
| |||
| |||
| Thank You Sam, Jon for your inputs. I'm not very familiar with editing the HAL files. But now I have an idea as to what I need to do. Just need to do a bit of reading the HAL Manual. I'l post my results once i'm done. Thank you once again ![]() Meanwhile does anyone have a modified HAL n INI files for a similar setup? It be great to have a reference file while learning HAL. Joe! |
![]() |
| 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 |
| Problem- weird cutting (Missed steps?????) | MonoNeuron | DIY-CNC Router Table Machines | 4 | 01-11-2009 06:03 AM |
| Missed steps and back EMF question | wjfiles | General CNC (Mill and Lathe) Control Software (NC) | 3 | 08-14-2006 08:11 AM |
| Missed Steps | fool | Machines running Mach Software | 11 | 04-04-2006 06:51 PM |
| Missed Steps - A curse or manageable? | andy_ck87028 | Stepper Motors and Drives | 3 | 07-20-2005 05:47 PM |
| Problem with error or missed steps or something? | rustyolddo | TurboCNC | 18 | 07-10-2005 08:51 AM |