Stepper motor /Labwindow​s 5.5 /PCI DIO 96

Hi all,
How can I make a software with LabWibdows 5.5 and PCI-DIO-96 to command stepper motor (360step/360°, with 4 rotation/s) ?, the second part driver and a choice of the motor is not up to me.
the choice of the signals is up to me :
1. cw and ccw
2. pulse and direction.
wich method is best ?
Any exemple with CVI is welcome ?
Thanks

Hi, I'm not sure whether this is the right place for asking this question or not and if not, then please guide me to the right place for asking such question. Thanks.
I have a stepper motor with the Vector Network Analyzer Anritsu MS4623B. I got it up and running with the LabWindows/CVI. I need to sync the motion of the stepper motor with my data acquisition. Basically, I have to acquire the data in a way that in the start the motor will come back to home position wherever it was on the ball-screw linear positioning system and then I want to move it to the specific position to do the measurements (For Example, I want to measure the 40 GHz channel between 1m to 3m movement of a stepper motor on a linear positioning system (ball-screw)). I've interfaced the VNA with the PC using LabWindows/CVI and I've controlled the clockwise and anti-clockwise movements of the stepper motor using LabWindows/CVI but I'm unable to sync the system in a way that whenever I run the code, the motor will run back to the home position and then move to a specific measurement start position and move till the end position and in between do the increment and stop and acquire the data. Is there any one to help me please? It's really urgent please and I'm doing this thing first time so please guide me in a proper way. I shall really apprecaite that and will be highly obliged with you. Thanks for your time and concern.
Thanks and Regards.

