PDA

View Full Version : Stepper Motor won't move even after being assigned angles...



Boeing 747 Flyer
12-25-2011, 02:54 PM
Hi everyone,

I'm having trouble moving my Stepper Motor.

NOTE: The motor works with a basic test script. Ie, I press a switch, which starts a timer, and the needle attached to the stepper motor moves according to the timer. It works great.

However, it won't work with the following script:


Var 0, Link USB_STEPPER, name Chrono, Output 3, PosL 200, PosC 0, PosR 4, Type T

Var 978, name Capt_Chrono, static
{
CALL &Clock_Calc
}

Var 8575, name Clock_Calc, Link SUBRUTINE
{
L0 = &Capt_Chrono
{
L1 = L0 * 6
&Chrono = L1
}
}
}

Basically, the script takes a variable from Nico Kaan's Lekseecon software (chronograph time), and converts it to degrees. I check in IOCPConsole, and the "Chrono" variable is DEFINITELY being sent values, however it just stands still.

This is definitely a software issue; the motor works with other scripts and will turn perfectly always.

Cheers,

Jack

PS: IOStepper.ini, Sioc.ini, etc, etc, have all been set up correctly; it works with all my other scripts just not this one!

Boeing 747 Flyer
12-26-2011, 11:33 AM
Any Ideas?:p

AK Mongo
12-26-2011, 10:22 PM
Love to help, Jack but I can barely spell SIOC.

Happy New year though.

Reid

Boeing 747 Flyer
12-27-2011, 07:53 AM
Thanks anyway Reid!

Nico has solved the problem for me. I had forgotten a single space between the "=" and "120".