Limit switch to reverse motor movement problem

Hi guys, recently i am trying to create a robot that uses RF controller, arduino and labview. The issue i facing now is i am unable to trigger my limit switch to make my motor movement reverse when it hits on it. For normal motor trigger from lab view, it is working perfectly. But when comes to limit switch, it has no response. The following files is my VI and arduino coding. For the arduino coding, lets just focus on case '1' since the triggering is not yet complete. The motor i use is only a normal DC motor without encoder and connected to a L298 board. Is it my VI problem?
Attachments:
Movement Control Key control5.vi ‏70 KB

1. Basically, i just remove it?
2. The limit switch is wired like a (pull up resistor concept) and connected to other digital port in arduino. It sends signal into interupt the motor movement.
case '1': //if the controller type f
Serial.println("forward");
if (switch1 == HIGH)
digitalWrite(en1,HIGH);
digitalWrite(en2,HIGH);
digitalWrite(en1o2,HIGH);
digitalWrite(en2o2,HIGH);
digitalWrite(in1,LOW);
digitalWrite(in2,HIGH);
digitalWrite(in3,LOW);
digitalWrite(in4,LOW);
digitalWrite(in1o2,LOW);
digitalWrite(in2o2,LOW);
digitalWrite(in3o2,LOW);
digitalWrite(in4o2,LOW);
//delay (500);
3. The motor is control via wireless; controlled from labview which i assign the key 1,2,3,4

