Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I output a square wave to control a stepper motor using 7332 controller?

I have the following system configuration for testing a linear actuator (LA):
 
LabView 7.1
NI FlexMotion 7332 Motion Controller
NI Flex DMM 4070
 
The LA is a stepper motor with Step and Direction of Rotation inputs, as well as some discrete I/O for Power Enable and other functions.
The LA specification only requires that I send a 50% Duty Cycle square wave signal with frequency less than 300 Hz to it in order to make it step.  The LA has it's own power source.  I only need the 7332 to generate the drive signal and the DOR signal to the LA.  Using some of the example VI's, I can get the LA to work, but I will need to incorporate the functions in to a custom application. 
 
How can I weed through the numerous advanced functions the 7332 offers and only generate a DOR signal and a step command at a user-defined frequency.  How do I set up the controller for this?
 
Thanks
0 Kudos
Message 1 of 2
(3,660 Views)
Hello,

All the VIs that you can use to create a pulse train and digital I/O from your motion controller are found in the "Analog & Digital I/O VIs" sub-palette in the "Flex Motion" palette. Use "Load PWM Duty Cycle" and "Configure PWM Output" VIs to create the square wave. Use the "Set I/O Port Direction", "Set I/O Port MOMO", and "Set I/O Port Polarity" VIs to create digital output. I hope you find this information useful. You can learn about the specifics of these VIs and their inputs/outputs in the NI-Motion VI Help.


Regards,

Aaron B.
National Instruments
0 Kudos
Message 2 of 2
(3,649 Views)