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!
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!