Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Find reference VI stops the next move

Hi everyone,

I am encountering a problem that every time, I call find reference VI to find the home switch and reset the counts to 0,0 and then if I run a straight line move, the straight line move wouldn't work. I have run the vi again for the straight line to work. Same goes for contour move. After running the straight line move to return to 0,0, if I call buffered contour move. It won't run. I have to run the VI again to start the contour motion. 

I don't know if I can somehow managed to put all these functions together in one VI or I have to work with a state machine. 

The thing is if I run all these vi separately they work with without an error but when I put them as sub VIs in LabVIEW and try to call them using a state machine the first find reference works then it stops. If I run run the same vi again, it goes to straight line move but that's as far as it goes after that it doesn't work with other functions.

I can't find any examples or support for this problem on this forum so far. If someone can suggest any work around this problem, that would be great. 

I am using PCI-7342 motion controller.

0 Kudos
Message 1 of 1
(2,196 Views)