![]() | |
| 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
| |||
| |||
| hi guys im new to the forum (so be nice )anyways ive been building up a small cnc mil and i have a very basic driver(if it can even be called a driver) the driver uses 3 uln2803 chips atm i have 8 bipolar motors (2 for each axis except for the one with four) and i am wondering if i can configure emc to control the motors (basically put) my set up is simmilar to this just running with slightly better stepping motors this is a first build for me and if you guys are interested in pics i dont mind posting them thanks in advanced wez |
|
#2
| |||
| |||
| read this from manual: http://www.linuxcnc.org/docs/devel/h...stepgen.9.html stepgen can control stepper coils directly though it is not commonly used. |
|
#3
| |||
| |||
| thanks for the reply (considering its early morning for you guys) im guessing there is no gui for stepgen? but then again i guess it cant be that hard to set it up. ![]() spent up to 6 hours yesterday trying to find this |
|
#5
| ||||
| ||||
|
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
| Sponsored Links |
|
#7
| |||
| |||
| anyone able to help me out? im just confused about how i load stepgen into emc2 i have read that you edit the core_stepper file but i have no idea where it is located. the other thing is i am planning on useing the 8 / 10 step config but im not to sure how you set it up (ive seen the ones for 2 phases but not for 4) oh ja and the pin out... how would i go about coding the hal file so that i have my pins all in the right places (eg pin 2 x axis phase 1, pin 3 x axis phase 2......) thanks.... starting to get on my nerves a little (oh ja and im not a resident linux user hence not really understanding the code) |
|
#8
| |||
| |||
| I suggest you make a config with stepconf, then modify it to use different stepper control. after stepconf finishes the config folder will be under home/yourname/emc2/configs/yourconfigname open the yourconfigname.hal file and look for this: loadrt stepgen step_type=0,0,0 change it to something like: loadrt stepgen step_type=9,9,9 mode 9 produces signals for half stepping 4 phase steppers for unipolar steppers. there are other types of modes see the manual. then look for : net xstep => parport.0.pin-02-out setp parport.0.pin-02-out-reset 1 net xdir => parport.0.pin-03-out change to : net xphase-a => parport.0.pin-02-out net xphase-b => parport.0.pin-03-out net xphase-c => parport.0.pin-04-out net xphase-d => parport.0.pin-05-out do the same for y and z do you have enough parallel port pins? look for : net xstep <= stepgen.0.step net xdir <= stepgen.0.dir change to : net xphase-a <= stepgen.0.phase-A net xphase-b <= stepgen.0.phase-B net xphase-c <= stepgen.0.phase-C net xphase-d <= stepgen.0.phase-D do the same for y and z save that and run EMC. if I haven't forgot anything then that should work for you. Remember if you run stepconf again it will over right these changes you just made. Note that I have not ever done this - so no guarantees it works out-of-the-box. Hope that helps you. |
|
#9
| |||
| |||
| thanks chester88! ![]() last night i stayed up and chatted to a few of the guys over here and they explained a bit of this to me. to config the pins i have to go to file called standard_pinout.hal and core_stepper is the one with the phases. only problem is im getting errors every time i try to run emc2 after i have done the changes. maybe ill create a new machine profile. thanks for the help |
![]() |
| 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 |
| Anyone ever go to Direct drive on a KM3 ? | Rich Carlstedt | HURCO | 4 | 05-20-2010 04:24 PM |
| MSC Direct 30% off sale | Dman65 | Web Deals/coupons | 0 | 08-31-2009 08:18 AM |
| 24V DC direct drive | rokb | Servo Motors and Drives | 1 | 03-31-2009 10:23 AM |
| CNC Direct THC | Dizzy_G | CNC Plasma and Waterjet Machines | 0 | 12-19-2007 11:08 AM |
| port pin setu[p - direct phase controller | Andy Sayno | Mach Mill | 0 | 08-31-2007 10:09 PM |