STEPPER MOTOR - STEP, Clock, Direction and Preset.

I have wired a stepper motor, driveboard and a amplification circuit to a DAQ card. However the stepper refuses to move. I am willing to pay a small fee to someone who can guide me through the internet. My e-mel is [email protected]

Please check out this thread:
http://forums.ni.com/ni/board/message?board.id=250&message.id=9874
-Alan A.

Similar Messages

  • Anaheim Automation stepper motor with PCI-7330 and UMI-7764

    Hi, I'm fairly new to LabView 2010 and stepper motors in general. I've been trying to get an Anaheim Automation stepper motor and encoder to work with LabView with some success but it isn't quite right. My main problem is when the home switch is activated the whole thing is killed and I cannot get it to respond unless I manually turn the motor so that it is not on the home switch anymore. After that it will run ok, unless it hits the home switch again (btw if it hits the forward limit switch it will stop but it will accept a command to move away from it).
    Could someone please take a look at my wiring diagram in the link below and let me know if there is anything obviously wrong with how I wired it up or if you have any suggestions on where my settings might be going wrong I'd really like to hear from you. 
    Thanks,
    Rob
    Wiring diagram: https://docs.google.com/present/edit?id=0AW08JmeQD7nyZHBzejljOF82OWc4NHg4Z2M4&hl=en_GB&authkey=CPbsv...
    Tech sheets:-
    Stepper motor: http://www.anaheimautomation.com/manuals/stepper/L010130%20-%2023MD%20Series%20Users%20Guide.pdf
    Encoder: http://www.anaheimautomation.com/manuals/encoder/L010723%20-%20ENC-A2N%20Single-Ended%20Encoder%20wi...

    Thanks for the reply, I am trying to run any of the find reference example VIs from NI. I've not edited the code in any way.
    The motors will run with the wiring I've posted, it'll move to the forward limit switch then come back again but it will then hit the home switch, the motor stops and cannot be started again until it is manually moved off the home switch. It has never made it all the way to the reverse limit switch meaning I cannot use home (it stops) or the centre (can't find the reverse limit) as a reference point.
    It was suggested to me I might have the grounds miswired, the manuels were not all that clear so I'm unsure.

  • Write a Labview program to control both speed and direction of stepper motors

    Hello,
    I am currently undertaking a project in University. As part of it I have to run two stepper motors at varying speeds, and one of them in forward/reverse. The motor I have for the project is a RS 191-8334 (V9728) and the controller is a RS 240-7920 (v10900). I have no experience of using Labview, and the version I have on my laptop is Labview 10. Any help would be greatly appreciated.
    Ideally I would want a program to do both full/half steps, forward/reverse, have speed control and be able to control the number of steps.

    Hi Wef,
    I would need to know more information about the devices in order to assist you.
    What inputs does the stepper motor controller require and what hardware are you using to supply the required signals to the motor.
    Best regards,
    Stephen C
    Applications Engineer

  • Using LabView, Arduino, and Easy-Driver to control a Stepper Motor

    Hello fair folks of the LabView forums!
    I am a humble engineering student in need of some advice and input on a project I am working on.
    I’ve also done a fair amount of reading on the LabView forums with people trying to use LabView and Arduino to control stepper motors, and I’ve used as much information from each as I could. However the problem I'm encountering now is one which is unique to my VI Configuration.
    So, here is what has been done thus far:
    -Installed LabView Interface for Arduino [LIFA]
    -Installed necessary VISA drivers for LabView to communicate with arduino
    -Uploaded firmware to Arduino to allow it to communicate with LabView
    -Properly wired Stepper Motor with Easy Driver and Power Supply; I have verified this by first using the Arduino independently of LabView, using example code found here.
    -I have created a VI, and have just recently got it to run without reporting back any errors. While I suspect the behavior I’m encountering has to do with something inside the VI, it is difficult to determine as there are no errors being reported!
    But here is general problem I am encountering:
    -Connect Joystick to USB Port, connect Arduino to USB Port.
    -Plug in outlet for Power Supply
    -Open LabView VI
    -Run LabView VI
    -LabView successfully detects Joystick, and Arduino.
    -Tilt Joystick; Stepper Motor moves in proper direction, but it only takes a single step. If held, it does not move further. If returned to zero, and then tilted, it again only takes a single step.
    I know that in the example code, the Arduino issued the step command by writing the signal from LOW to HIGH, and varied the speed by how often it did this.
    I assumed that the Write-PWM feature would do this same thing, but perhaps my assumption is wrong. I will continue to tinker with this myself, but I would be extremely grateful for any insight you might be able to lend.
    I’m thinking, if not the Arduino Write-PMW feature perhaps a simple timing-sequence that could be used to alternate between writing 0 and 1, with the timescale of the sequence being scaled to the X-Axis from the Joystick. But, I am open to suggestions, and certainly appreciate any thoughts you may have to offer!
    Attached to this is the VI used in this setup, a picture of said VI, as well as a rough sketch of the hardware configuration.
    Thank you!
    Attachments:
    Arduino Stepper Control.vi ‏1224 KB
    VI Picture.png ‏82 KB
    Configuration Sketch.png ‏522 KB

    Hi danjifraga,
    I am not so familiar with the Arduino toolkit functions, but you may have better luck looking at the Arduino page at:
    www.ni.com/arduino
    I'll ask around on Monday to see if anyone is more familiar with the toolkit.
    Good luck,
    Brian
    Brian G.

  • Repeatable different steps of a stepper motor

    Hello everyone,
    I am working on a project where i have a stepper motor moving a plate and a signal sensor who measures a distance. I managed to initialize the signal so my initial position is the position where the sensor gives me the minimum value (Voltage).Each time the stepper motor moves, i define it from the front panel. My question is, how can my stepper motor moves automatically for e.g. 8000steps then without define it again for another 5000 steps or whatever i want with a time delay. The definition of the steps now is being done from DAQmx Timing>Samples per channel. I want to run the program and the steps to be already defined wihtout change them again and again from the front panel. I attach my current VI.
    Thank you in advance
    Attachments:
    (2nd version (a-D).vi ‏73 KB

    Hi Chris,
    not a problem, we all were new at some point. In case you don't know there are boatloads of classes you can access online with your License or even without one:
    Here's a small collection (courtesy of crossrulz):
    3 Hour Introduction
    6 Hour Introduction
    LabVEW Basics
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    Learning NI
    Getting Started with NI Products
    And if you are a student you can take a real class with NI for a ridiculously small amount of money (say, 93%) discount).
    With start twice I mean that I was wrong in believing you did so, when I fact you started two different tasks, so: nevermind.
    PFI stands for Programmable Function Input, which is confusing because it is probably assigned to an I/O line. I just asked to find out what section of your code I have to look at. I'm still not quite sure about this, butI understood you want to move the motor, when you push a button. The only part of your code, where you even read a button within a while loop is for the Direction Line. Apart from that you just write the inputs once and then forget about the tasks (not even stopping them sometimes). I suggest moving the button that should move the motor into a while loop. 

  • Connecting stepper motor to the module 9512

    Hello,
    I must do project in LabVIEW.
    I use the compactRIO with module 9512 (Stepper Drive Interface Module with Encoder Feedback). I built a small program of this tutorial http://www.ni.com/white-paper/9666/en#toc10. Now I need connect stepper motor to the module and I would like to run my VI.
    I want to connect small stepper motor (which once was in the 3.5-inch floppy drive - this is bipolar motor with four pins) with module 9512. I don't know which pins DSUB or MDR I must link with my inputs stepper motor. "In Getting started with NI 951x.pdf" written: "Connect the Step and Direction outputs to the stepper drive." and "Connect the Drive Enable output to the stepper drive."
    Which outputs I should connect with my stepper motor?
    Thank you in advance.

    That is correct, these elements or their equivalent.  It is necessary to convert the control signals from the 9512 into motor drive signals.
    The P7000 getting started gives an overview of all this:
    http://digital.ni.com/manuals.nsf/websearch/A236090A30FBDD6C86257A3E00499610
    Edwin!

  • Stepper motors to move antenna

    Hello !
    My name is Paul, I am from Romania.
    I need some ideas on how to make a project.
    I need to control a fake antenna (I am saying fake because it won't be attached to anything, just for display purposes) using LabView.
    The antenna will be very small (about 15cm in diameter and made from light materials) so I won't need powerfull motors. I was thinking about hooking up 2 stepper motors (maybe from a printer) to some sort of controll board and to a PC with LabView. The antenna needs to move 360 degrees on a round base and 180 degrees of elevation.
    I found a video on youtube that is a lot more complicated and a lot heavier than what I need, but should give you a better perspective of what I am talking about.
    http://www.youtube.com/watch?v=vihdaseWNQw
    I need the cheapest way possible (because I am on my own budget).
    Thank you !
    Solved!
    Go to Solution.
    Attachments:
    antenna_base.jpg ‏201 KB

    I drew a quick sketch hoping you will understand better what I'm trying to do. I only connected one stepper motor for a test run. I opened the "Arduino Stepper Motor.vi" in LabView and tested on stepper motor 1. It didn't move (but maybe I didn't set it up correctly in labview). The setup was made exactly as the picture I attached.
    The stepper motor 1 (which controls elevation) has to move the antenna 90 degrees. So I'm guesing I have to divide the 90 degrees to 1.8 degrees (the motors deg/step) to find out how many steps I need in total. And the same for stepper motor 2 (360 / 1.8).
    So I need a .vi that automaticaly transforms the degrees which you set the elevation and azimuth to steps for the stepper motors. And when I press "Start" the two motors move to the desired position. I also need a "Reset" button to automaticaly come back to the original position (which will be 0 degrees azimuth and 0 degrees elevation - let's say the magnetic north) each time I run the program.
    Attachments:
    setup.jpg ‏1120 KB
    setup_drawing.jpg ‏1102 KB
    EasyDriver-Stepper-Motor-Driver2.png ‏50 KB

  • Novice to Stepper Motor --- Need help wiring

    I recently purchased a stepper motor from Digi-key, and I have underestimated the wiring requirements for the motor. Silly me thought it would be a simple two wire, power + - installation.
    The motor is from Digi-Key part number 403-1017-ND.
    The motor is made by Danahar Motion (www.portescap.com) part number 55M048D2U.
    I have found the wiring scematic for the motor, but it is a just a table of on/off configurations for 4 of the six wires.
    I had wanted to use this motor to do 70 steps at 70Hz. That 70Hz signal would be send by a DIO channel.
    I have no knowlegde of stepper motors.
    What I am looking for is some info on stepper motors. Basic information, where to look, what to read up on. Unless someone knows exactly what I need to do, I would prefer to learn about it my self. So if someone knows of a good online or text referance that would be great.

    Here is a link to a tutorial on stepper motors. It seems to cover them fairly well.
    You might also just google:
    stepper motor tutorial
    stepper motor basics
    stepper motor class
    I don't really know of a specific source right now, but these queries should get you something.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Stepper motor speed control

    Dear Reader,
    I want to control the speed of a 4-phase stepper motor using LabVIEW 6i and PCI 6024E card. Hence I am approaching you for help and advice. I want to control the speed of a stepper motor, which is used for rotating the diffraction grating used in the monochromator.
    Please try and answer a few of my questions:
    1. Can I interface the stepper motor directly with the card PCI 6024E, or I need a drive for that purpose?
    2. I just want to rotate the stepper motor at a fixed speed, meaning that I don’t want to change the speed of the stepper motor in between, I need a few fixed speeds, what are the problems of controlling the stepper motor using the PCI 6024E cards?
    3.Have you been successful in interfacing your stepper motor
    with the 6025E card?

    I have attached a library about steppers from Brad Hedstrom. It is very old and I think he would write it differently today, but it answers all of your questions. Except the typenumbers of the interface cards and that is answered by: they all are ok.
    greetings from the Netherlands
    Attachments:
    stepper.zip ‏96 KB

  • Problem with the DIR pin out - can not reverse my stepper motor..!

    Hi,
    I'm in trouble with the DIR output. I use PXI 7350 and the 7764 board.
    My motor never changes direction and the signal DIR stays at 0 volts even I create motor cycle through MAX (or through a Labview example).
    Test I've already done:
    - I try to change the drivers output to "open collector" instead of totem. Ten the DIR output stay at 5 volts even I use MAX motor cycles.
    - I try differents AXIS with my 7350 same problem
    - I test my power driver board controler and I can reverse the motor if I apply directly 5 volts on the DIRECTION PIN of this motor controller.
    I'm gonna be nervous...
    thanks for help !
    -damien

    Looks like you took a STEP in the right DIRECTION!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Stepper motor problem

    Hi!
    I edited a code with labview to control the motion of my stepper motors
    by simply sending a command to the serial port 1, this command depends
    on the controller card.
    It works absolutely fine but when the code is running for long, the
    stepper motor goes funny and doesn't stop , I have to switch off the
    controller card power supply resulting in the lost of the reference
    point I have previously set up.
    It might be the buffer memory getting full, I tried to initialise the
    port without any success, it still does it.
    It is crucial for me to solve this, the stepper motors are used to
    transverse optics such as lens and mirror. If this happens again the
    optics could be crunched.
    Thanks
    Fabrice
    Sent via Deja.com http://www.deja.com/
    Be
    fore you buy.

    Stepper motors can get stuck and resonate if they are driven at too high as
    frequency or if they are overloaded. If that is what is happening when "the
    stepper motor goes funny and doesn't stop" you should try changing your driving
    frequency or if you are using a six-wire two-phase stepper you may be able
    to change the wiring configuration to allow more torque or a faster frequency
    response.
    -Jim
    [email protected] wrote:
    >Hi!>I edited a code with labview to control the motion of my stepper motors>by
    simply sending a command to the serial port 1, this command depends>on the
    controller card.>It works absolutely fine but when the code is running for
    long, the>stepper motor goes funny and doesn't stop , I have to switch off
    the>controller card power supply resulting
    in the lost of the reference>point
    I have previously set up.>It might be the buffer memory getting full, I tried
    to initialise the>port without any success, it still does it.>It is crucial
    for me to solve this, the stepper motors are used to>transverse optics such
    as lens and mirror. If this happens again the>optics could be crunched.>Thanks>>Fabrice>>>Sent
    via Deja.com http://www.deja.com/>Before you buy.

  • Stepper motor and NI6025E card

    I want to control a stepper motor with a 6025E National instrument card. My stepper motor is controlled with a microstep controller.
    Does anybody have already done that ? I am interested by some examples...
    Please HELP me...
    Frederic
    [email protected]

    I don't have any examples but I have done this before and it's not that difficult in principle. Getting precise timing can be tricky, and you'll have to use counters rather than the regular DIO ports for that kind of precision.
    I had an MC3479 stepper motor driver to control each motor (there were 2). The way I did it was to use a counter for the clock signal and the DIO ports for control. I generated a gated pulse train on one of the counters, with a DIO pin (DIO 0)as the gate. The Direction, Full/Half step, and other control lines were also connected to the DIO port. I just wrote out whatever data word I needed to setup the motion I wanted, with the pin 0 high to let the clock move the motor. The motor had to be stopped by clearing bit 0, which I had after a tim
    ing delay that was changed in the program. It required a little calculation to get the time delay matched with the frequency of the pulse train to get the number of steps I needed, and it was only approximate; I wasn't worried about exact position as much as being able to adjust the position dynamically.
    For precise position you might try using just a digital line to increment the clock. This is simplest, but the timing will depend on your program. You can also use the other counter for a very precise gate signal, which gives accuracy as well as time-specific rotation, but uses the other counter and is programmatically more complex.

  • Stepper motor pulses per step measurement (Step Angle)

    Hi everybody,
    Recently I have one project to do step angle measurement for a stepper motor. The motor will couple with A,B phase encoder, and PXI-6602 card is used to count the pulse from encoder.
    Well, the test will make the motor to rotate 1 revolutuion (360 degree) i.e. 200 steps are required. The software must able to measure and record the pulses per stepper's step i.e. 1.8 degree until 1 revolution is reached. But now the PXI-6602 will only present the accumulative counts per revolution, Any idea can split the accumulative count into small per step count with high speed and accurate method.
    Thanks & Best regard. 

    What is it you need to characterize?  For what purpose?  Using an external sampling clock can help make the test run much more quickly, but is not absolutely necessary.
    One of my first counter-based apps was to characterize a stepper motor with a microstepping drive.  1 counter measured the step and direction signals going from the motor controller to the microstepping drive.  1 counter measured a quadrature encoder.  Only the encoder measurement used a sampling clock, and it was internal.
    My technique included considerations such as:
    1. I did not move in single steps.  It may be a little less crucial to you with a 200 step/rev motor & drive.  I had something like 3200 step/rev as I recall.  Friction alone could have prevented any motion from occurring on single steps. 
    2. Each motion moved some small-ish prime number of steps so I could move around many many revs and be sure to land on each stopping position an equal # of times.  A simpler method would be to move 1 rev + 1 step.  In your case, that's 201 steps.  The downside is that you extend testing time.  With a 200 step/rev motor, this shouldn't be such a burden though.
    3. After all step pulses were issued, I started monitoring the encoder data.  I looped around evaluating chunks of position data to determine when I had a dataset that looked "settled."  The main criteria I used were slope and standard deviation.  When the criteria were met, I would store the median value.  You could consider using a mean or an RMS as well.
    4. Repeat enough times that you land on each stopping position a statistically significant # of times.  Rule of thumb seems to be about 30.  That would give you 6000 actuations of 201 steps each.  Seems feasible that test time might be in the 1-2 hour realm.
    -Kevin P.

  • Trouble positioning a stepper motor accurately (to one step)

    I'm using a PCI-7344 with an MD7506 motor driver from RS. I'm testing angle sensors whose voltage output is proportional to (you've guessed it...) angle.
    I'm stepping the motor round by one step, checking that it's got there by reading the encoder, measuring the sensor voltage and repeating.
    My problem is that the motor sometimes 'hunts' around the target position. In closed loop (with an encoder associated with a motor) this results in sometimes not being able to reach the target exactly with the pull-in moves.
    Using open-loop and reading the encoder directly I get better results because I can loop more times, but the motor will still 'hunt' around a target point, changing direction a few times as it over
    shoots by a step.
    As there are a million MAX settings for this I won't list them all here, but I'm checking for a move complete when the InPos flag is set and I have a deadband of 0 steps too. I'm only rotating at 120 step/sec with a 10ms pause between steps.
    Do I have to accept that stepper motors are only accurate to +/- 1 step or am I doing something wrong?
    Thanks,
    Mike
    Mike Evans
    TRW Conekt
    N.I. Alliance Member, UK
    http://www.Conekt.net

    Mike,
    Maybe other people will have better suggestions, but in my case I can advise to either:
    1. increase the number of pull-in moves,
    2. increase the microstepping of your drive,
    2a... together with a higher precision encoder...
    Other than that, the accuracy is advertised to +/- 1 step, so maybe you would like to consider a stepper with more steps/rev.
    Good luck!, I hope other people will give other suggestions.
    Nestor.
    Nestor
    National Instruments

  • Position drift during the stepper motor controlled back and forth motion

    Hi everyone there,
    I get a headache position drift problem during the stepper motor controlled back and forth motion. I have been wroking on the problem for the last two weeks, and still can not figure it out. So I write down here my problem in hope of getting some clues from those have some experiences in stepper motor motion control.
    My goal is to use a stepper motor to drive a beam flage fixed onto the shaft to go back and forth for a certain angle, and this back and forth motion needs to be stable and reproducible within hours. With the SMD1 stepper motor driver, I only need to send in a pulse train to control the number of steps(the pulse frequency defines the stepping rate), and another pulse to controle the direction (i.e., cw or ccw). To do this, in LabView, I used the counter of the DAQ board to produce a finite pulse train to step the motor, and used one digital line to produce a pulse to switch the direction every 500ms, the timing is contolled by the software.(I used the oscilloscope to monitor these two pulses, the pulse train produced by the counter looks very stable, and delay between the pulse edges of the direction pulse and the pulse train is also very stable within 500ms. There seems no software timing problems at such a long delay.)  And this labview controlled motor appears to work perfectly as I required, the motor steps a defined number of steps at one direction, and then steps back at the origin position. But after running for a few minutes, the back position shifts gradually(I can not observe a obvious shift at the first few minutes) with repect to the origin position(the position I start running). I looked it up at the manual and also the website, I got a clue that this might because the motor steps at the resonace frequency of the motor and hence misses or takes extral steps sometimes. So I changed the steping rate from 1Hz to 1000Hz to see if the shift disappears or gets smaller at certain frequency range, but the shift always exists.
    I did observe the shift got smaller within the same running time when change the step model from full step (1.8degree/step)to half and quarter step model. According to this, the motor did miss steps (or pulses) during running, the quarter step model has smaller shift due to the smaller steps.  But I also noticed that the motor always shift at one direction, no matter I started with clockwise or counter-clockwise, this seems really strange to me. Because the motor should shift at each direction with the same probability if we assume the motor missis steps randomly.
    There is something must be wrong, either the labveiw program or the motor, but I don't even know a clue of this weird shift problem. And because of this, I haven't made any progress in my lab for the last three weeks. So any suggestions could be very helpful for solving this headache and will be really appreciated.
    Thanks a million in advance and Merry Christmas!
    Li

    Hey, Brian Beal,
    Thanks for your quick response. "accel" and "decel" mean acceleration and deceleration, am I understanding right?
    If yes, then I don't have these in my LabView program, I just generate one TTL pulse train and one TTL pulse with LabView and send them into the SMD1 stepper motor driver.
    The pulse train steps the shaft, and the other switchs the direction.
    Yesterday, I confirmed that if the motor steer always at one direction either CW or CCW, then the stepping were very stable, no missing or extra steps happen for hours.
    And I also observed that the motor took one extra step  from time to time when the direction changes. And this only happens when the direction switch from CW to CCW. (bizarre!)
    I guess this indicates that some pulse noise happens when the motor switch the direction too often.  But I just don't have any clue for irregular extra steps.

Maybe you are looking for

  • 0FI_AR_4

    Hi Gurus, I am loading data from extractor 0FI_AR_4 into the ODS 0FIAR_O03 using Full Update. It says: "Request IDoc : Application document not posted" How do I resolve this problem. Please help. Thanks NewBw

  • Header and item details on same screen in form of two reports

    Hello, I would like to print in a same screen two ALV grid with different command for each. The two grid will be linked. One is the header of the datas and the second represent the items of the selected data in the the header grid. example user will

  • VmWare, Solaris 10, x86, Patch 120536-05, video drivers

    Hello, I have Solaris 10 x86 working under VmWare 5.x with JDS. I use the Xorg VmWare video driver with a resolution of 1280x1024. Everything works fine as long I don't apply the patch 120536-05 (updated video drivers and fixes). I mean the only reas

  • Need to add leading zeros to the field if field length is less than 6

    Actually the field length is 16. But for some manual entries it is comming as 4 chars. so if field length is less than 6 then it should be replaced by leading zeros. Moderator message: very basic, please (re)search yourself before asking, @all: pleas

  • -bash: /usrxit/devenv.env: No such file or directory

    HI Am on 11.5.10.2 OS RHEL 4.6 when i try to run adadmin its throwing -bash: /usrxit/devenv.env: No such file or directory error .. am not able to run autoconfig also ... if i set the env manually, we are facing same issue .. Plz help me Thanks