Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Teach In and 2D contour move in my own program (NI Motion & Motion Assistant available)

Hey,

 

i have to program a Teach In (no problem), for a contour move. Without Motion Assitant, it was not useful, because I could not set the velocity etc. Now we have Motion Assistant. I can create a contour move, can set all parameters (velocity, acceleration, etc.) and can create the LV code. But the LV code is only for the one, with motion assistant teached in, move. Is it not able to realize the Teach In in my own program, set the parameters, calculate the trajectory and then move (about the frontpanel in my program preferably)?

 

Thank you

Best Regards,
Andy

_____________________
PCI-7356@UMI7764; PCIe-6320@SCB-68; LV2011; Motion Assistant 2.7; NI Motion 8.3; DAQmx 9.4; Win7
0 Kudos
Message 1 of 2
(5,602 Views)

Hi Andy,

 

as you have already found, the code created by Motion Assistant doesn't include the teach-in functionality itself. Thus the outcome is kind of static and can't be used for flexible motion profiles without changing the code.

 

Still the true value introduced by Motion Assistant is the MA API in LabVIEW, that provides vis for implementing Smart Contouring in LabVIEW. Please refer to the shipping example "Contour Move.vi".

This vi doesn't run a contour move by itself but it applies a move profile (acceleration, velocity, deceleration) to an array of position points. The resulting array can be used to feed a contouring buffer on your NI 7340.

 

For the use with an NI 7340 you should use the following parameters:

 

Contour Type:

  • Position Points

Profile Calculation Constraint

  • Constraint Type = Sampling Time
  • Constraint Value = about 0.01 s or 0.02 s (please use the "actuals inverval" value, that you get from Configure Buffer.flx)

 

I hope that helps,

Jochen

0 Kudos
Message 2 of 2
(5,588 Views)