Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-7342 Programmatically Enable Limit Filters

How do I programmatically Enable or Disable the Limit Filters setting?
 
I know in Max it is available on the Motion I/O Settings tab (or folder) under the Motion Card - however I want to be able to programmatically control the settings available in MAX.  I can not find the FlexMotion VI that would allow this.
 
Thank you,
Ryan
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 1 of 18
(5,710 Views)
Functions palette >> Vision and Motion >> NI-Motion >> Advanced >> Write >> Write Motion IO Data.vi
  1. attribute --> forward limit switch filter enable, reverse limit switch filter enable or home input filter enable
  2. data in --> boolean = TRUE or FALSE to enable or disable the limit filter
This very powerful and useful VI will allow you to write many other configuration parameters for a single axis.
0 Kudos
Message 2 of 18
(5,699 Views)
Thank you.  I just found the Vi you mentioned this morning.  It is strange that it did not turn up when I did a search for Enable Limit Filter.
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 3 of 18
(5,697 Views)

OK - I have another one for you -

Programmatically setting the Index Reference Criteria.  I see the VI "Configure Encoder Polarity.flx" for setting the polarity of A, B, and Index = but I can not find a VI that will allow me to configure the expected states of A and B.  Does one exist?

Below I have highlighted the settings I want to control within LabVIEW.

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 4 of 18
(5,684 Views)

I find that I can READ the individual settings using the Read Encoder Data.vi found on the NI-Motion>>Advanced >>Read  tool pallete, but there is not an equivalent Write Encoder VI to be found on the NI-Motion>>Advanced>>Write tool pallete.  The VI shown by you above to have multiple attributes available for settings on individual axes does not have encoder attributes available.

 

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 5 of 18
(5,678 Views)
Have a look at Load Reference Parameter.flx >> Parameter Type >> Phase A Reference State and Phase B Reference State.
0 Kudos
Message 6 of 18
(5,626 Views)
Thank you.  I guess that should have been my next logical choice given that the Index is mainly used as a reference.  I was expecting to find something with the other encoder VIs.  I must have been typing in the wrong phrases when searching as Load Reference Parameter didn't come up, but then I simply entered Index Reference the search returned it this time.
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 7 of 18
(5,620 Views)

One thing I just noted when trying to use this VI - it only applies to an Axis and not to an encoder.  With the 7342 the Encoders are configured thusly

Axis 1 - Encoders 1 and 3

Axis 2 - Encoders 2 and 4

How am I supposed to set the Index ref for Encoders 3 and 4?  Does this VI apply the Index Ref settings to ALL encoders mapped to the axis?

If that is the case that means that if I were to use the other encoders for some type of feedback, I could not use their index reference if they were different than the other encoder.



Message Edited by RVallieu on 01-28-2008 09:48 AM
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 8 of 18
(5,606 Views)
Alright - I made some real good progress on my motion VIs loading configurations from file - but the VI you suggested for enabling/disabled the limit filters is giving me an error.
 
It is returning Error -70037 whenever I try to enable or disable the Limit Filters.
 
Error -70037 occurred at an unidentified location
Possible reason(s):
Motion:  The specified attribute is not relevant.
 
Is there a specific "order of exectuion" that must be followed when using this VI to set the filters enabled/disabled?  i.e. must limits on the axis be enabled, then this VI called?
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 9 of 18
(5,593 Views)
I would suggest you to start a new thread to increase the probability to get help from other users.

I must admit that I have never used these exact options. Looking for a way to disable the forward limit switch for a single axis some days ago, I discovered Write Motion I/O Data and noticed the great number of listed attributes. Your question went at this exact time. Unfortunately, according to the help for this VI, it seems that only some of the listed attributes are valid.

Start a new thread and contact Jochen if you should need further help. He works for NI and knows MOTION like no (many) other(s) !
0 Kudos
Message 10 of 18
(5,580 Views)