Results 1 to 9 of 9

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


  2. #2
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0
    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
    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
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,958
    Downloads
    0
    Uploads
    0
    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 (Skype Avail).

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


  • #6
    Registered
    Join Date
    Jun 2010
    Location
    south Africa
    Posts
    6
    Downloads
    0
    Uploads
    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
    Registered
    Join Date
    Jun 2010
    Location
    south Africa
    Posts
    6
    Downloads
    0
    Uploads
    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
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Jun 2010
    Location
    south Africa
    Posts
    6
    Downloads
    0
    Uploads
    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


  • Similar Threads

    1. Anyone ever go to Direct drive on a KM3 ?
      By Rich Carlstedt in forum HURCO
      Replies: 4
      Last Post: 05-20-2010, 05:24 PM
    2. MSC Direct 30% off sale
      By Dman65 in forum Web Deals/coupons
      Replies: 0
      Last Post: 08-31-2009, 09:18 AM
    3. 24V DC direct drive
      By rokb in forum Servo Motors and Drives
      Replies: 1
      Last Post: 03-31-2009, 11:23 AM
    4. CNC Direct THC
      By Dizzy_G in forum General Waterjet
      Replies: 0
      Last Post: 12-19-2007, 12:08 PM
    5. port pin setu[p - direct phase controller
      By Andy Sayno in forum Mach Mill
      Replies: 0
      Last Post: 08-31-2007, 11:09 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.