Controlling XY table using a stepping motor

Hi all,
I want to control an XY table using a Lang MCL 2 stepping motor and for that I'd like to use a pre-made toolkit instead of programing all using DLL's. Any suggestions?!
Best Regards,
Seno

Hi,
I have already found a toolkit that is so useful for my purpose, but the problem is that its documentation is missing. Any idea where I can find it?
attched is a pic of the toolkit VI's.
Best Regards,
Seno
Attachments:
Lang.jpg ‏418 KB

Similar Messages

  • Using FieldPoint to control step motor

    I am having problem positioning a step motor. Here is what I am using.
    Step motor 200 stp/rev. with a 500 line quadrature encoder
    A SS2000D6 SLO-SYN Drive
    Field Point FP-Quad-510 for the encoder
    FP-PG-522 for the Pulse generator
    FP-DO-403 for signals for the SLO-SYN drive
    FP-DI-330 for digital input signal for switches
    I am able to drive and control the speed and direction of the step motor also display its position. But I am having problem when I want to move a position and stop. I can see the counter working when it reaches the number I want to stop it flys by. If I slow down the step motor way down the encoder moves so low it counts in batches of 2 or 4. Does any one have an idea what can I try or do.

    Hello Toro,
    It's good that you listed all of your FieldPoint hardware, but which of it is relevant for this issue. From what I can tell, and please do correct me if I'm wrong, is that the FP-Quad-510 and FP-PG-522 is of relevance. You determine the location you want it to move to, and you then start the pulse generation according to the reading from the FP-Quad-510. Is this correct? The problem isn't the quadrature encoder measurements, but the pulse generation.
    Does the position change ever stop? How do you currently have it programmed such that it knows to stop at a certain position. There is a command used for the FP-PG-522 which will stop it's pulse generation immediately or on its next pulse. Page 8 of the FP-PG-522 Operating Instructions read:
    The Control command supports two actions: Stop Immediately and
    Stop After Current Pulse. Both of these actions can stop a finite
    pulse train. Stop Immediately stops pulse generation immediately.
    The channel goes into the idle state, and, if the output for the target
    channel is on, it is turned off. Stop After Current Pulse ends the
    current pulse train after the current pulse is finished.
    =====
    Let me know your thoughts, questions, and comments.
    Jared A

  • Connection to a step motor via usb

    Hello.
    I'm using a step motor with mini usb port in it. http://www.trinamic.com/index.php?option=com_content&view=article&id=247&Itemid=359 
    I have installed the usb driver from the link above. So it's visible in MAX (com 3) but I can't see it in the list of targets and in the list of connected instruments in the Instrument Driver Finder.
    Can anybody help me, please? Thanks!
    P.s I'm new to LabView.

    Hi Oleksiy_K,
    it seems the device has as interface a virtual COM port, that you can also see within the MAX.
    As I interprete the situation you have to use the VISA API within LabVIEW to programm the communication with your hadware device.
    I found documentation on the device's manufacturer that contain the commands...
    PDx-140-42-SE / TMCM-140-42-SE TMCL™ Firmware Manual (V1.05 / 2009-OCT-21)
    http://www.trinamic.com/tmctechlibcd/PANdrives/PD-140-42/PD-140-42-SE_TMCL_firmware_manual.pdf
    As far is I know you have to create the LabVIEW Interface by your own, because there is no one publicly available.
    Kind regards
    Tobias S.

  • How to control steps of a step motor using labview?

        Hi, I'm really beginner on labview and I need to make a VI to control a step motor. For each n steps, a sensor must observe the position of a mechanism and save in a table based on the number of steps taken. I've already have the sensor's driver, but I don't know how to comunicate labview with the step motor.
       I've seen some samples here, but they weren't enough. I need to buy some specific hardware? What's the difference between using VISA and Motion NI 77xx? Where I write how much steps I want it moves?

    HI 1M2S,
    You have many ways to communicate LabVIEW with a step motor. Are you using a IC step motor driver or a NI module step motor driver?
    If you a using an IC step motor driver you can use serial port or DAQ digital output to control the step motor steps.
    If you are using a NI step motor module you need use NI Motion functions.
    Best regards,
    Abel Souza
    Engenheiro de Aplicações
    National Instruments Brasil

  • 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

  • How to control the step motor in this situation?

    I have a PHI TRIFT3 ToF-SIMS instrument. The instrument comes with a default
    software. However, the software don't offer fine step motor control. I want to control
    the step motor using Labview.
    I got some info from a Japanese engineer of the company.
    The step motor controller is connect to a card in ISA slot. In the default software, I
    can send command like D2000(distance 2000) and A100(acceleration 100) to "port 2"
    to control the motor. I have a manual of the commands.
    However, I don't know how to send command from Labview. Here is a joysticker
    connected to COM1, COM2 is used for other vacuum control. The joysticker can also
    control the motor..Here are some reply from the company about the control.
    "We do not use special driver for control the step motor.
    This is just sending the serial command via RS232C per command instruction I
    sent you before. The only difference is, to simplify the hardware, we just talk to data acq
    module(wave form card) via PAHOST card(installed in ISA bus slot of the PC)
    to passthru the RS232C command to stepper motor control unit.
    If you try to talk to step motor. just send the RS command from Labview
    platform. (of course need to connect the step motor controller from PC,
    default TRIFT PC does not have a spare COM channel, might be need to add
    serial etension card or add the computer for Labview control)
    "TRIFT PC passthru the RS232 command throught ISA bus to PHI data
    acquisition box to stepper motor control.
    Joystick handled by default software , convert to stage movement
    command X and Y then send thru to ISA. "
    I tried to use the Basic Serial Write and Read.vi to send command to COM1 but I always
    get an error"1073807246 ocurred at property node(arg 1) in VISA configure Serial prot(Instr).vi->
    Basic Serial Write and Read.vi  Possible reason: VISA: the resource is valid, but VISA cannot access
    it."   I think this happens because the default software is also open and trying to control COM1.
    What should I do to accomplish the step motor control? Thanks a lot

    Just to start from scratch, have you verified that you can do basic communication with your serial port, ie successfully perform a loopback test?  Please let me know, and we will go from there.
    Logan S.

  • Control step motor explanations

    Hello,
    I would like to control a step motor with computer through a cRio solution and a module: NI9512
    I already saw what can be requested for the experiment:
    A controller Ni cRio 9073, in order to plug the module
    A power supply 24VDC
    Step motor
    Nevertheless I noticed that I could also have needed a Step driver (like the P7000). What is its role? What the difference between the Step driver and the module NI9512?, Does I required the both ?
    Thanks you for your responses,
    Regards

    Hi,
    one 9512 provides connectivity for one stepper axis. The same is true for the P70530 drives.
    Using the drive interface modules is probably the most reasonable method to drive stepper motors with a cRIO system. It requires no FPGA programming and provides a very easy to use API (NI-SoftMotion). You may want to have a look at how to configure and program such a system in this short webcast.
    Of course you also could use digital I/O modules and FPGA programming, but this would result in significantly more work. With the drive interface modules you should be up and running in several hours (including cabling and configuration). With the manual approach the setup could easily take several days to weeks (consider extensive testing and recompiling of your code). If you need to meet very special requirements, this is still worth the efforts, but for standard stepper motion control tasks I strongly recommend to use the drive interface modules.
    Kind regards,
    Jochen Klier
    National Instruments

  • Problem while creating table maintenance generator using two step

    Hello All,
    I have created a Z table in which I have 7 fields, out of which 6 are character fields and 7th field is of type INT4
    Now when I create the maintenance generator using TWO STEP approach, the 7th field i.e., of type INT4 is not available in the first screen (the table control screen). This screen only has 6 fields for display.
    But when I click NEW ENTRIES button, I get the next screen which has all the 7 fields.
    But if I create the maintenance generator using SINGLE STEP, all 7 fields are displayed in the first screen.
    Please suggest. Let me know if you require some more explaination.
    Thanks & Regards,
    Tarun

    Hi Tarun,
    Go to the layout and increase the size of the Screen. or at the screen attributes change the length and width values.
    You know that initially the screen occupies default size only.
    Hope this would serve your purpose.
    Cheerz
    Ram

  • Assigning digital port to control stepping motor

    Hi
    I want to control optical encoder, DC motor, Digital camera, Stepping motor, Electric lamp using LabVIEW and Data aquisition card. I am
    facing problem in interfacing stepping motor to DAQ device and configuring the digital output port using measurement and automation explorer.
    I am attaching the document showing configuration of measurment and automation explorer. I want to assign four line digital port for controling
    stepping motor. I want to assign DIO0,DIO1,DIO2,DIO3 for stepping motor. But the signal is going to other ports as well. Please somebody help me
    out of this problem.
    Jayaprakash.
    Attachments:
    Measurment and automation explorer.doc ‏99 KB

    Answered on your other post.

  • Whether the NI step controller can control the digital servo driver and motor

    I want to you can help me confirm whether the NI step controller can control the digital servo driver and motor.If can,what is the differents between servo controller and step controller to control servo motor?Thank you so much!
    Best regards

    The PCI/PXI/FW 7344 high precision controller can be used to control both steppers and servo motors. The older PC Step controllers are made for stepper only control. The difference in the two control types is with stepper control, the controller outputs two digital signals that control the step and direction of the motor. The drive uses these digital signals to energize the stepper phases and commutate the motor. In a servo system, the controller outputs a -10 to 10 Volt analog signal that the drive then uses to output the appropriate current to the motor which is proportional to torque.
    You can get more information from the following website:
    http://zone.ni.com/devzone/devzone.nsf/webcategories/69771825AE23E98E86256786000BEA02?opendocument
    Please let u
    s know if you have any further questions.
    Regards,
    Andy Bell
    Applications Engineer
    National Instruments

  • Best way to optimize the readout of a photodiode using motorized stepping motors?

    Hi, I'm relatively new to LabVIEW but have now got a mirror motorized with two stepping motors. I reflect a LASER beam off the mirror and onto a photodiode, whose value is read into the computer via an oscilloscope. I would like to optimise this signal somehow by moving the motors but can't see how without using brute force (which might be ok with just two degrees of freedom, but ideally I will add some more later).
    Is there any function that does this easily using the position of the motors and the signal input?
    Thanks for the help!
    Kane

    I think you are going to have to build a feedback loop to determine if the photodiode signal is getting stronger or weaker.   Technically you probably could use a PID control, but this would probably be an overkill.
    You could use half stepping once the photodiode signal "peaks".
    Generally speaking, measure the diode, step one axis, measure again, analyze signal strength.  You would have to decide how to handle the situation where one axis is peaked, but then peaking the other axis allows for the first axis to peak again.
    From the LabVIEW POV you could use a state machine to loop through the measurement, analysis, and axis movement.  In a simple method you could use a shift register to hold the 'last value' and compare the new value against that.
    So generally speaking you could use PID functions to manage your system, or you could use a more simple approach using a state machine in a loop with a few states to measure, analyze, and control motion.
    Mark Ramsdale

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

  • 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

  • How can I control my step motor

    I am using a 6006-DB 3-mothor driver and a NEMA step motor model 405-SM, both from AMSI corp. I would like to control my step motor using LabVIEW. We use the LV. 5.1.1 version and we have a PCI-MIO-16E-40 as adquisition card.
    The sistem I want to built is to control my step motor and while turning detect the intesity variation on a photodetector which is conected to my adquisition card.
    I wonder if somebody has an idea how to do that.
    Thank you in advance
    Daniel Hernandez

    Ok I understood, I can use my PCI-MIO-16E card to control my steper motor driver, I will try to do that. But, if I use a DB-25 connector, how can I use my PCI card??
    I was thinking to use the parallel port, directly, to conect my steper motor driver.
    I attache some VI someone passed me. (It use a Setbit.vi and out port.vi)
    Attachments:
    MoteurGOTO6007-DB.vi ‏81 KB
    MoteurGOTO.vi ‏87 KB
    Commande_moteur.vi ‏10 KB

Maybe you are looking for

  • My iPhone4 doesn't want to charge or turn on

    Last week my phone suddenly turned off when I took it off the charger. I had to shake it so it can turn, sometimes it doesn't even turn on. It doesn't charge fully, it usually stops at 40% and it usually only stays on when it's plugged in a charger.

  • Disk error when burning in 10.3.9

    This burner sometimes works, sometimes not. Any way to confirm its the drive and not the software? $200 for a new drive is an expensive bad guess.

  • Logitech Wireless Headset and Mac Book Pro

    I recently purchased a Logitech H600 wireless headset. However I cant get my MBP to recognise the nano receiver. I have managed to get a connection between the MBP and the headset using standard bluetooth however the mic on the headset is not working

  • IS there a number to call for itunes??

    Ive sent the email for help, and have yet to get a reply. I cant log into my account, when I do the "Forgot Password" I dont get that email either. I get nothing!!! Has my giftcard too, and I guess Im out that!

  • File searching

    Dear all, Can you help me ? Let's say in a folder contains : - A.doc - B.txt - C.dat How can I get filename, based on the extension (e.g. "doc" or "dat") ? Thank you