Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Trinamic controller - correct commandsin hex-string

Solved!
Go to solution

Hi Henning,

 

I spent some time looking into writing the code that will hopefully run automatically on my motor controller. I'm currently using a 'for loop' to pass my commands to the motor, eg. increment by 10,000 each loop. However, I can't figure out how I can get the loop to wait until the motor has reached it's position before incrementing again. I don't want to use a 'Wait (ms)' block as the speed of the motor and distance travelled could be different every time I use the program. Would you know of a way I could maybe poll the axis parameter until it returns True and then restart my loop? This is the way I had previously done it in C++ but can't get it to work with Labview as it returns '-' as the hexadecimal value.

 

My second question for you is, how are you sending the movement commands in your program, is there a way that they can be sent as a string to the write buffer, as opposed to the example I have attached below? For sending many movement commands (as I have tried) this is not useful as it crashes my Labview.

 

Thanks,

Emma

Download All
0 Kudos
Message 11 of 11
(1,154 Views)