Similar Messages

  • REVERSE GOODS MOVEMENT / problem with status EDEL

    Hi Gurus,
    I made an reversment with VL09  for a delivery document.
    Then the equipment get a status EDEL -Assigned in delivery note.
    Now i cant move the equipmnet from warehouse.
    How can I fix this problem.
    Thanks...

    problem solved

  • Reverse goods movement problem

    In order to prevent user to input the wrong reverse date (Rvrsdate), I would like to make reverse date equals to post good issue (Actgidat) in t-code VL09,could experts tell me how to make it ,thanks

    Hi,
    Normally while doing reversing in VL09, there is a tab 'Define date, click on that and you can change or make it equal the date to your good issue date and then execute the reversal
    Revert back if not answered
    Rgds
    psk

  • Limit Switches and Contour Moves.

     I am developing a 4 axis contour motion system and need to know how to handle if one of the axis activate a limit switch.  Does the activated axis have to be moved off the switch so the contour move can continue or can you move it off with a co-ordinated contour move?
    Configuraton
    LabVIEW 2013 SP1
    Softmotion 2013
    cRIO Crate
    NI 9514 C Series Servo Drive Interface with Encoder Feedback (all 4 axis_
    Paul

    The controller that I am developing is a four-axis inspection delivery tool. It is made up with a vertical pole that can be moved up and down and rotate. At end of the pole there is an "arm" that can be raised and lowered; the arm can also rotate +/-45 degrees. What I want to do is to move 2 to 3 axis simultaneously so the tool end can travel along set paths. For example if the tool end is to move horizontally, the arm has to be raised (rotated) while the overall tool is lowered. To calculate the coordinated time path of each axis, I use an inverse kinematic calculation that creates a table of positions (for each axis) with the set time interval, thus the use of multi-axis contour move.
    The problem that I am worried about but have not had a chance to test, is what happens when on the axis activate a limit switch, say for example the tools vertical upper or lower travel limits. With standard single axis point-to-point movement, you can always command to travel off the limit (but not through it) but it is not clear what will happen when using contour moves (single or multiple-axis). Thus the question, how to handle, when one of the axis of a coordinated contour move motion activates a limit switch.
    Cheers
    Paul

  • Finding reverse limit switch

    When I issue a flex_find_reference to search for the reverse limit switch and this switch is active I get a modal error -70119. If the switch is not active, the the functions finds the reverse limit without errors. Is this the correct behaviour for this situation ?

    This behavior would be normal if activating the limit also sets it to the state where it would be when the stage enters the limit. This will depend on the polarity that you have configured for the limit switch. An easy way to figure this out is to go inside Measurement and Automation Explorer and under the motion controller settings go into the 1-D interactive advanced panel. If the light for reverse limit is red even when the limit is disabled, it means that you need to change polarity configuration under Axis Configuration and reinitialize your board. You will now be able to run a find reference without getting the error. Also know that if you start a find reference while sitting at a limit (e.g. find forward limit while sitting at reverse limit), you will get this err
    or unless you disable the limit when you first start the move and enable it after half a second or so to ensure that the switch has been cleared. This is easily done by clicking on the Smart Enable/Disable box under the find reference configuration in MAX.

  • Problem with reverse goods movement

    Good Morning.
    I faced a problem with "schedule line" for an item in a sales order.
    I've an order quantity of about 14.000 pieces.
    I've created a partial outbound delivery for 8.000 pieces, but then for a problem, I made a "reverse goods movement" with VL09 for all 8000 pieces.
    When I came back into item's schedule line, I see in "Delivery quantity" column that is not considered the reverse goods momevent.
    I see that delivery quantity is still 8000.
    Can You give me some suggestion??
    Regards.

    There is no trasfer order in Sales Document Flow.
    Sales Order 10600587 / 10               12.12.07           14.000,000  NR      Completed          
    Delivery  8020600166 / 10                12.12.07           14.000,000  NR      Being rocessed    
    Picking request 20071212                   12.12.07           14.000,000  NR      Completed          
    GD goods issue:delvy 5500004772 / 1        12.12.07           14.000,000  NR      complete           
    RE goods deliv. rev. 5500004773 / 1        12.12.07           14.000,000  NR      complete           
    Delivery quantity is still 14000.

  • Axis getting stuck at limit switch

    Hi all,
    The problem I'm having is that although I can control the position of the axis fairly well, if it hits a limit switch, I can't get it to move from there. It's a stepper motor controlled by a PCI-7344. I have forward and reverse limit switches as well as a home switch. I actually have two axes doing the same thing. They are facing each other so while one stepper has a positive rotation and the other a negative, they both turn the same way, if you get what I mean. Anyway one of them is working fine and stops at the limits and comes back at the next command, but the other stops and thows up a 70119 error when I try to get it to move back from the limit. I'm pretty sure everything (ie. limit switches) is wired up correctly so assuming it is, can anyone make a suggestion as to what the problem could be???
    Thanks,
    Damo.
    PS. OMG robot smilies!!!!

    Error 70119 means:
    In general this error occurrs, if you either try to move further into the active limit switch or if you try to move out of an active limit switch while the forward limit switch is connected to the input of the backward limit switch and vice versa.
    If you are 100% sure that the wiring is correct, please check the version of your NI-Motion driver and the board's firmware. In NI-Motion 6.0 there was an issue with this error that was fixed in later versions. The current version of NI-Motion is 7.6.
    I hope this helps,
    Jochen Klier
    National Instruments

  • How can i control the motor movement of stepper motor using a NI PXI 7330

    Good day to all,
    i'm a newbie in programming in motion control of NI. I just want to ask if how can i control the clockwise and counter-clockwise rotation of a stepper motor using NI PXI 7330 module. all i can do is the counter-clockwise rotation using the example vi (Simple one-axis move.vi) found in the examples of LabView 2009.
    Thanks

    what type of limit switch sensor are you using and how did you wire itß What are your MAX settings regarding the limit switches?
    Good day SIr Jochen,
    I am using two reed switch for the reverse and forward limit. I wired the signal wire of the reed switch to the limit ports(forward and reverse Limit) and its ground to the digital ground of the UMI-7764.
    the attachment below is the my max configuration about limit switches
    Attachments:
    max configuration.JPG ‏155 KB

  • Start the program when an external limit switch change its position

    i have a DAQ card 6036E and have a limit switch.
    my problem is:
    when certain contact of limit switch is open, certain loop is work, and when the contact change its status the first loop stop and a second loop starts.
    for details
        limit switch contact open & i press start of the program
               loop one stars which is 10V analog output
                       the limit switch contact closed
                              loop one stops and loop two starts which is (digital out + 5V analog out)
    thank you

    Hello Nick F,
    Thank you very much for your reply and i am so sorry for less details of my previous message so, here more discussion:
    I control the position of a reobatic arm, at starting of the program the arm may be in any position so i must move the arm to a referance position by making a program to give analog 5V through analog output pin of the DAQ to the to the DC motor controller card to then to the motor which drive the arm, when the arm arrives to its referance position  hitting a limit swich which will give a digital signal to digital input pin of the DAQ, here, my object is to stop the obove program (or loop) to stop the arm, at the same time i want to run another program or another while loop on the same program which is an LV example (control single channel.vi) (which is an PID controller program to move the arem to a desired position.
    that's all
    please reply me quickly
    thank you 

  • Mid-7604 not detecting limit switch

    Hi there,
    I have a stepper motor PI M-110-2S plugged in a NI MID-7604.  I have been using this setup for about 3 years without any problems.  Now it seem t hat one of the limit switch (signal negative) is not reading anymore.  I’m not sure if the problem come from the stepper motor or the motor drive, but I need help to diagnose it.  I have tried to check the signal between pin #7 and pin #8 and I get a constant 5V.
    Any help would be greatly appreciated as my product line is down because of this problem.
    Thank you,

    AnalogKid2DigitalMan wrote:
    Have you tried to activate/deactivate the switch manually to see if there is a change of state?
    Could be a defective limit switch, what type is it (mechanical, optical, magnetic...)?
    -AK2DM
    I think that I've finally nailed it.  I have been able to try another stepper that was on another production station and it's working fine.  So the problem come from the stepper itself. The reverse limit switch doesn't seem to be working. I think the limit switch is a hall effect detector.
    I'll keep you updated.

  • How to find center using software limit switches

    Hi,
    I'm using 3 stepper motors w/ incremental encoders (by Agilent technologies), NI 7344 board and NI MID-7604 power controller.
    I don't have hardware limit switches and I don't have a need for them. I found the software limit switch option under MAX and tried configuring them. I've been testing with LabView's One Axis Find Reference with Status Monitor.vi and I'm having problems.
    Under max my motors are configured as closed loop/absolute position/2000 steps per cycle. I set my software limits to 2000 forward and -2000 reverse. In the vi i'm specified Find Center under search type and the motor just seems to keep turning in clockwise direction and then abruptly stops with a modal error: -70166 saying that the axis tripped on the following error.
    I would greatly appreciate detailed information on what I may be wrongly configuring in MAX and how to do it properly. Thanks in advance.
    -Roman

    Hello Jochen,
    I have a correct setting for my encoder counts and my steps per revolution. I have manually checked the rotation and the encoder outputs 1600. That is the number I have set.
    I'm using the load software limits vi and I'm not having any luck with this. I'm including my vi for your review. Your help is greatly appreciated.
    Roman
    Attachments:
    One-Axis Find Reference with Status Monitor.vi ‏120 KB

  • How to include limit switches into my control loop and how to access them through Labview

    I'm developing a six degrees of freedom machine with servo motors,UMI flex6 and Labview-5.1.I was unable to access the limitswithes.So I would like to know the connections diagram,UMIflex6 board settings and the Vi's to be included in the program.please help me out in solving this problem.

    Hi Kolakanuru,
    Thanks for using our discussion forums. How you connect your limit switches depends on what type of motion board you are using. For example, if you look at the connection diagram for a PCI-7344, you can see that Forward Limit switches connect to pins 39, 45, 51, and 57. These will then pin out directly to the UMI. For the connection diagram for your particular motion control board, you can go to www.ni.com/manuals and pull up the necessary information. In regards to reading this in LabVIEW, the first thing you will want to check out is Measurement and Automation Explorer. In the interactive windows for your board, you can check the limit switch status there- Press your limit switch on and off and make sure that it changes the LED in MAX. Once that i
    s all set, then you can go into LabVIEW and use the "Read Limit Status" VI which you can find in Functions>>All Functions>>NI Measurements>>Motion>>FlexMotion>>Motion I/O palette. Good luck with your application.
    Regards
    Dan
    National Instruments

  • Is possible to give a 5V input to the umi 7764 connector blick for the limit switch inputs

    I am using a umi7764 connector block for my 7344 controller. My motion control hardware provides me a 5V output in case the limit switches are enabled. But the umi 7764 connector block connections for the limit swithces are in such a way that it doesnt get any input, instead it has to be directly connected to the limit switches.Is there any way to come around this problem so that the limit switch inputs read the 5v given out by my motion control appplcation

    If your drive has individual outputs for the forward, reverse, and home switches, then you could connect these to the their respective terminals on the UMI. You will need to either disable limit functionality on one component (controller or drive) or make sure the limit behavior for the devices does not conflict with each other. It probably is best if the controller handles the limits, but this will depend on your application.
    If the drive only has one output to indicate that one of the switches has been activated, then you have fewer options. In this case, you should probably just use the limit protection on the drive and poll that single output with another input on the UMI.
    Regards,
    Brent R.
    Applications Engineer
    National Instruments

  • Limit switches not working as expected

    I'm currently testing my Servo system using MAX. Using the 1D-axis I'm commanding the motor to go through a limit switch. When the limit switch is detected (status goes red) the controller ignores this and carries on to complete the move. Once the command is completed the controller will not allow another move further into the limit but will allow a move out of the limit. This to me confirms that I have wired the limit switches correctly. I do not understand why the PCI-7344 isn't immediately halting the move as soon at the limit switch is detected?
    In addition is there a way configure the default setting to issue a KILL axis signal rather than a HALT on detection of a limit switch?
    Thanks
    Steve

    Hi Steve
    Do you have the inhabit switch enabled in MAX? This should kill the axis signal. Take a look at this I think it might help.
    Regards
    Beejal
    Beejal S
    NI UK & Ireland

  • About Limit Switch

    Hi,All
    I use NI  PCI-7344,UMI-7764 and servo motor in my project.Now I meet a problem about limit switch----That's PCI 7344 can't detect the limit
    switch's status if I set the motor's velocity a little faster(for example,1500RPM).It's very dangerous,my compents are allways hit.If I set the
    motor's velocity at 500RPM or 1000RPM,this situation won't happen.
    After I diable the Limit Filter in MAX,this situation still happened.My limit switch is producted by OMRON,their type is EE-SX671,they are photomicrosensor.their parameter as followensing distance(slot width):5mm.Response frequency*2:1KHZ min.(3KHZ average).After I
    change the photomicrosensor to mechanical switch,the problem still occur.
    I am very vexatious,Where is the problem?The Response frequency is not enough?How can I resolve the problem?Pls help me!
    Thanks you in advance!
    B&R
    EnquanLi
    Striving is without limit!

    Hm, I don't think that increasing the rate of deceleration will help here as in default mode the 7344 executes a HALT when a limit switch is hit (this ignores the deceleration settings). This means that the controller tries to stop the motor as fast as possible. But there are two things you could try:
    Improve the PID tuning. Maybe your system is tuned too conservatively and there is some room for optimizing the stiffness of your axis. Please have a look at this link if you need help for tuning your system.
    The limits of the improvements that you can achieve with PID tuning are defined by the system stability and the motor torque which is proportional to the current provided by the drive. If your drive runs into a current limit, this will also limit the torque and the deceleration capabilities of your motor. Please check if there is a way to increase the current limit of your drive (make sure that you don't exceed your motor's specs!).
    Please note: Increasing the current limits may require some adjustments of the PID parameters.
    I hope this helps,
    Jochen

Maybe you are looking for

  • Server Admin not connecting to Leopard Server when accessing via VPN

    Hi everyone, Recently, as the title suggests, Server Admin (or Server Preferences, for that matter) would not connect to my remote server via VPN. I'm quite sure that the server is working nicely, as the users (both of them lovely young ladies with c

  • Home page not displaying correctly

    My Home page is not displaying correctly - it is not updating from Muse. I have tried deleting all the files from the server and starting with a clean upload of each file and the homepage that is displaying is still an older version. Please advise if

  • Which file to convert in a video (movie) CD?

    in a movie CD, there are 4 folders 1. EXT - LOT_X.VCD, PSD_X.VCD 2. MPEGAV - AVSEQ01. DAT 3. SEGMENT - ENTRIES.VCD, INFO.VCD, LOT.VCD and PSD.VCD 4. VCD and there is separate 'Auto run'file. I have videora ipod converter. My query is "Which file shou

  • How can i get rid of my new added tabs toolbar?

    Suddenly i found i have an extra empty bar at the top of my tabs toolbar, when i right click to ad or remove bars, i realize i have two TABS TOOLBAR, both are ticked, when i remove the tick from one of them it removes itself from the other too and th

  • Where to place the third party jars on WLS 7.0SP2

    Our application use the thirdparty JDBC driver, for example, the JDBC driver for mySQL. I donot want my customer to modify startWeblogic.cmd or some file else to make the jar file available for the applicaiton. my question is if some directory exists