Author Topic: Stepper Motors Not Working!  (Read 10343 times)

sntang

  • Newbie
  • Posts: 3
  • I love YaBB 1G - SP1!
    • View Profile
Stepper Motors Not Working!
« 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.



« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: Stepper Motors Not Working!
« Reply #1 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.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS