Flex_find_reference, flex_wait_reference
Hi,
I am using CVI and the flex_find_reference and flex_wait_reference function. I have a home sensor attached and it works fine when I use the MAX, ie. the motor stops when it the home sensor is triggered even though the motor has not reached the intended target position.
Based on the Help explanation, it says one "must set unused limit and home inputs to their inactive state using MAX or with the Enable Limits and Enable Home Inputs functions."
However, when I check out flex_enable_home_inputs function, it says one "can operate all motion control functions without enabling or using the home inputs except the Find Reference function, which requires enabled limit and home inputs for operation when the find reference type is 'home.'"
This seems to be contradicting to me. I believe I may be misunderstanding "set unused limit and home inputs to their inactive state".
I tried enabling and not enabling the limits and home inputs but to no avail.
I got error code 119, but cannot find any information.
Appreciate any help on how to use these 2 function with a hardware home sensor.
Thanks in advance!
It seems to me that this question is more related on specific concepts on Motion than strictly on CVI. For this reason I suppose that posting it in NI-Motion forum board will be more useful fot you.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?
Similar Messages
-
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. -
Flex motion finding home does not set HomeFound
I use the flex_find_reference to find home. I then use flex_check_reference to determine when home is found, but the found parameter does not go true, even though the flex_read_input_status and the flex_read_home_input_status calls show the home switch on.
Hello,
Have you enabled the forward, reverse, and home limits for your motion controller? The find reference settings for your system may need to be modified. A tutorial on how to do this can be found at:
Find Reference Settings for Motion Controllers
http://zone.ni.com/devzone/conceptd.nsf/webmain/3F42374A9CF5C8BA86256B9D0081A37B?opendocument
Have you tried using any of the shipping examples for NI-Motion? For LabVIEW, they can be found by navigating to:
C:\Program Files\National Instruments\LabVIEW 7.1\examples\Motion\FlexMotion
Examples for Visual C++ or Visual Basic can be found by navigating to:
C:\Program Files\National Instruments\NI-Motion\FlexMotion\Examples
Try looking at the find reference shipping examples found in those folders.
Scott R.
Applications Engineer
National Instruments
Maybe you are looking for
-
when i start a new email, it shows some of my old email addresses. how do i get rid of the ones i dont want? they are not in my contacts info.
-
Apple Wireless keyboard warranty
I own a Late 2012 Mac mini and i am using third party keyboard and mouse all these years. I am going to order a $69 apple wireless keyboard from apple website. My question is how the warranty mapped or covered as my Mac Mini warranty has already ex
-
Resuming installation & calling setup from hard drive?
I got the base system installed, but had to stop. I did take a minute to reboot & log in as root, and everything seems good. At this point can I re-start & continue the setup from the hard drive, or do I need to reboot from the cd again? If from
-
Focus changes are no longer triggered by mouse events in Flash?
What could be causing this problem? All of the sudden I'm finding that when a TextField has the focus, the focus will not leave it when I click other objects, such as buttons that have tabEnabled = true. It seems like something has gone terribly wro
-
Can't log in to account. My password doesn't work.
TB opens, can read mail but can not delete mail. TB keeps asking for my gmail password, which I enter but TB will not open. Have been trying for several day to open TB to no avail. TB says that a new password has been sent to my gmail account, howeve