Page 4 of 5 FirstFirst 12345 LastLast
Results 31 to 40 of 46
  1. #31
    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: USBSteppers Card!

    Les, you mean that just the single line declaring the Stepper will get it moving?

    Mine certainly doesn't that, and all I'm running is just the one USBStepper Card on my PC.

    Jack

  2. #32
    500+ This must be a daytime job



    Join Date
    Jan 2007
    Location
    NEW ZEALAND
    Posts
    908
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBSteppers Card!

    All i have in my .ssi file is the line starting V0000 ----
    As soon as i start sioc the motor spins and i stop it with the sensor. whats in you sioc.ini file for stepper. My one says 0,0.
    Im running on xp for these tests. If you want ill send you my sioc.ini and Sioc script as it works for me.
    Les

  3. #33
    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: USBSteppers Card!

    GREAT NEWS!

    I have now managed to get it to stop, every time, on the light sensor...

    The reason it took so long was a mistake of opencockpits...

    There are 3 slots on the card, "motor 1", "motor 2" and "motor 3". The light sensors for these are labelled appropriately as "M1", "M2" and "M3". For some weird reason, "M3" is actually the sensor for "Motor 1", when it should be motor 3.

    So yes, I can confirm it stops at the light sensor. Now I just need to get a chronograph working with it!

    Cheers,

    Jack

  4. #34
    500+ This must be a daytime job



    Join Date
    Jan 2007
    Location
    NEW ZEALAND
    Posts
    908
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBSteppers Card!

    Good News Jack,
    My ones are numbered correctly. The only confusion i can see may occur is that on my bd the top connectors are m1 m2 m3 right to left.
    Sensors on the left of the bd go s1 s 2 s3 bottom to top.
    Main thing is card is working, good luck with your code.
    les

  5. #35
    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: USBSteppers Card!

    Hi all,

    Sorry for the lack of replies.

    It seems like I'm back to square one on this!

    Testing my Stepper motor... Then suddenly, it just vibrates erratically. So I re-ran the basic, basic script that literally just moves the motor. Still the same thing.

    Then I tried another Stepper motor. And another. Still the exact, exact same symptoms on each card. The connections are 100% correct, and even then I've tried swapping them around to no avail. The script can't be wrong, it's just the basic script I used awhile back, here it is again just incase:

    Code:
    Var 0000, Link USB_STEPPER, name Chrono, Output 1, PosL 255, PosC 0, PosR 4, Type T
    And the IOStepper.ini file:

    Code:
    [ fichero de configuracion para IOCStepper ]
    [ Configuration file for IOCStepper ]
    
    [ Múltiples USBs ]
    [ Non unique USB ]
    MUSB=No
    
    [ Número de periférico para el USB ]
    [ USB Device number ]
    deviceUSB=2132
    
    [ Número de A/D a usar de la placa de Expansión USB ]
    [ A/D used by Iocard Master expansion USB ]
    USB_AD=0
    
    [ IP del HOST del servidor ]
    [ IOCP server host name ]
    IOCP_host=localhost
    
    [ Puerto de envio del protocolo IOCP ]
    [ IOCP port ]
    IOCP_port=8092
    
    [ Tiempo de respuesta máximo de los paquetes IOCP ]
    [ IOCP Timeout ]
    IOCP_timeout=4000
    
    [ Velocidad de los motores (0=rápido, 61=Lento) ]
    [ Motor Speed  (0=fast, 61=Slow) ]
    Speed_M1=61
    Speed_M2=17
    Speed_M3=17
    
    [ Pasos totales por vuelta de los motores (0=automático) ]
    [Motor Steeps per turn (0=automatic) ]
    Steeps_M1=0
    Steeps_M2=0
    Steeps_M3=0
    
    [ Activación de medios pasos para los motores ]
    [ half-steeps for motors ]
    HSteeps_M1=no
    HSteeps_M2=no
    HSteeps_M3=no
    
    
    [ Máximo número de pasos por décima de segundo ]
    [Max. Steeps per Dec/Seg ]
    Max_Steeps_M1=3
    Max_Steeps_M2=3
    Max_Steeps_M3=3
    
    [ Factor decimal a aplicar para variable IOCP ]
    [ Decimal Factor for IOCP Variable ]
    Decimal_Factor_M1=1
    Decimal_Factor_M2=1
    Decimal_Factor_M3=1
    
    [ Asignaciones de Variables IOCP ]
    [ IOCP Variable ]
    [ Motor1 ]
    
    IOCP_Var0=0
    
    [ Motor2 ]
    
    IOCP_Var1=11
    
    [ Motor3 ]
    
    IOCP_Var2=12
    
    [ A/D-1 ]
    
    IOCP_Var3=13
    
    [ A/D-2 ]
    
    IOCP_Var4=14
    
    [ A/D-3 ]
    
    IOCP_Var5=15
    
    [ End of File ]
    So yes, in a bit of a pickle here!

    Cheers,

    Jack

  6. #36
    500+ This must be a daytime job



    Join Date
    Jan 2007
    Location
    NEW ZEALAND
    Posts
    908
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBSteppers Card!

    Jack,
    Try changing Posl to say something around 17. This is your speed. All motors i try seem to use approx this Value. Type you have as T. They only show options for this as H for halfstep.
    Les
    P.S i see in your IOstepper.ini speed is 61 and in SIOC its 255. Sggest you make them same although i dont think
    its using the .ini file as its getting its parameters from Sioc

  7. #37
    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: USBSteppers Card!

    Still no luck Les. I get the exact same symptoms, albeit the motor "vibrates" at a much higher frequency.

    I'm really, really confused here. I haven't changed anything and yet am getting this vibration issue.

  8. #38
    500+ This must be a daytime job



    Join Date
    Jan 2007
    Location
    NEW ZEALAND
    Posts
    908
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBSteppers Card!

    Jack,
    Im not sure that using sioc only for stepper control is that wonderful. Although i havnt had enough time to test properly. I tested out the attached files in FS9 and it works well. Try them and see how you go. I tried using only Sioc again today without changing anything and it was not reliable. Using iostepper seems to be the best.
    Les
    Attached Files Attached Files

  9. #39
    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: USBSteppers Card!

    Hi Les,

    I am using IOStepper AND SIOC to control the Stepper Motors.

    I will try your file.

    Cheers,

    Jack

  10. #40
    500+ This must be a daytime job



    Join Date
    Jan 2007
    Location
    NEW ZEALAND
    Posts
    908
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBSteppers Card!

    Ok Jack,
    let us know how it goes. At least on my set up these files work well. Just put the plane in a 360 degree turn and Stepper turned fully with no hiccups.
    Les

Page 4 of 5 FirstFirst 12345 LastLast