05-25-2011 03:21 AM
Hello
I am using NI softmotion, and what I am trying to do is to stop a contour move on the run and further execute a straight line move on a single axis.
I tried to do this using the "stop move" module in immediate stop mode.
BUT the thing is after stopping the movement, and trying to execute a straight line movement, an error will be found in which I believe is a bug or something.
here's the detail of the error:
code -77028
The buffer handle specified for the contouring move is invalid.
I discussed this matter with NI Thailand, and they told me that it is because I used the stop module to stop the contour movement, if however, I let the contour move finish, and then execute the straight line movement, there will be no error. In this case they are certainly correct.
The solution given:
Use write function to override the velocity to 0 instead of the stop function.
Problem: I tried to do as they explained, but its been a no joy, in my case the write function doesn't seem to work, and the contour move just keep on running.
I have attached the VI, can anyone take a look a see if I did something wrong?
cheers
05-26-2011 10:11 AM
Hi Altofame,
This is expected because when you stop a move you destroy the reference. Does the clear faults function do what you need?
05-26-2011 10:13 PM
Thank you for your reply.
I tried using clear fault after immediate stop, and it doesnt seem to work.
I've attached the updated VI that I used.