Settings for stepper motor

Hi all,
          I am trying to control a 1.8 deg step motor of Pacific scientific(N33HRHJ) using Labview 8.2 . I am using it to pull a incremental load ( upto 400 lb)  in velocity control mode - however beyond a certain load the motion of the motor is becoming jerky. I have been using microsteppings of 50,000 for making my moves.
Is there a way to overcome this using the MAX settings - specially the trajectory / control loop settings ?
With regards.
Partha

Hi Brian,
               The motor is connected to a ball screw actuator through a double helical bearing joint. The maximum rot'n speed I am using is 1 rpm. I can clearly feel that the motor is stopping for split seconds, and then again starts working at higher loads.
The drive I am using is Pacifc scientific P70530.
Regards,
Partha  

Similar Messages

  • What's the type of control for stepper motor?

    Hi,
    I'm using PXI-7358 controller, UMI-7774, Industrial Device NextStep third part microstepping drive, stepper motor SANYO-DENKI (type 103-8932-6421, NEMA42) and incremental encoder 3600 ppr (14400 count/round). I want to say what's the NI onboard type of control used to control motor step position? In the case of servomotor the type of onboard control is a PID, in the case of stepper motor what's the type of control? What's the MAX parameters to set for the project specific (overshoot, settling time, rise time etc..)? What does it means "Pull-in Window" e "Pull-in Tries" in MAX? So, it's possible control the stepper motor with user's algorithm control, excluding the onboard control?
    Thanks for your patience,
    Best regards
    Lorenzo

    >
    Matt wrote:
    > Go to SE24.  Type in cl_dd_document and press enter.  Select the methods tab.  Look for the method "CONSTRUCTOR".  Double click on it.   Click on SIGNATURE button.  The types of the parameters are clearly seen.
    >
    > matt
    TYPE and VALUES OF TYPE -- different things. For example, TYPE C -- CHAR. VALUES of this: A, B, C, ..., 1, 2, 3.
    Thus, return to question.
    TYPES: sdydo_attribute(50) TYPE c
    TYPE: sdydo_attribute
    VALUES: ???
    May be, value ABRAKADABRA correct?

  • Stepper motor and loacell PID control - waveform motion.

    Hi, 
    Hardware :  cRio9073, C series module 9403 for stepper motor control and 9215 for load cell data acquisition. 
    I am trying to control a stepper motor in a closed feedback loop system with a load cell. The user would have to input two things : the maximum load applied and the frequency of the motion. At the moment I have it working in open loop controlling how many steps forwards or backwards it does and at what rate, with a display showing the load being applied.
    I am now looking to include the "PID.vi" built into labview into my existing code. I am using the load cell output as the 'process variable' and the 'output' of the PID will control the wait time between an ON and OFF signal to the motor (since I have to do the PWM in software as the 9403 module doesn't do it in hardware. Is this the right way to do it? ) 
    I wish to make the motor do a sinewave motion, thus the 'setpoint' of the PID would be dynamic. I have therefore linked the "Sinewave form.vi" (also built into labview) to the setpoint and the frequency of the "Sinewave form.vi" will be the user input for the frequency of the motor. However my problem lies with the 'Sampling info' of the "Sinewave form.vi" : Previously that is what controlled my number of steps, defining the maximum displacement of the motor. Now I need the peak of the generated sinewave to coincide with the maximum load applied defined by the user. How can I make it do that? 
    I have attached my existing code with how I have attached the PID.vi at the moment. 
    Many thanks for your help
    Lawrence 
    Attachments:
    PIDControl.vi ‏23 KB
    BIOGROWTH.lvproj ‏46 KB

    Hi Lawrence,
    Here is an example PID VI.
    Regards
    Rico P
    Attachments:
    General PID Simulator.vi ‏22 KB

  • 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

  • Stepper motor positioning control system

    hello
    Iam building positioning control system using a stepper motor, and I need to know what are some position sensors available to feedback the position of the stepper motor.. Also I need to know how can use a C code in the labview...For example, if I have an algorithm developed in C; How can I use that code in the labview..
    Thanks
    Shaham

    Shaham,
    Below is a link to several encoders that NI provides specifically for stepper motors.
    Quadrature Encoder:
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/205321
    As far as the C code is concerned, this can be accomplished in two different ways, provided that the code is first placed in a dll file.  
    First, you can import the dll into a project library, by selecting Tools»Import»Shared Library.  This option is good for code that will be used often, as it creates wrapper VIs for each function that can be reused.
    Secondly, a "Call Library Function" node can be used to call a C function from a dll.  This procedure is shown in the following tutorial, and is useful when code only needs to be called a few times.
    http://decibel.ni.com/content/docs/DOC-9069
    I hope this helps!
    Drew
    Drew T.
    NIC AE Specialist

  • NI Motion Controllers and Drives compatibility with stepper motors

    Hello:
    I'm trying to setup a motion control system and I'm facing some trouble. The final goal is to be able to control a couple of stepper motors.We already have a PXI System with a PXI-7354 motion controller, and a UMI-7774 connector block. What we don't have yet is the stepper drives and motors. It's likely that because of torque requirements we may need a gearbox. Here I disclose some of my doubts:
    We are considering the P70360 or the P70530 drives, but I would like to know if it is possible to connect thrid party drives to the motion controllers? What requirements this drives should comply?
    Similar as the first one, Is it possible to connect third party stepper motors to the NI stepper drives? What requirements this motors should comply?
    Finally, Is it possible to adapt gearboxes to the NI stepper motors? If so, Which ones are recommended?
    Thanks in advance,
    Robst.
    Robst - CLD
    Using LabVIEW since version 7.0

       Hello Robst,
    Either the P70360 or the P70530 will be good drives depending on your wattage requirement. A loose rule regarding wattage is not to exceed 80% of capacity. If you think you'll exceed that, buy bigger.
    Regarding third party drives, though many are compatible we cannot guarantee compatiblitty of all drives nor are we able to support them. That being said you may want to take a look at these KBs which describe some issues to be mindful of when looking at third party drives.
    How Do I get the 73xx Controller and UMI-7764 to Drive a Third Party Stepper Motor?
    How to Connect NI 73xx Digital Outputs to Third Party Equipment
    How to connect the 73xx inhibit and command signal outputs to third party drives.
    Some points to glean from the above links are what kind of current gets sinked and sourced by the drives to insure compatibility. Regarding stepper motors, again we will only be able to guarantee compatiblity and provide support for stepper motors provided by NI. That said, the majority of stepper motors I've seen are compatible with our equipment assuming the drive it's connected to is compatible. Below are some articles that may help you make a decision on what type of stepper motor you choose.
    Selecting the Proper Size Stepper Motor
    NI Stepper Motion System Selection Guide
    How Can I Determine My Stepper Motor Wiring Without the Stepper Motor Pinout?
    As for gearboxes, you will just need to make sure that the gearbox you select fits properly with the motor you are using. Often the gearboxes are standardized to NEMA sizes that correspond with the stepper motors. Kollmorgen, who manufactures the motors that we sell, also makes gearboxes. Their gearboxes would be a good place to start.
    Regards,
    Daniel H. 
    Customer Education Product Support Engineer
    National Instruments
    Certified LabVIEW Developer

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

  • 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

  • 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

  • I look for a vi which allows to drive a stepper motor drive

    The stepper motor is: HIGH-RESOLUTION ROTATION STAGES of Newport

    What type of stages do you have? Are they the SR50 series? If so what type of controller do you have? I have VI's for the ESP6000 PC-Based High-Performance Motion Controller (From the Newport Website) that work really well. But these won't work if you don't have the same controller. Do a search on the Newport website for your controller. They will have some VIs and utilities for your specific controller. Here is the link that will show the compatible controllers for the SR50 Series
    Compact High-Resolution Rotation Stages.
    http://www.newport.com/store/xq/ASP/lone.Motion+Control/ltwo.Motorized+Rotation+Stages/lthree.SR50+Series%253Cbr%253ECompact+High%252DResolution+Rotation+Stages/lfour./id.3206/lang.1/qx/product.htm
    Hope this helps, Good luck!
    Greg

  • Stepper motors (for syringe control)

    Hi !
    I'm looking for steppers motors with LV interface for contol of 60-100 ml
    syringes .
    The load capaticty would have to be around 35 lb or 17 kg. The length of
    stroke would have to be up to 5-10 centimeters.
    Any pointers to suitble motors are greatly appriecited.
    Regards
    Anders Björk
    Dept. Analytical Chemistry
    Royal Inst. Of Technology
    Stockholm

    Anders,
    The following page has a number of "Product Adivosrs" one of which is a "Motor Advisor" which has Servos, Steppers and Stages that can be used with NI Motion products and LabVIEW.
    http://zone.ni.com/advisor/
    For each stepper motor the different technical parameters are also listed.
    Regards,
    Kamran

  • VI for a stepper motor (linear actuator)

    Hi everybody,
    I have to controll a linear actuator (DRL28PB1G-03D, Compact Linear Actuator) so that it moves forward and backward. I have a NI PCI-7342.
    Please, Can you suggest me any examples or similar VIs?
    Thanks

    I was originally interested in your post because I am using stepper motors as well.  But anyways, I looked up your motor serial  number on google.  You should really read the pdfs stating how to install it and use it so you don't break anything.  The pdfs help a lot.  http://www.orientalmotor.com/products/pdfs/opmanuals/HP-1420-5E.pdf is the link to the operation manual I found, it SHOULD be the correct one.  But, I will also include the original link where I found the PDF:  http://catalog.orientalmotor.com/item/all-categories/gories-drl-series-compact-linear-actuators-lega... 
    Lester  

  • 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

Maybe you are looking for

  • Lock Screen notifications disappeared 10.2.1

    I own a z10 and I updated the OS to 10.2.1 on 28 Jan and my phone had been working fine until 3 days ago. I was unable to locate my phone so used BlackBerry Protect to ring the loud alarm to locate the handset, once I found my handset I saw that all

  • Importing video from camera hard drive

    How do I import the video from my video camera's hard drive? imovie isn't recognizing the file type. My camera doesn't have any software with it. Do I need to download a certain type of software? MacBook   Mac OS X (10.4.8)  

  • Exception Aggregation (Average of all values 0)  -  Non cumulative KF

    Hi Experts, I am using the Exception Aggregation (Average of all values <> 0) on a Non Cumulative KF. Most of the times i am not getting the desired results but some times it gives me the desired result. my doubt is whether we can use  Exception Aggr

  • ORA-06503: PL/SQL: Function returned without value

    Hello Having a bit of a problem with piplined functions. Why does this work : SET SERVEROUTPUT ON DECLARE TYPE SARRAY IS TABLE OF VARCHAR2(4000); CURSOR CU IS SELECT * FROM DX_XML_ATTENDANCE WHERE STUD_ID = 107777 AND BASE_ID = 94; T_STUD NUMBER(10);

  • Will Labview 7.1 fix scale overlap problem?

    I am having a problem with using multiple y-scales. My program demands that the user be able to add and remove y-scales at run-time as needed. When this is done to the waveform graph, scales eventually begin to overlap and the entire graph moves out