Results 1 to 4 of 4
  1. #1
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Stepper Motor won't move even after being assigned angles...

    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:

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

  2. #2
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Stepper Motor won't move even after being assigned angles...

    Any Ideas?

  3. #3
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    553
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Stepper Motor won't move even after being assigned angles...

    Love to help, Jack but I can barely spell SIOC.

    Happy New year though.

    Reid
    http://juneaucessnasim.blogspot.com
    N58243 (virtual)- Low and Slow...

  4. #4
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Stepper Motor won't move even after being assigned angles...

    Thanks anyway Reid!

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