LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Negative step input to reverse stepper motion

Hey guys,

I've run into an issue with a program I'm working on. I'm driving multiple stepper motors in a CNC operation that requires both forward and backward motion of each stepper motor. I figured that this could be done simply by entering a negative value into the '# steps' input on the Stepper Write .vi, but it continues to move the same direction regardless of the input's sign. I've tried to make the speed and the steps negative, positive, or any combo in between and still nothing. I've posted a picture of the most simplified version of what I'm trying.

I opened the stepper write .vi and noticed there is a case structure that has options '0: default, 1: non-zero return value from stepper write', so I'm thinking the .vi may correct for a negative output overall, but that's above my paygrade so I was wondering if you guys had any insight into how to correct this so a negative input of steps could result in reverse motion.

Thanks in advance,

Mark

999.PNG

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