Step motor control with a time delay

Hi all,
I am trying to control a step motor to move in vertical direction by Labview2010. The specific Labview function blocks are created by the manufacturer of the step motor. Now the axis can move up/down properly but my question is that I want it to move with a time interval. For example, we set the desired position to 10mm and waiting time 1s. When I click on the start button once only the axis moves 1mm and wait 1s. Then axis moves another 1mm and wait 1s. This action will obviously repeat 10 times until the axis reaches 10mm position.
I will be very thankful if someone could give me some hints.
Best regards,
Nicky
Solved!
Go to Solution.

You're welcome
You should some more to the code so that it's more reliable. There might be some miscalculation between the travel distance and the resolution, i.e. 5mm travel and 2mm resolution will give the forloop 2,5. This should be either 2 or 3. I'm not quite sure how the for loop handles this. I think it will round to nearest. You should anyways check it out. Also avoid using 0mm.
Good look with your project 
Regards,
Even
Certified LabVIEW Associate Developer
Automated Test Developer
Topro AS
Norway

Similar Messages

  • Step motor control with a time interval

    Hi all,
    I am trying to control a step motor to move in vertical direction by Labview2010. The specific Labview function blocks are created by the manufacturer of the step motor. Now the axis can move properly but my question is that I want it to move with a time interval. For example, we set the desired position to 10mm and waiting time 1s. When I click on the start button once only the axis moves 1mm and wait 1s. Then axis moves another 1mm and wait 1s. This action will obviously repeat 10 times until the axis reaches 10mm position.
    I will be very thankful if someone could give me some hints.
    Best regards,
    Nicky

    You're welcome
    You should some more to the code so that it's more reliable. There might be some miscalculation between the travel distance and the resolution, i.e. 5mm travel and 2mm resolution will give the forloop 2,5. This should be either 2 or 3. I'm not quite sure how the for loop handles this. I think it will round to nearest. You should anyways check it out. Also avoid using 0mm.
    Good look with your project 
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • Ceate idoc with some time delay

    Hi Friends,
    i am new to xi guide me How to create idoc flat file with some time delay with out using BPM

    Hi ,
    Please clearly  describe your scenario  . Then only you will get correct answers  .Already you have Opened same thread  and  answered by Vijay

  • Closed loop control of step motors possible with 7344?

    Hi All
    I have been looking around here for a while for an answer to this question.
    For me, a closed loop control system is correcting for following errors all the time, also when the move is complete.
    If the load on a system changes, there will often be a need for compensation in order to keep the position right. Then you need a closed loop control system.
    I have made a system using DC motors with a 7342 controller. We are in the process og getting a new similar system, where the manufacturer chosed stepmotors in the believe that it can be used in closed loop.
    Is it really true that the NI version of closed loop is only performing a what you call a "pull-in" at the end of the move in order to correct for lost steps or flexibility of the connection between motor and object/encoder?
    I would call this "backlash compensation" or something like that.
    Why dont you make a real closed loop option. The control voltage from your servo motor control, could be fed into a voltage-frequency converter with a matchin sign signal.
    This shouldn't be too complicated to accomplish.
    /b

    You are right. NI motion control boards don't apply a control algorithm
    during moves when configured in closed loop stepper mode. In this mode
    the board monitors the following error during the move and generates an
    error when the following error limit is exceeded and they start the
    pull-in moves at the end of the move if necessary.
    If you really want to do PID control with stepper motors you still
    could connect an external V/f converter to the DAC outputs of the board
    and control the axes like DC motor axes. Some vendors implement this
    feature on their board but NI has decided not to do that as we don't
    think that this approach provides a good solution. Here are some reasons:
    The most important issue is the fact that you could easily exceed
    the maximum rate of change of the motor frequency in the case that the
    following error increases during the move. For a DC motor this would mean that the
    voltage of the controller increases to compensate for this error and
    the motor will follow - probably with some delay, but it will follow. For
    the stepper this could mean that the acceleration becomes so high
    that the motor stops immediately as it can't follow with a delay like a DC motor. What
    should the controller do then? Restart the move automatically? Generate
    an error? There is a big chance that you end up with a system moving in a stop and go mode.
    The second issue is related to the control algorithm itself. The transfer function of a stepper motor is not really linear so it will be quite hard to find good tuning parameters. A DC motor can be tuned by analyzing the step response and the Bode plot. For the reasons that I have described in 1.) this won't work for a stepper so how should you tune it?
    I have talked to some  motion control engineers who have tried to control steppers with a PID algorithm and they all agree that this is a real pain and it's not recommended.
    So if your system requirements involve online following error compensation I strongly recommend using a DC motor.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • Hardware Selection Step-motor Control

    Hi
    I would like to control step-motors. I have a hardware driver for control but I need digital outputs for direction and start/stop of the hardware driver. May I use NI USB-6501 (24-ch, 8.5 mA) or myRIO?
    Regards

    With the LabJack U3, if you use software to command each digital output transition (output-high or output-low), consider that it takes roughly 600us for each command-response per Section 3.1 of the U3 User's Guide.
    There are a couple other ways to send pulses from the U3.  You can use the WAIT technique where you send a bunch of commands (high-wait-low-wait-high-wait-low ... and so on) to the device in 1 packet, or you can use a timer to generate output pulses via hardware timing.  The timer pulse output can be continuous, or you can use another timer to stop the output after a specified number of pulses.  See more in our Waveform Generation Application Note.

  • Step motor control

    I would like to buy a hardware and a step motor  for control with labview. Could you please offer any configuration . I have to push with this motor a load equal to 1 kg.
    Regards 

    I'm going to assume that you are familiar with National Instruments Offerings for Motion, and that it is not what you are looking for.
    Here is a link, just in case: http://www.ni.com/motion/
    The most basic stepper motor control system will look something like this:
    LabVIEW-compatible DAQ with Digital Outputs, and Counters.  These provide the Step and Direction signals.
    A Stepper motor.  NEMA 23 and NEMA 17 are common choices.  Larger (NEMA 34) and smaller (NEMA 11, NEMA 8) choices are also avaliable.
    A stepper driver with support for step and direction signals in the voltage range that your DAQ can supply.  This is typically going to be 24 VDC.
    The torque capability will depend on the driver, the motor, and the speed that you need to run at.
    Machine Vision, Robotics, Embedded Systems, Surveillance
    www.movimed.com - Custom Imaging Solutions

  • CRio Steper Motor Control NI9512 step by step

    Hello,
    I have a project at University, and I need to design a LabView VI to controll a steper motor. Apparently all hardware is installed correctly: cRio-9074 and NI 9512. The motor only needs to turn for a start. Problem is, I am all new to Labview and I have no clue how to programme such a VI. I have completed all the basic tutorials on how Labview works, but I need help on how to direktly control the motor via a VI.
    Pls Help me!
    Solved!
    Go to Solution.

    Hey Thorsten ,
    there is already a post open regardin your topic.Please continue Discussion here:
    http://forums.ni.com/t5/Motion-Control-and-Motor-Drives/Controlling-a-Stepper-Motor-with-LabVIEW/td-...
    Regards
    Roman Imhoff
    National Instruments

  • Trouble with Serial time delay

    hi,i need help.
    my problem is that there are no output and input parameter is changing very fast,but subvi has results only when the subvi runs in the process of highlight.
    i think it might because of time delay,but i don't kown how to correct it.
    thank you very much.
    Attachments:
    电源模块串口通信初版 - 副本.vi ‏28 KB
    子vi.vi ‏26 KB

    I cannot open your VIs.  It appears that the language differences may be an issue. LabVIEW does not recognize them as valid LV files.
    Generally when a VI runs correctly with Highlight Execution on and does not run correctly with it off, it is an indication that there are timing issues in the VI.
    If you are reconfiguring the serial ports in the 54 module version, you may not be allowing enough time for port to get set up before attempting to communicate. Do you have 54 different serial ports? What kind of hardware are you using for the ports?
    Lynn

  • Oriental Motor control with labview

    I am trying to control third party (Oriental Motors) stepper motor
    controllers with Labview. I have managed serial communication, but command
    aren't being sent. Can anyone help me?

    Hi Azim,
    It looks like Maxon posted a driver for the DES servoamplifier here: 
    http://shop.maxonmotor.com/maxon/assets_external/Katalog_neu/eshop/Downloads/maxon_motor_control/4-Q...
    The DES can communicate via a command voltage from a motion controller, in the NI case you would use a PCI or PXI 7340 or 7350 series motion controller, and set the drive to +-10V command input mode. 
    It can also communicate over Serial RS-232 or CAN. I believe the above linked driver implements serial communication, but I haven't had a chance to look at it, so I'm not positive. 
    See description of modes and comm interfaces here:
    http://shop.maxonmotor.com/maxon/assets_external/Katalog_neu/eshop/Downloads/maxon_motor_control/4-Q...
    Best Regards,
    Nate

  • Motor control with 6024e

    I would like to set up a lab to control 1 to 4 axes using the 6024E card.
    Is it possible? I could do my own signal conditioning and amplification.
    I intend to try to use both stepper motors with some closed loop and brushless motors also with closed loop.
    Has anyone got some example solutions for this including what type of motors were used + labview VIs.
    Thanks
    Olivier

    I'm not sure if that would be possible/ or at least worthwhile, using one e series card. Have you considered using a motion control card? This will make the hardware and software implementation so much easier, and could be a cheaper solution in the long run:
    http://www.ni.com/motion/

  • Simple motor control with Labview

    Can anyone suggest a simple motor to be controlled by labview. I am interested in making a small scale elevator that is controlled with a labview interface. If anyone could point me in the right direction it would be greatly appreciated. - Bryan

    Attached is the vi for the program.  I will also try and attach the C code for the project.  It took a lot of failed attempts to get it working so I hope this works for you.  I don't have a schematic for you, but if you look over the C code it should let you know.  Also I used the CCS development kit 16F877A.  I'm not great at programming in C so there is a good chance you can clean it up a bit.
    I'll keep an eye on this post if you have any questions, when winter comes I'll probably work on this some more.
    Message Edited by nutmegzzzz on 09-19-2005 01:56 PM
    Attachments:
    Serial Read with Timeout version 1b.vi ‏169 KB
    LED and Motor Control from LabView - Complete.c ‏3 KB

  • Advanced, Connected, Industrial Motor Control with Zynq-Take 2: The Avnet Intelligent Drives Kit II

    Avnet has just announced a revised Intelligent Drives Kit II for advanced, connected motor control based on the Xilinx Zynq Z-7020 SoC. The kit includes:
    An Avnet ZedBoard Z7020
    Xilinx Vivado Design Edition voucher
    Analog Devices AD-FMCMOTCON2-EBZ Module
    Brushless DC motor: 24V, 4000 RPM, with Hall sensors and a 1250 counts/rev indexed encoder
    8Gbyte SD card programmed with application
    Ethernet cable
    HDMI cable
    Micro USB cable
    12V ZedBoard power supply
    24V AD-FMCMOTCON2-EBZ power supply
    Linux drivers, application software, HDL source, reference designs, full schematics, and Gerber files
    MathWorks Motor Control Design Package (optional, North America only)
    Dynamometer dynamically adjustable load system (optional)
    Avnet Intelligent Drives Kit II
     

    Just to clarify one of the bullets, the MathWorks Motor Control Design Package is available from Avnet in North America, but the component products are available worldwide from MathWorks directly. Visit mathworks.com/zidk for a list of required products, getting started information, and links to tutorial webinars, or contact [email protected] for more information.
     

  • Can anyone send about ALE-MESSAGE CONTROL with real time scenario?

    hi friends,
    i have doubt on ALE-MESSAGE CONTROL METHOD.
    SO, anyone can explain with a real time example.
    If have a chance please send with screenshots or with navigations

    Check out this blog:
    Message Control (Output Control) for ALE
    Raja

  • Using Borland C++ in a vi to use a JR Kerr steper motor controler

    I am trying to develop a vi to move a pitot tube with a steper. The control hardware is a JR Kerr Pic-Step board. The software is borland C++
    Thanks!!

    vi...are you using LabView? "the software is C++" do you mean the drivers for the PIC-Step board? Have you established any kind of communication? What part of the process is fighting you right now?
    Grant M. Johnson
    Project Engineer
    LECO Corporation

  • Feedback application for a maxon brushed motor controlled with a EPOS2

    Hi,
    I want to implement a VI that controls a linear stage moving vertically. On the platform that is mounted on the linear stage i sitting a load cell. The platform has to move up and down in a sinusoidal kind of way, maintaining a constant load on the load cell (one can imagine a piston and cam system, where the piston is applying the load).
    The load cell is connected through a PCI 6014 and is working fine. 
    The computer can communicate with the motor through the "EPOS studio" provided by maxon, but it cannot perform such an advanced task and therefore I decide to use labview.
    I'm trying to modify the VI that is provided by maxon by implementing a feedback with the voltage from the load cell. I want the motor to move in such a way to maintain the voltage from the load cell constant. 
    I'm not very proficient with labview and I would like to know if this is possible and if so can anyone give some directions?
    Thank you very much,
    Matteo 

    Dear Jochen,
    Thank you for your answer.
    1. Which type of EPOS drive are you using? Could you please provide a link to a datasheet? 
    I am using a EPOS2 50/5, see attached pdf.
    2. Are you using a CANopen interface to the EPOS drive and is there also an option to use an analog signal as torque command?
    No, I'm not using the CANopen interface, but the labview VI provided by maxon (see attached).
    No, the controller has no input analog signal capability. 
    3. Are you using LabVIEW for Windows?
    Yes. 
    4. What's the voltage level of your load cell signal?
    +10V to - 10V 
    5. Do you have any idea about the required control loop timing?
    I'm not even sure I understand what you mean, so no, I don't.
    I just want to add that my application won't require a high speed. The vertical motion will be around 2 cm/s at most 3 cm/s and I was considering that quasi-static.
    Thanks a lot,
    Matteo 
    Attachments:
    EPOS2-50-5-347717_09_EN_303.pdf ‏472 KB
    maxon EPOS.zip ‏1520 KB

Maybe you are looking for

  • Setting up iPod Mini with a B/W Power Mac

    I inherited an iPod Nano from my daughter. When I first plugged it into my Mac via a USB 2.0 PCI card, the computer noticed that it did not have my daughter's music selections in iTunes and asked me whther I would like to transfer the selections sinc

  • HT1620 How can I do upgrade my iPhone 4 iOS 6.1.3

    Plz help me.......

  • Configure InstanceName

    hi Recently Steve Muench posted this discussion message at http://groups.google.com/group/adf-methodology/msg/5b8bd1437d87b4e5 An ActionBinding can call backing bean method by using an EL expression in the action binding's "InstanceName" attribute in

  • Whatsapp on iPad mini with "Cellular"

    I have recently purchased an iPad mini wi-fi   Cellular. I want to use Whatsapp on the iPad. It is not installing. Why should this be so especially since apple has provided facility of "Cellular" and i have a cellular connection with a number? Can so

  • RPE-01008 and RPE-01009 when executing flatfile mappings

    Hi all, I'm experiencing problems when executing a flatfile mapping on a large source file. My source-file is around 450Mb in size and contains around 2,5 Million records. When executing the generated SQL*LOADER control-file by hand all works fine. W