586,055 active members*
4,176 visitors online*
Register for free
Login
Results 1 to 13 of 13
  1. #1
    Join Date
    Dec 2009
    Posts
    8

    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
    Join Date
    Jun 2005
    Posts
    55
    Hi Harsha,

    Welcome to the forum!

    Can you post your ini and hal file?

    Henrik

  3. #3
    Join Date
    Dec 2009
    Posts
    8
    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
    Join Date
    Jun 2005
    Posts
    55
    Hi again Harsha,

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

    try measuring pin9 for xstep

    Henrik

  5. #5
    Join Date
    Dec 2009
    Posts
    8
    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. #6
    Join Date
    Nov 2005
    Posts
    496
    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. #7
    Join Date
    Dec 2009
    Posts
    8
    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. #8
    Join Date
    Nov 2005
    Posts
    496
    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. #9
    Join Date
    Dec 2009
    Posts
    8
    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. #10
    Join Date
    Nov 2005
    Posts
    496
    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. #11
    Join Date
    Dec 2009
    Posts
    8
    here are the files.. i created a new config so here are their ini and hal files too.
    Attached Files Attached Files

  12. #12
    Join Date
    Nov 2005
    Posts
    496
    Your max velocity for x axis is set too low (1 mm/s)
    set it higher (I tried 1000 mm /s)

    Cheers Chris m

  13. #13
    Join Date
    Dec 2009
    Posts
    8
    hi chester,chris
    it worked out.it was my fault all along. when you say test in the page after the pin connections in the stepconf wizard, if you are connected to the direction pin you get a pulse that is pretty large like 250 ms or something.So i was looking for something that big in the step pin! I changed the time axis in the oscilloscope to 50us and got the pulses right. Actually i had seen these pulses earlier but thought they were spikes and were errors stupid na? I realised what was happening after looking at the xdir and xstep waveform in the halscope.
    anyway now its working.thanks for taking the trouble to help.
    harsha

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, 08:58 AM
  2. Step or Direction?
    By ardor in forum Viper Servo drives
    Replies: 3
    Last Post: 07-25-2007, 09:04 PM
  3. To convert Quadrature Encoder signals to Tachogenerator signals
    By Babar in forum CNC Machine Related Electronics
    Replies: 4
    Last Post: 02-21-2006, 07:05 AM
  4. step in what direction
    By craftech in forum Stepper Motors / Drives
    Replies: 5
    Last Post: 10-13-2004, 11:45 AM
  5. Step and direction source
    By pauls in forum Gecko Drives
    Replies: 1
    Last Post: 09-03-2004, 01:19 PM

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
  •