Need Help! direct control / direct phase


Results 1 to 10 of 10

Thread: direct control / direct phase

  1. #1
    Registered
    Join Date
    Jun 2010
    Location
    south Africa
    Posts
    6
    Downloads
    0
    Uploads
    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

    Similar Threads:


  2. #2
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    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
    Registered
    Join Date
    Jun 2010
    Location
    south Africa
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default

    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
    Registered
    Join Date
    Jun 2010
    Location
    south Africa
    Posts
    6
    Downloads
    0
    Uploads
    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
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24220
    Downloads
    0
    Uploads
    0

    Default

    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
    Registered
    Join Date
    Jun 2010
    Location
    south Africa
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default

    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
    Registered
    Join Date
    Jun 2010
    Location
    south Africa
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default

    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
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    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
    Registered
    Join Date
    Jun 2010
    Location
    south Africa
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default

    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
    Registered
    Join Date
    Feb 2013
    Location
    denmark
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default 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



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

direct control / direct phase

direct control / direct phase