Internet PLC Forum

General => Technical support => Topic started by: sntang on July 17, 2003, 05:17:14 AM

Title: Stepper Motors Not Working!
Post by: sntang on July 17, 2003, 05:17:14 AM
Hi, need some stepper control advice!

I wrote 2 function to control two stepper motors running at the same time at different direction:

Funtion M1:
STEPSPEED 1,1000,20
STEPMOVE 1,500,8

Function M2:
STEPSPEED 2,1000,20
STEPMOVE 2,-500,9

When I activate both function together only one motor managed to move.

I'd tried run both motors seperately (Out#5, Out#6) on seperate program without any problem. So I can ruled out the motor driver or program error.

Did anyone have similar experience? Please advice. Thanks.



Title: Re: Stepper Motors Not Working!
Post by: support on July 17, 2003, 08:02:18 AM
I tried out your program and managed to get pulses from both output #5 and #6 simultaneously. Did you observe the pulse output from both your output #5 and #6?

Since I don't have two stepper motor driver on hand  I observed the wave forms on an oscilloscope but did not notice any unusual pattern. So I both channels should be able to work simultaneously. They are of different direction since one is +ve direction and another in -ve direction so their respective direction output (#1 and #2) will be turned ON/OFF accordingly.