Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    25+ Posting Member
    Join Date
    Dec 2008
    Location
    uk
    Posts
    46
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why Do I need I/O Cards?

    Pieter thanks for your help with your attached script,I've saved it just in case in the very distant future it might make sense to me (you never know...) but if you're ever in Lincolnshire UK please bring it with you and I'll buy the beers !!.Seriously, thank you for your help it is much appreciated and I will try... to understand it .


    regards Jim

  2. #12
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Mar 2009
    Location
    Belgium
    Posts
    6
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why Do I need I/O Cards?

    Quote Originally Posted by Riempie View Post
    Example for the gear that is 6 leds and two switches

    // 7.11 Gear Panel

    Var 764 Static
    {
    &O_Nose = TESTBIT v764 0
    &O_Left = TESTBIT v764 1
    &O_Right = TESTBIT v764 2
    &O_Gear = TESTBIT v764 3
    &O_Doors = TESTBIT v764 4
    }

    Var 1 name O_Doors Link IOCARD_OUT Output 82
    Var 2 name O_Gear Link IOCARD_OUT Output 83
    Var 3 name O_Nose Link IOCARD_OUT Output 84
    Var 4 name O_Left Link IOCARD_OUT Output 85
    Var 5 name O_Right Link IOCARD_OUT Output 86


    // Gear Lever:

    Var 368 Static Link IOCARD_SW Input 73 Type I
    Var 369 Static Link IOCARD_SW Input 72 Type I
    Var 370 Static Link IOCARD_SW Input 74 Type I

    This for the 767-300 Level D sioc software

    Regards Pieter
    Here is another script for the default aircraft using SIOC SOFTWARE from www.opencockpits.com. One needs a mastercard to connect the 2 switches and 6 leds if you want them to follow the gear extention and rectraction.

    //Gear switches en leds ------------------------------------------------------------------------------------------

    Var 9009, Link IOCARD_SW, Device 2, Input 003 // Gear Up SW
    {
    IF V9009 = 1
    {
    V9011 = 0
    }
    }

    Var 9010, Link IOCARD_SW, Device 2, Input 001 // Gear Down Sw
    {
    IF V9010 = 1
    {
    V9011 = 16383
    }
    }

    Var 9011, Link FSUIPC_OUT, Offset $0BE8, Length 4 // Gear Up/Down

    Var 4001, Link FSUIPC_OUT, Offset $0BE8, Length 4 // Gear Offset, 0=up, 16383=dwn

    // Var 4002, Link IOCARD_SW, Device 2, Input 1 // GEAR_SW, off=0=up, on=1=dwn
    // {
    // V4001 = V4002 * 16383
    // }

    Var 4003, Link FSUIPC_IN, Offset $0BEC, Length 4 // Nose Gear Green Offset, 0=up, 16383=dwn
    {
    IF V4003 = 16383
    {
    V4004 = 1
    V4005 = 0
    }
    IF V4003 < 16383
    {
    V4004 = 0
    V4005 = 1
    }
    IF V4003 = 0
    {
    V4004 = 0
    V4005 = 0
    }
    }

    Var 4004, Link IOCARD_OUT, Device 2, Output 19 // Nose Gear Green Led, 0=off, 1=on

    Var 4005, Link IOCARD_OUT, Device 2, Output 27 // Nose Gear Red Led, 0=off, 1=on

    Var 4006, Link FSUIPC_IN, Offset $0BF4, Length 4 // Left Gear Position Offset, 0=up, 16383=d
    {
    IF V4006 = 16383
    {
    V4007 = 1
    V4008 = 0
    }
    IF V4006 < 16383
    {
    V4007 = 0
    V4008 = 1
    }
    IF V4006 = 0
    {
    V4007 = 0
    V4008 = 0
    }
    }

    Var 4007, Link IOCARD_OUT, Device 2, Output 21 // Left Gear Green Led, 0=off, 1=on

    Var 4008, Link IOCARD_OUT, Device 2, Output 25 // Left Gear Red Led, 0=off, 1=on

    Var 4009, Link FSUIPC_IN, Offset $0BF0, Length 4 // Right Gear Position Offset, 0=up, 16383=
    {
    IF V4009 = 16383
    {
    V4010 = 1
    V4011 = 0
    }
    IF V4009 < 16383
    {
    V4010 = 0
    V4011 = 1
    }
    IF V4009 = 0
    {
    V4010 = 0
    V4011 = 0
    }
    }

    Var 4010, Link IOCARD_OUT, Device 2, Output 20 // Right Gear Green Led, 0=off, 1=on

    Var 4011, Link IOCARD_OUT, Device 2, Output 26 // Right Gear Red Led, 0=off, 1=on


    Regards Pieter

    PS output numbers depend on the actual connection to the print.

  3. #13
    25+ Posting Member
    Join Date
    Dec 2008
    Location
    uk
    Posts
    46
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why Do I need I/O Cards?

    Thanks Pieter for your continued help,I will be honest with you though it is mostly going completely over my head.I will though persevere as I will not give up and your scripts will eventually make sense hopefully......so thanks again for trying.


    regards Jim

  4. #14
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Mar 2009
    Location
    Belgium
    Posts
    6
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why Do I need I/O Cards?

    If you need any tutorial on sioc programming here is a wabsite http://www.lekseecon.nl/howto.html

    Hope you work things out.

    Pieter

  5. #15
    25+ Posting Member
    Join Date
    Dec 2008
    Location
    uk
    Posts
    46
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why Do I need I/O Cards?

    Thanks Pieter now that is very useful indeed ,it's all about knowing where to look,I've ordered some bits inc BU0836x to start with and that guide will have some relevance as I will hopefully if all goes well....be using some of their cards later.


    regards jim

Page 2 of 2 FirstFirst 12

Similar Threads

  1. I/O Cards help?
    By brian95 in forum I/O Interfacing and Hardware
    Replies: 3
    Last Post: 09-22-2010, 08:08 AM
  2. Inputs/output cards on master cards question
    By stabell in forum OpenCockpits General Discussion
    Replies: 2
    Last Post: 11-25-2008, 06:25 AM
  3. New to IO cards etc
    By Drewsta in forum I/O Interfacing Hardware and Software
    Replies: 23
    Last Post: 07-18-2008, 01:58 PM
  4. Opencockpits IO cards
    By Paul G in forum I/O Interfacing Hardware and Software
    Replies: 19
    Last Post: 07-02-2008, 12:54 PM
  5. Display II cards
    By heclak in forum I/O Interfacing Hardware and Software
    Replies: 0
    Last Post: 11-15-2005, 09:41 AM