Page 1 of 2 12 LastLast
Results 1 to 12 of 13

Thread: Step and direction signals

  1. #1
    Registered
    Join Date
    Dec 2009
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0

    Step and direction signals

    hi
    Ive got a weird problem. Ive made a config file where pin7 of the parallel port is xdirection, and pin8 is xstep.When i test using the option on the next page if i press run I get pulses on my oscilloscope only from pin7(xdirection pin).If i dont press run and click the jog button my levels change on the oscilloscope from 0 to 5 depending on which side button i clicked.But I dont get the pulses from the other step pin at all.Its just dead. When i run a file from axis i get direction signals from xdirection but no step signals now, from either pin..
    is there some other setting i have to change?
    thanks
    harsha


  2. #2
    Registered
    Join Date
    Jun 2005
    Location
    norway
    Posts
    55
    Downloads
    0
    Uploads
    0
    Hi Harsha,

    Welcome to the forum!

    Can you post your ini and hal file?

    Henrik


  3. #3
    Registered
    Join Date
    Dec 2009
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0
    hi henrik
    cant believe someone replied so fast!
    here are the files--
    ive only got one stepper driver up so ive only configured pins for x axis
    Attached Files Attached Files


  4. #4
    Registered
    Join Date
    Jun 2005
    Location
    norway
    Posts
    55
    Downloads
    0
    Uploads
    0
    Hi again Harsha,

    according to your hal file, pin8 is estop-out..

    try measuring pin9 for xstep

    Henrik


  • #5
    Registered
    Join Date
    Dec 2009
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0
    hi
    i got the pin wrong when i wrote my first post. pin 7 is xdirection and pin 9 is xstep. and im getting pulses on pin 7 and nothing on pin9.Sorry for the confusion. any other suggestion.if i measure pin9 im not getting any kind of signal


  • #6
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0
    I would bet there is a problem with the physical port probably not set up right in the BIOS.
    Change pin 9 to direction and pin 7 to step. If you get step pulses on 7 and nothing on 9
    then the port has a problem.


  • #7
    Registered
    Join Date
    Dec 2009
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0
    hi chester
    thanks for your suggestion.first i tried changing pins,to just ensure nothing was wrong physically, so now im using pin1 as x direction and pin 14 as xstep, and ground is pin18 .This is what happens - I get pulses on the x direction pin in the test page and nothing on the x step pin. But while running a job i get only direction signals on the x direction pin and not the pulses.The x step pin is still dead.
    if i change the connections, the same things happen, except now i get the signals on the new xdirection pin(pin 14) and nothing on pin1.
    If its something wrong with the parallel port settings in the bios setup, how do i fix it?


  • #8
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0
    Ok I now don't think there is anything wrong with the paraport.
    I see that your step length and step hold is very short (1 and 0).
    What type of step drive are you driving? try 1000 1000 and see if a difference.

    Could you post your stepconf file?

    Chris M


  • #9
    Registered
    Join Date
    Dec 2009
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0
    hi
    step drive is through a tiny24 microcontroller, where each falling edge of step pulse creates an interrupt which pulses 1 out of 4 output pins in order. and direction signal will reverse order depending on high or low..i tried l297 but think my ic was not working properly.
    i changed step time and length manually to 1000, but didnt make a difference. Could the computer im using have something to do with it? im using a dell optiplex 760.
    by stepper config file do you mean the .ini and .hal files?


  • #10
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0
    I mean the stepconfig file.
    It will be in /home/ yourname /emc2/configs (something like that)

    It will end in .stepconf eg mymill.stepconf

    hmm I must be missing something... strange problem!

    Chris M


  • #11
    Registered
    Join Date
    Dec 2009
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0
    here are the files.. i created a new config so here are their ini and hal files too.
    Attached Files Attached Files


  • #12
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0
    Your max velocity for x axis is set too low (1 mm/s)
    set it higher (I tried 1000 mm /s)

    Cheers Chris m


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. How to generate fast step/direction signals
      By amitgoradia in forum Open Source Controller Boards
      Replies: 5
      Last Post: 10-17-2008, 03:58 AM
    2. Step or Direction?
      By ardor in forum Viper Servo drives
      Replies: 3
      Last Post: 07-25-2007, 04:04 PM
    3. To convert Quadrature Encoder signals to Tachogenerator signals
      By Babar in forum General Electronics Discussion
      Replies: 4
      Last Post: 02-21-2006, 01:05 AM
    4. step in what direction
      By craftech in forum Stepper Motors and Drives
      Replies: 5
      Last Post: 10-13-2004, 06:45 AM
    5. Step and direction source
      By pauls in forum Gecko Drives
      Replies: 1
      Last Post: 09-03-2004, 08:19 AM

    Tags for this Thread

    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.