Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Repeated movement not executing

Solved!
Go to solution

Hello,

 

I am using a cRIO-9074 to move a Newport Stage. I want to do repeated movements in a Timed Loop (synchronized with scan engine).

My code looks like the following:

lop.png

 

My code should do the following:

 

1) Press Execute on Front Panel and enable axis/drive with Power function block

2) Power function block will send Done/True when enable axis/drive is complete

3) True goes into case structure and makes loop wait a predefined amount of time

4) After waiting - True is sent to Straight-Line Move function block

5) Once move is complete, Straight-Line Move function block outputs Done/True which is sent to Feedback Node

6) On next scan engine loop True from Feedback node is sent into case structure, process should repeat

 

Currently what is happening is the move only executes once. I believe this is because the Straight-line move function block only executes on the rising edge of True and my code remains true after the first execute.

 

I have looked through the NI example "Blending Multiple Axis Line Moves" and it uses the Feedback Node as well.

 

Does anyone know how to get the move to repeat instead of executing just once?

 

Thanks for help,

Kyle

0 Kudos
Message 1 of 3
(5,739 Views)

You should be able to AND the execute input of the move with NOT Done from the feedback node.

0 Kudos
Message 2 of 3
(5,733 Views)
Solution
Accepted by topic author kyleshook

Thanks for your input.

 

Here is how I solved the issue:

 

True False alternating in LV with Straight-Line Move.png

0 Kudos
Message 3 of 3
(5,706 Views)