Configure stepper motor with MAX

Hi,
After wiring VI, I don't know what must I do to control my stepper motor?
Can anyone give general information what must to do.
How to configure stepper motor with MAX? I'm using PCI6036E.
Thank you

The answer to your question is dependent on your motor/motor controller and the inputs that it needs. Are you using a stepper motor controller? The PCI-6036E probably won't be able to supply enough current to power your motor (max 5mA) by itself, so you will probably need a stepper motor controller. With the 6036E, you do have 2 analog outputs, 8 digital I/O, and 2 counters (can be used for pulse train generation). Have you considered an NI Motion Control Board? ni.com/motion
-Alan A.

Similar Messages

  • 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

  • Stepper Motor with Linear Stage (Position Control and Data Acquisition)

    Hey All,
    So.. I've attached a stepper motor to a linear stage and so far it's working pretty well.  Using a stepper motor driver from Pololu, I've simplified the control of the motor by just using output pulses from the counter output of a PXI-6143.  I've tested the motor using the Pulse Train examples in LabVIEW and all is working well.  
    My goal now is to allow the user to collect data from a pressure sensor, attached to the linear stage, every X number of steps.  From what I can tell so far, and please correct me if I'm wrong, the motor step movement is synchronised with the pulse train input.  That is to say, if I give the motor a 200 step pulse train, the pulse train ouput is completed at the exact time the motor has moved 200 steps.  From this, I've created a VI that moves the motor X steps, aquires the data point, and then repeats this process for the required amount of data points.  The problem with this is that the motor movement is not continuous; it stops for a split second to take the data point.
    How can I have labview ouput a pulse train of say 1000 steps and record a data point every 50 steps?
    Two ideas that came to mind were:
    1. Use the counter input port on the card to count the pulses being sent to the motor.  
    2. Use an encoder connected to the motor shaft.
    I wanted to stay away from theses ideas though since they require resources from the DAQ card.  
    Thanks,
    Ryan

    Hi Ryan,
    Just to cover all the bases, what version of LabVIEW are you using and can you attach your VI? Initially your ideas sound like they should work, do you expect to be nearly maxing out the DAQ?
    Thank you,
    Deborah Y.
    LabVIEW Real-Time Product Marketing Manager
    Certified LabVIEW Architect
    National Instruments

  • Controling bipolar stepper motors with usb NI-6008 DAC

    hi i need help to get an example vi that explaining how to control two bipolar stepper motors using USB NI-Data acquisition card 6008, i have the drivers of the motors, could any body help me?
    Solved!
    Go to Solution.

    you are more than welcome .. ok i attached a vi that could help you .. i'll illustrate how to connect your driver to your usb data acquisition card.
    1-on the digital I/P O/P side of the DAQ there's a 5V pin, connect it to the both 5V pins (Pulse and Direction) of the driver.
    2- the other 2 pins (Pul- and Dir-) connect it to port0/line0  for Pul-  ,  and port0/ line1 for Dir-.  ( you can configure the ports as u like from the block diagram window of the vi ).
    3- let the enable pins without connection. ( it's normally enabled).
    for motor connection: (dont connect any of these pins to the DAQ)
     there are 6 pins.
     first you need to know the wires of the motor coils, you could test it with any AVO meter.
    1- the first pin connected to the ground of the battery.
    2- the second pin to the positive pole of the battery.
    3,4 the first coil.
    5,6 the second coil.
    try it and i hope i helped you, tell me if it worked.
    Attachments:
    bipolar motor control.vi ‏20 KB

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

  • 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

  • Getting Started 9501 Stepper Motor with Softmotion Error

    Hi everybody! i'am with a cRIO9073, one stepper motor NEMA 23 and one module 9501.
    When i follow step by step the guide GETTING STARTEDNI 9501 C Series Stepper Drive Modules and NI SoftMotion Module
    in the final step, after compiled, when i show the Interactive Test Panel, it appears always the error 6283.
    Someone knows this error and the reason??
    Thankyou very much in advance!!
    Cordialement

    PS: I bought the three elements (cRIO, Drive 9501 and Stepper NEMA 23) from National Instruments, as the NI guide recommends.
    I continue understanding nothing..
    Thanks

  • Running 2 stepper motors with LabVIEW using RMV ST400-NT controller and driver

    Hello, I am new to programming as well as motors in general so please bare with me in my attempt to explain myself. I have a project involving laser therapy and I am attempting to control two stepper motors from Falhauber, Type AM2224-R3-AV-4.8. I will be using a RMV ST400-NT controller and driver. Original plan was to use 3 stepper motors for control in 3 axis but realized 2 axis is complicated enough. My power source is an Agilent E3630A. I am new to this whole thing and from what I have read form examples and other posts is that NI drivers seem to work best for these applications. I've written simple programs from examples, reading and watching videos. I want to know whether it's possible for these to work together using LabVIEW and also a nudge to help me get started would be much appreciated. Can someone please help guide me in the right direction, I feel a bit lost when it comes to all this. Thank you for your time and consideration.  Also, I will be using Windows 8 laptop with Labview 8.5. I have attached pics of components I will be using.
    Justo T.
    Attachments:
    photo 1.JPG ‏1150 KB
    photo 2.JPG ‏987 KB
    photo 3.JPG ‏1085 KB

    Hi jtarula,
    I want to preface this response by saying that I am mre familiar with NI controller and driver rather than the one that you have. I am assuming that you are using the dll provided by the manufacturer here:
    http://www.rmv.com/download.htm
    With these, you should be able to interface with LabVIEW using the call library function node. What the controller is capable I am uncertain of. I am certain that you should be able to since another user has commented on the use in LabVIEW before in another forum post.
    I also want to let you know that LabVIEW 8.5 is not supported on Windows 8, which means that you may run into some compatibility issues. Here is the compatibility chart.
    Paolo F.
    National Instruments
    Applications Engineer

  • Which stepper motor is required to connect with labview

    title:fault detection in pen. i am doing a project in image processing using labview .i want to  interface stepper motor with labview using daq how can i interface and which type of stepper motor is suitable for rolling metal sheet in which the pen is placed at the top

    I would start with the motor and work down, Labview will woek with any.
    1.  Figure out how much motor you need: torque, speed, resolution, size (nema 23, 34 .....)
    2.  Select a drive for your motor: many diferent drivers to control a particular motor, How much current is required, motor voltage, inductance
    3.  Determine the interface to the controller: step and direction, cw/ccw, serial.  (I  like step and direction)
    4.  Determine support options for the motor, encoders, limit switches ...
    5.  Now you can select your ni card to match the interface, (NI Motion- good for copmlex interfaces and multimotor synchronization, Digital/ counter timers simple but limited conmplexity, less expensive but more software needs to be written)
    This all depends on budget and requirements.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Difference between open loop and closed loop mode when finding the index on a stepper motor axis.

    I have a test system which uses a PXI-7352 motion controller with a MID-7602 stepper motor drive to position a 200 step/revolution stepper motor with an attached 1000 line encoder.  The MID-7602 is configured for 64 microsteps per step, giving 12,800 microsteps and 4000 encoder counts per revolution.  The system is controlled using LabView 7.1 and NI-Motion 6.13.  To home the motor, I've defined a sequence in MAX which first finds the reverse limit switch and then moves forward to the encoder index pulse.
    When finding its reference in open loop mode, the system its reference at the same microstep each time.  When findings its reference in closed loop mode, the system finds its reference somewhere within about a 20 microstep wide range.
    I hope somebody out there with more experience with this controller can describe the difference between finding the encoder index in open loop mode and finding the encoder index in closed loop mode. 
    Thanks,
    Mark Moss

    Hello Mark,
    I suspect that the behavior you are experiencing has today
    with the resolution difference between your encoder and your
    microstepping.  Let me illustrate with an
    example:
    Example Setup
    Stepper
    Motor
    NI
    Motion Controller
    10
    steps per encoder pulse (Every 10 steps the controller gets an encoder
    pulse, therefore positions 0-9 all appear to be 0 to the controller)
    The
    system has a maximum of 3 pull in moves set
    Open Loop Scenario
    The
    system is commanded to go to position 9.
    The
    controller sends out 9 pulses.
    The
    motor moves to position 9.
    Closed Loop Scenario
    The
    system is commanded to go to position 9.
    The
    controller sends out 9 pulses.
    The
    motor moves to position 9.
    The
    controller checks its position and sees that it is still at position 0
    because it has not received an encoder pulse.
    Because
    the controller thinks it is still at position 0, it sends another 9 pulses
    as its first pull in move.
    The
    motor moves to position 18.
    The
    controller checks its position and sees that it is at position 10 because
    it has only received one encoder pulse.
    Because
    the controller thinks it is still at position 10, it sends1 reverse pulse
    as its second pull in move.
    The
    motor moves to position 17.
    The
    controller checks its position and sees that it is at position 10 because
    it has only received one encoder pulse.
    Because
    the controller thinks it is still at position 10, it sends and additional
    single reverse pulse as its third pull in move.
    The
    motor moves to its final position of 16.
    I believe something similar is happening with your
    application as it looks for the index pulse. 
    Because the controller does not compensate for what it perceives as
    position error in open loop mode, the motor always goes to the same commanded
    position.  In closed loop mode, the motor
    is bouncing around inside the single index encoder pulse trying to find a
    certain position.
    There are several recommendations I can make towards
    correcting this behavior.  These
    recommendations are in order of effectiveness:
    Setup
    your system so that there are more encoder counts per revolution than
    steps per revolution.
    Turn
    off pull-in moves by setting them to 0 in MAX.
    Use an
    open loop configuration.
    Play
    around with the pull in window in MAX.
    Regards,
    Luke H

  • How can I output a square wave to control a stepper motor using 7332 controller?

    I have the following system configuration for testing a linear actuator (LA):
    LabView 7.1
    NI FlexMotion 7332 Motion Controller
    NI Flex DMM 4070
    The LA is a stepper motor with Step and Direction of Rotation inputs, as well as some discrete I/O for Power Enable and other functions.
    The LA specification only requires that I send a 50% Duty Cycle square wave signal with frequency less than 300 Hz to it in order to make it step.  The LA has it's own power source.  I only need the 7332 to generate the drive signal and the DOR signal to the LA.  Using some of the example VI's, I can get the LA to work, but I will need to incorporate the functions in to a custom application. 
    How can I weed through the numerous advanced functions the 7332 offers and only generate a DOR signal and a step command at a user-defined frequency.  How do I set up the controller for this?
    Thanks

    Hello,
    All the VIs that you can use to create a pulse train and digital I/O from your motion controller are found in the "Analog & Digital I/O VIs" sub-palette in the "Flex Motion" palette. Use "Load PWM Duty Cycle" and "Configure PWM Output" VIs to create the square wave. Use the "Set I/O Port Direction", "Set I/O Port MOMO", and "Set I/O Port Polarity" VIs to create digital output. I hope you find this information useful. You can learn about the specifics of these VIs and their inputs/outputs in the NI-Motion VI Help.
    Regards,
    Aaron B.
    National Instruments

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

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

  • NI Stepper Motor not putting out enough torque

    So I have a motion control system with a P70360, UMI 7772, PXI 7332, and a NEMA 23 stepper motor with 380 oz-in. The purpose of the set up is to rotate horizontally a testing fixture and hold it in position (slowly). Previously the set up was using a motor with 180 oz-in but it was decided that it wasn't enough torque seeing as it wasn't able to fully rotate the fixture, also using a step resolution of 18000, current reduction is disabled, multistepping is enabled, dynamic smoothing is minimal, and load-inertia ratio is set to 0-1.
    When the 380oz-in motor was plugged in it was still unable to rotate the platform completely but it wasn't even able to rotate it as far as the 180 oz-in which leads me to believe it was outputting less torque than it should have been. The only reasoning I could think of for this was that there was an issue with the settings somehow where it was limiting the power being fed into the motor for whatever reason. So I walked through the manual (http://www.ni.com/pdf/manuals/372324d.pdf) and it still wasn't giving enough torque.
    I also read that decreasing the step size would increase the torque so I reduced it to 200 and it started making a grinding noise, which made everyone in the lab stare at me and start laughing... I immediately hit the kill motor button (I've been controlling it using NI MAX).
    So far I can't seem to find anything that mentions the motor making a grinding noise or not pulling enough torque while using the P70360 so here I am asking the community. Why is the motor making the grinding noise (which also seems to become less the higher the step resolution is) and why isn't the motor putting out more torque?
    Also of note, I'm an electrical engineer, meaning my understanding of mechanical terms is limited to the basics.
    Thanks for any help you can give.
    DISCLAIMER: I'm a hardware engineer so I may not be familiar with some concepts/terminology/best practices so... patience is appreciated

    I can't get too specific about the dimensions but it's a rectangular platform about 8 inches wide and 25 inches long (axis of rotation goes through the long way). There are also the UUT seating on one side which is what's causing the imbalance but by placing my lab notebook on the other side it balances out. I would estimate my book to weigh around 2 pounds.
    The exact weight I'm not sure, the platform is attached to two stands through some type of bearings and the motor is turning a part of the shaft that is sticking out slightly.
    On another note though, I decided to attach a oscilloscope to the motor to verify the signals were correct. I had made all the connections, double checked them to make sure all my connections were correct and weren't shorting then turned on the power. As soon as I did there was a white flash from the driver, I turned off the power, and I could smell something was burning. I took the lid off but couldn't see any immediate burn marks anywhere nor was there any visible smoke, just the odor. I decided not to try it again and my principal engineer has been trying to convince me to use another companies motion system. So sadly this may be the last well funded venture into NI motion control I take.
    I'm still going to try to get in touch with a rep and see what I can do about it including taking into consideration the possibility of a gearbox but it's going to have to be on my spare time :'(
    DISCLAIMER: I'm a hardware engineer so I may not be familiar with some concepts/terminology/best practices so... patience is appreciated

Maybe you are looking for

  • My Safari 6 crashes every time I open it - bad window/site?

    Hello all, My Safari 6 crashes every time I try to open it.  It initially crashed on a bad site that was trying to run some sort of suitability check (java, etc.) and now it seems that Safari attempts to reopen that link when I re-invoke it.  I'm not

  • Adobe Flash Player will not play videos on a specific website.

    I use windows 8.1 with a 64-bit operating system and and a x64-based processor. The browser is Firefox 35.0.1 and the Adobe Flash 16.0.0.305. When i attempt to view a video and a specific website the flash player displays its loading circle status be

  • Setting different vibrations for contacts is not working in iOS 7. Thoughts?

    Setting a different vibration alert for a variety of contacts "appears" to be working; the settings are accepted and visible, however, when an incoming text arrives, they all vibe the same - not differentiated. <shrug>.  Using iphone 4S / iOS7

  • Script  -  Space in Main window

    Hi all,     I have designed  main  window  as such it matches the statinary requirements.   the mainwindow  has BOX command  so it is like  table of  2 rows and 5 columns. The database fields  present in the script gets displayed  on the mainwindow 

  • Creating and updating cross-references in a book

    Hello everybody, I created a book of several files. Now I would like to create and update cross-references from one chapter to another. What do I have to do? (I use Framemaker 8). Thank you for your help. Bye Vreni