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.
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
Similar Threads:
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.
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
ok so i went through both the intergrator manual and the one posted but i dont understand how you set up the pin outs and how you get it to run with emc2
thanks
wez
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)
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.
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
hello guys i was wondering if you ever got this working and if so to post a hal file or other info about it. i know its long since this thread was active but I'm curious non the less...
thanks