Quantcast
Channel: Motion Control and Motor Drives topics
Viewing all articles
Browse latest Browse all 1315

Repeated movement not executing

$
0
0

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


Viewing all articles
Browse latest Browse all 1315

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>