586,713 active members*
3,010 visitors online*
Register for free
Login
Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2010
    Posts
    0

    Question direct control / direct phase

    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. #2
    Join Date
    Nov 2005
    Posts
    496
    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. #3
    Join Date
    Jun 2010
    Posts
    0
    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

  4. #4
    Join Date
    Jun 2010
    Posts
    0

    Question

    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

  5. #5
    Join Date
    Dec 2003
    Posts
    24223
    Quote Originally Posted by djwez View Post
    hi guys

    im new to the forum (so be nice )
    Are we anything but...?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  6. #6
    Join Date
    Jun 2010
    Posts
    0
    Quote Originally Posted by Al_The_Man View Post
    Are we anything but...?
    Al.
    haha so far im liking this forum

    now back to my problem (lol) been spending waaaay to many sleepless nights trying to figure this stuff out

  7. #7
    Join Date
    Jun 2010
    Posts
    0
    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. #8
    Join Date
    Nov 2005
    Posts
    496
    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. #9
    Join Date
    Jun 2010
    Posts
    0
    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

  10. #10
    Join Date
    Feb 2013
    Posts
    1

    Re: direct control / direct phase

    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

Similar Threads

  1. CNC Direct THC
    By Dizzy_G in forum Waterjet General Topics
    Replies: 1
    Last Post: 07-27-2013, 10:16 AM
  2. Direct machine control with Alibre CAM
    By jviss in forum Visual Mill
    Replies: 2
    Last Post: 09-14-2012, 09:24 PM
  3. DNC direct numeric control
    By AMTB in forum DNC Problems and Solutions
    Replies: 0
    Last Post: 04-21-2012, 07:12 PM
  4. Stepper direct control
    By Holzwurm56 in forum Open Source Controller Boards
    Replies: 3
    Last Post: 01-14-2011, 05:32 PM
  5. port pin setu[p - direct phase controller
    By Andy Sayno in forum Mach Mill
    Replies: 0
    Last Post: 09-01-2007, 04:09 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •