09-07-2007 05:48 AM
Strange
http://www.ni.com/pdf/products/us/ni_73xx.pdf
NI 733x : Number of axes per 62.5 microsecond PID rate 1
Now I'm confused.
09-07-2007 06:48 AM - edited 09-07-2007 06:48 AM
Message Edited by Jochen on 09-07-2007 01:53 PM
09-07-2007 07:10 AM
09-07-2007 07:50 AM
10-03-2007 03:13 AM
10-04-2007
02:17 AM
- last edited on
05-23-2025
07:02 PM
by
Content Cleaner
Sjoerd,
you should run the axis in Closed Loop mode. The issues that you describe are typically caused by wrong configuration settings for Stepper Steps per revolution and Encoder Counts per revolution.
Please refer to this link for detailed help about this issue.
Jochen
10-08-2007 07:38 AM
And again you gave me a good advice. Thanks !!
My encoder count was wrong. In the specification it said 2500 steps, but because it counts up en down form A en B, you have to multiply this by 2x2=4 so 10.000 was the correct setting.
Now I can run Closed Loop in M&A.
I'm not sure if by setting closed loop in M&A my vi runs in closed loop or that I have to make a closed loop in the vi ?
I made a simple script with the motion assitant for basic commands and combined these in one VI with frames.
I made 3 separate steps. One to find home and a second one to run my loop with 4 positions and wait times several times. The third frame is to sent it back to the zero position after the loop ends.
Motion assistant makes one long vi. is it possible to put positions and wait positions in a matrix so it becomes one smaller Vi ?
Further I now start M&A to innitialise my pci card can i do this within a Vi ?
I want to display the position of the stepper into the vi. I found out how to do this but this only workes within the current running frame.
Should I make 2 vi's to sovle this or is there a work around ?
Thanks in advance. I really enjoy the challenge it gives me to get it to work properly.
10-08-2007 09:04 AM
I made a simple script with the motion assitant for basic commands and combined these in one VI with frames.
I made 3 separate steps. One to find home and a second one to run my loop with 4 positions and wait times several times. The third frame is to sent it back to the zero position after the loop ends.
Motion assistant makes one long vi. is it possible to put positions
and wait positions in a matrix so it becomes one smaller Vi ?
[JK: Unfortunately not. The code generated by the Motion Assistant is more or less prototype. You should put parts of it into subvis and use a more advanced design pattern in general (e. g. a state machine might be a good idea).]
Further I now start M&A to innitialise my pci card can i do this within a Vi ?
[JK: Use Initialize Controller.flx that can be found in the motion palette.]
I want to display the position of the stepper into the vi. I found
out how to do this but this only workes within the current running
frame.
Should I make 2 vi's to sovle this or is there a work around ?
[JK: You could use a loop that runs in parallel to acquire position and other relevant data continuously. If necessary you could feed these data into the frames by using queues (producer/consumer design pattern)]
Thanks in advance. I really enjoy the challenge it gives me to get it to work properly.
I hope this helps,
Jochen10-08-2007 09:24 AM
10-10-2007 10:39 AM
It is going in the right direction but ...
I now want to switch two small relais from open. to closed for a short time.
Can I use the trigger output for these actions, and how can I do that ? or shoud i use the io part of the motion card ?
Thanks again