Similar Messages

  • What are the pin connections from 7764 to stepper motor drive

    what are the pin connections from UMI 7764 to stepper motor drive? I use PCI 7340 controller. Third party driver  is not branded, but assembled.  It has 3 inputs, one for (A,A/) one for (b,b/) one for enable, apart from ground pin.

    Dear enigmata,
    Here is a link to the UMI Manual that describes the signal connections:
    http://www.ni.com/pdf/manuals/321941b.pdf
    What you really need is the documentation for the input of the "translator" mentioned on the left side of the last diagram you posted. It is still not possible to tell which of you drive inputs correspond to step and direction (or CW, CCW) because in the circuit that you posted, these signals have already been converted by other circuitry in the drive to the A, A/, B, B/ output signals for the stepper motor.
    I agree with Jochen: Without the documentation you will need to test it out as he described in his last post.
    Best Regards,
    Nate Holmes
    National Instruments

  • 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

  • Control two stepper motors with PCI 7332 for sinusoidal movements

    Hello,
    I am now using two stepper motors of RK566BAE (Oriental motor). I connected those two motors with UMI-7764 and PCI-7332. I designed to have independent sinusoidal movement of each motor. The first motor is wired to Axis 1 and the second to Axis 2 (of UMI-7764).
    I want to use Ni-Motion to create  a single VI in LabVIEW which helps to control both motors. But I have not figured-out how to obtain the movement I desired.
    Could you please advise me.
    Thank you so much.

    There are two ways to do elliptical arc moves:
    Use contouring two download target position arrays to the onboard buffer
    Use arc moves in combination with gearing (shipping example). This requires three axes.
    The 7332 doesn't support contouring and gearing and it doesn't provide a third axis, so there is no way to use this board for this type of moves. The cheapest NI board that supports elliptical moves in contouring mode is the PCI-7342. As the second option requires three axes, at least a PCI-7344 is required for this method.
    Here is a link to a feature comparison table for all NI 73xx motion control devices.
    Kind regards,
    Jochen Klier
    National Instruments

  • Elliptical Motion of Two Stepper Motors with PCI 7332

    Greetings,
    I am trying to move two stepper motors on a 2d elliptical arc using LabView and PCI 7332 controller board. The 2D ellipse example in the LabView library does not work with the 7330 series. Is there any other easy way to perform such a motion with PCI 7332? Thank you in advance.

    There are two ways to do elliptical arc moves:
    Use contouring two download target position arrays to the onboard buffer
    Use arc moves in combination with gearing (shipping example). This requires three axes.
    The 7332 doesn't support contouring and gearing and it doesn't provide a third axis, so there is no way to use this board for this type of moves. The cheapest NI board that supports elliptical moves in contouring mode is the PCI-7342. As the second option requires three axes, at least a PCI-7344 is required for this method.
    Here is a link to a feature comparison table for all NI 73xx motion control devices.
    Kind regards,
    Jochen Klier
    National Instruments

  • Possible to drive a stepper motor with PCI-6111?

    Is it possible to drive a stepper motor with PCI-6111?

    Hello Tristan,
    If your stepper motor is TTL compatible you should be able to control it with one of the two counters on the board. Keep in mind that the stepper will ask for a certain amount of power so before attaching it track down how much power it consumes and take a look at the Specifications of the PCI-6111 to be sure that the counters on the board can deliver that amount. If the stepper takes to much power you have to use some kind of power drive which can be controlled with digital (TTL) signals or Analog signals between -10V and +10V.
    Hope this helps.
    Best regards
    RikP
    Application Engineering
    National Instruments
    Rik Prins, CLD
    Applications Engineering Specialist Northern Europe, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • 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.

  • Suitable card for three stepper motors

    Hello everyone, 
    I want to ask which DAQ card would be suitable for controlling three (X,Y,Z stage) stepper motors using continuous and/or finite pulse generation.  X and Y stages have to be independent on each other (i.e. diagonal movement), Z one does not but it would be nice. Solution may include buying two cards to ensure the independency of counters.
    I have heard that for finite pulse generation two counters are used for one axis (stage). Does it mean I need a card with six counters? Or two cards with four and two counters? In that case, our lab is equipped with the old 6035E card providing two counters (unfortunately not independent in finite pulse generation mode probably due to the statement above), which could handle one of the axes. 
    I dont want to use DIO for pulse generation because there is no possibility to control the frequency of pulses. Frequency for the stepper motor varies from 1000 to 2000 Hz. 

    Hi Diego,
      There is a way to only use one counter to output a finite digital pulse train.
    Normally when performing a finite counter output operation, two counters are required. One counter is used to actually output the pulses and another is used to gate the first counter and therefore output a finite number of pulses.
    The way to accomplish this same behavior with a single counter is by setting up a continuous pulse output task with a start trigger and a pause trigger. The pause trigger takes the place of the second counter normally used as the gate signal, freeing this counter to be used for other operations. 
    Finally, an external source must be used to create a pulse of a desired width in order to achieve a finite pulse train that used a single counter on the PCI-6602.  In the case below the external signal is passed to Dev3/PFI0, which has been configured to be the pause trigger source terminal. 
    Pause triggers are only valid for continuous sampling mode with implicit timing. You can find the properties for the proerpty node in the following locations:
    Properties » More » Pause » Trigger Type
    Properties » More » Pause » Digital Level » Source
    Properties » More » Pause » Digital Level » Pause When
    For each property, right-click the terminal and select Create » Control or Create » Constant  from the shortcut menu.
    Keep in mind also that there are stepper motor controllers available from NI like 7332. For more information check the link above:
    http://sine.ni.com/np/app/main/p/sn/n21:6/ap/globa​l
    May you have further questions dont hesitate to ask!
    Best regards,
    David Varga
    Applications Engeneer
    NIH

  • Stepper motor vi

    Hi,
    I am relatively new to the labview codes for stepper motor control.
    Let me start by writing what I am trying to achieve. I am trying to control a valve with a stepper motor. I have a bipolar stepper motor from Oriental motor co. mounted on the valve. I dont have the driver/ controller for the motor. I am thinking of buying a third party low cost controller that will drive the motor and use the labview to talk to the controller.
    I am using labview 6.0 and I guess but I am not sure if one can write a simple stepper vi. that will allow one to get around. I already have 6024E data aquisition card running on the computer.
    Can anyone suggest how should I go with in achieving this?
    Thanks
    SAL  

    Hi Sal -
    Most motion applications involve a controller, a drive, and a
    motor.  The controller runs a deterministic feedback-control loop
    and sends updated commands to the drive.  A separate drive unit is
    necessary because the PCI/PXI bus is incapable of sourcing the current
    required by the motor.  The drive also takes commands from the
    controller to handle error situations and shut down the motor
    appropriately.
    NI offers a line of motion controllers (PCI/PXI-733x, 734x. 7350) and
    motor drives (MID-760x, 765x) that fit most stepper and servo
    systems.  The controllers have a driver call NI-Motion and an
    associated API.  This API lets you program your controller in
    LabVIEW, LabWindows/CVI, MSVB, etc.  If you choose to use a
    third-party controller, it will have its own API (VIs and function
    calls) provided by the vendor.
    If you would like to program your own control loop to handle custom
    inputs and algorithms, you can use the NI SoftMotion module.  This
    module allows you to create a custom controller from your LabVIEW
    Real-Time system.
    NI motion controllers and drives can be found here: NI Motion Hardware
    The SoftMotion module is described here: NI SoftMotion Development Module
    David Staab, CLA
    Staff Systems Engineer
    National Instruments

  • How can I control 3 stepper motors w/ amplifier by sending TTL pulses from DIO96

    We have NI PCI-DIO-96 board and we have 3 stepper motors with amplifier and encoders. We want to control the motors by sending TTL pulses directly from the DIO-96 board to the amplifiers. Is this possible? What would you recommend if this is not a good approach? Thanks in advance.
    Roman Zeylikovich

    Roman,
    Thank you for contacting National Instruments. While using a motion controller would be the recommended approach for any type of motion application, you may be able to use your DIO board to generate a TTL pulse train to control the step and direction inputs of your drive and motor. You will need to make sure that the current sinking and sourcing specification for the DIO-96 fits your stepper motor. That board is not designed to source very much current at all so this is one issue you will need to verify. Also, this board does not have any counter/timer logic that can handle quadrature encoder inputs.
    Again, this digital device is probably not the best solution to control a stepper motor, but, depending on your hardware, could be configured to work proper
    ly. The PCI-7334 is a low-cost stepper motion controller that can control up to 4 axes and is designed to easily accommodate these types of applications. You can browse through more information on our Motion controller boards at the following website:
    http://sine.ni.com/apps/we/nioc.vp?cid=3809〈=US
    Let us know if you have any more questions or comments.
    Regards,
    Michael
    Applications Engineer
    National Instruments

  • 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

  • Error -70006 when using stepper motor in Open Loop Mode

    We have a LabView program that runs a test in which a table is rotated. At the end of the test, the table is supposed to rewind. Instead, the following message appears:
    Error -7006 occurred at Read Trajectory status.flx
    Possible reasons: For FlexMotion, an invalid axis number or other resource ID (Vector Space, Encoder, I/O Port, and so on) was used.
    We have the PCI-7344 interfaced with a UMI-7764 and a Zeta4 that is controlling a ZETA83-93 stepper motor. There is no encoder in the system for this motor. The stepper loop mode was originally set to closed loop but the motor behaved erratically (moving multiple times when instructed by MAX to move once). The stepper loop mode was changed to open loop and the m
    otor started behaving properly, but that is when the error message starting appearing. Are there any other configuration settings, such as Primary Feedback (which is now set to Encoder) or ? that I may need to correct to resolve this error?

    First of all I would check a couple of things. The reason why your motor was not behaving properly in closed loop stepper configuration is most probably related to the fact that you don't have the encoder counts per revolution adn the stepper steps per revolution properly configured for your motor. Please follow the instructions found in the following knowledgebase:
    http://digital.ni.com/public.nsf/websearch/29edb56​146f274a386256a1c00624310?OpenDocument
    When you configure an axis in closed loop stepper mode, we use the information of the encoder to generate the adequate velocity profile. If the encoder counts and steps per revolution are not properly matched, then the motor will not execute the moves properly. What you need to do is the following:
    1.-Configure your axis as closed loop stepper in the Axis Conifguration Section in MAX.
    2.- In thbe 1-D Interactive Basic panel, kill the motor and click on reset position.
    3.- Manually rotate the motor one revolution.
    4.- In the advanced panel on 1-D interactive, read the Encoder Value. This is the value you should enter on the Axis Encoder Counts per Revolution under Axis Configuration. Press Apply.
    5.- Go back to the 1-D interactive Basic Panel. Change the bullet selector unbder Stepper Loop Mode from Closed to Open. Run a 10000 step move.
    6.- When the move is finished, read the encoder counts from the advanced panel. This will tell you how many counts you have in 10000 steps. You can now calculate the stepper steps per revolution by the following formula:
    (# of steps per count)*(# counts per revolution) = # steps per revolution.
    Your motor should work fine in closed loop stepper configuration now and the error should not appear. Please make sure you are using the latest version of our driver (Ni-Motion 6.0.1)to avoid older firmware errors and fixed bugs from affecting your system. You can get it from:
    http://digital.ni.com/softlib.nsf/webcategories/85​256410006C055586256BB9002C16DF?opendocument&node=1​32070_US

  • How to run a stepper motor for an amount of time determined by a feedback?

    Hi,
    I'm using labview 8.6 and I'm trying to use a ORIEL sterppermike with a 20025 controller.
    I have implemented a VI that has a stack of commands in a for loop. Every loop has the following sequence of commands:
    command 1) start the stepper
    command 2) wait for feedback to reach a certain number
    command 3) stop the stepper
    command 4) wait a certain time before starting again 
    To start the stepper I use a subvi from the example folder:  
    C:\Program Files\National Instruments\LabVIEW 8.6\examples\DAQmx\Counter\generate pulse.llb
    --> Gen Dig Pulse Train-Continuous.vi
    I don't understand why the sequence get stuck at command 1 and never gets to command 2.
    I attach the vi for completeness. 
    Thanks to anyone that will help,
    Matteo 
    Attachments:
    SRL Matteo2.vi ‏121 KB

    Hi, I'm not sure whether this is the right place for asking this question or not and if not, then please guide me to the right place for asking such question. Thanks.
    I have a stepper motor with the Vector Network Analyzer Anritsu MS4623B. I got it up and running with the LabWindows/CVI. I need to sync the motion of the stepper motor with my data acquisition. Basically, I have to acquire the data in a way that in the start the motor will come back to home position wherever it was and then I want to move it to the specific position to do the measurements (For Example, I want to measure the 40 GHz channel between 1m to 3m movement of a stepper motor on a linear positioning system (ball-screw)). I've interfaced the VNA with the PC using LabWindows/CVI and I've controlled the clockwise and anti-clockwise movements of the stepper motor using LabWindows/CVI but I'm unable to sync the system in a way that whenever I run the code, the motor will run back to the home position and then move to a specific measurement start position and move till the end position and in between do the increment and stop and acquire the data. Is there any one to help me please? It's really urgent please and I'm doing this thing first time so please guide me in a proper way. I shall really apprecaite that and will be highly obliged with you. Thanks for your time and concern.
    Thanks and Regards.
    Attachments:
    VNA & Motor Control User Interface.jpg ‏199 KB
    VNA & Motor Control User Interface.jpg ‏199 KB
    VNA & Motor Control User Interface.jpg ‏199 KB

  • Smc emy2 stepper motor problems

    Hi,
    I am trying to set up a stepper motor to run with labview 8.2. I am pretty sure that the code I have written should work so I am trying to figure out if I have wired everything correctly, I hope this is the right place for this. I have added the description and manual for the SMC EMY2 stepper motor (page 22 is where I am looking mainly for the wiring, I am using the 5-point Stoppable Type) and manuals for the two NI DAQs I am using, NI9474 for the control singals to the motor and NI9423 for receiving signals from the motor. I am using an external power supply with these that is set to 24V. I have the NI 9474 in slot 5 of the cDAQ-9172 and the NI 9423 in slot 6. I have attached to the power supply cable wires wires as described in the EMY2 manual to the power supply and the motor runs fine when using the attached controller, then I have attached the I/O wires as follows:
    Brown - Vsup of the NI 9474
    Blue - Com of the NI 9474
    Pink - line 0 of the NI 9423
    Orange - line 1 of the NI 9423
    Yellow - line 2 of the NI 9423
    Red - line 3 of the NI 9423
    Green - line 4 of the NI 9423
    Purple - line 3 of the NI 9474
    Gray - line 7 of the NI 9474
    Black - not attached
    White - line 2 of the NI 9474
    I can get the NI 9474 to output a signal but the stepper motor does not seem to react at all. I had a colleague recommend that I connect the - terminal of the power supply to the ground terminal, is that a good idea. If anyone can think of something to help that would be great and if you need more information just ask and I'll try to get it.
    Thanks.
    Attachments:
    Stepper Motor Manual.pdf ‏2396 KB
    NI 9474 Operating Instructions.pdf ‏237 KB
    NI 9423 Operating Instructions.pdf ‏401 KB

    Hi rlacroix156,
    Looking at page 22 of the stepper manual, it looks like there are two seperate power supplies that are referenced.  Are you using 2 power supplies? Also, have you considered using just one module since you are only using 7 lines?  Then you eliminate the split grounds between the modules.  Which brings me to another point.  The 9474 DIO lines are tied to the power supply ground.  The Blue and Brown lines you mention, are those DC2 or DC1?
    Kristen H.

  • Can I control a stepper motor by a time varying velocity input?

    I want to control the motion of the stepper motor by a velocity input that looks something like a Sine wave.The velocity is changing as a function of time. Can I change the velocity of the motor at a prescribed time interval?
    Thanks in advance
    Kevin

    Thanks for getting back to me on this. The controller card that I have is the PCI-7342 controller card. The time of a cycle is about seven minutes. I want to ramp the RPM of the motor from zero up to a max value then return it to zero and then go in the opposite direction . A graph of the RPM vs Time is attached.
    I thought that I could input an array of velocities into a Load RPM VI and specify the time for each input.I have not been able to do this as of yet, because the load RPM VI will not take an array input.
    All these inputs would be made in labview so they are inputs for the controller card. I was under the impression that the controller card generates the steps and direction from the data entered in labview and sends the step and direction impulses to the driver. Do I have the method of operation right?
    Do you think this is possible?
    Thanks again

Maybe you are looking for