LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stopping a contour move using velocity override function in softmotion

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

 

 

0 Kudos
Message 1 of 3
(2,387 Views)

Hi Altofame,

 

This is expected because when you stop a move you destroy the reference. Does the clear faults function do what you need?

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 2 of 3
(2,362 Views)

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.

0 Kudos
Message 3 of 3
(2,358 Views)