Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Buffer Operaions!!!

Dear all,
 
In NI-Motion Fuction Help,the parameter discription of BUFFER is "buffer is buffer to check. Valid buffer nummers are 1 through 255".
1) What is the meaning of buffer number? Or it 's just a number that we define?
 
2) Can I use blebding in two contouring motion?
 
3) After writing data to the buffer, how can repeat the motion in contouring mode?
 
Thank you very much.
 
Yoan
0 Kudos
Message 1 of 2
(3,001 Views)
Yoan,
  1. As you can use multiple buffers with a NI-Motion board you must provide a unique number for each buffer you want to use. You can choose the numbers as you like.

  2. Blending can't be used in combination with contouring but there shouldn't be a need for that as you can load new data points to the buffer while the operation is running. This means you can use the buffer as a kind of a ring buffer. Please refer to the contouring examples that should be installed with the NI-Motion driver support for your development environment.

  3. Set the oldDataStop parameter of the flex_configure_buffer() function to False and the totalPoints parameter to a value greater than bufferSize (maximum is 2^32-1). With these settings the buffer will be repeated until totalPoints is reached.
    If you need repeated moves you need to make sure that the axis comes back to it's starting position when the end of the buffer is reached.
I hope that helps,

Jochen Klier
National Instruments Germany
0 Kudos
Message 2 of 2
(2,998 Views)