Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    10+ Posting Member
    Join Date
    Jul 2011
    Location
    France
    Posts
    10
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Problem with MCP Sioc Code

    Hello Everyone,

    I'd made a MCP with Opencockpit IOcards, everything is connected and inputs/output have been changed in the provided MCP code from Lekseecon.

    Everything works fine, except that: when i rotate HDG; sometimes, the disengage bar go down; also when i rotate IAS, the HDG HOLD function switch to on. I can't tell why and when it happened; it seem to be intermittent.

    I'm a beginner in SIOC and lekseecon..

    This is my code :
    Code:
    Var 0001, name ColdAndDark
    
    Var 0002, name LeftBusOff
    
    Var 0296, name IAS, static     // read/write IAS from/to level-D panel
    {
      CALL &OutIAS
    }
    
    Var 0003, name RO_Ias, Link IOCARD_ENCODER, Input 12, Aceleration 2, Type 2
    {
      IF &SPDDisplay = 1     // Respond only when Ias/Mach display on ..
      {
        L0 = &RO_Ias         // turning right should be plus
        IF &IASMACH = 0
        {
          &IAS = LIMIT 100 ,399 ,L0
        }
        ELSE
        {
          &IAS = LIMIT 400 ,950 ,L0
        }
      }
    }
    
    Var 0004, name SPDDisplay
    {
      CALL &OutIAS
    }
    
    Var 0005, name IASMACH
    {
      CALL &OutIAS
    }
    
    Var 0006, name D_IAS, Link IOCARD_DISPLAY, Digit 29, Numbers 3
    
    Var 0297, static     // read/write HDG from/to level-D panel
    {
      CALL &OutHDG
    }
    
    Var 0007, name RO_HDG, Link IOCARD_ENCODER, Input 18, Aceleration 2, Type 2
    {
      L0 = &RO_HDG         // turning right should be plus
      V0297 = ROTATE 0 ,359 ,L0
    }
    
    Var 0008, name OutHDG, Link SUBRUTINE
    {
      IF &ColdAndDark = 1
      {
        &D_HDG = -999999    
      }
      ELSE
      {
        IF V0580 = 1
        {
          &D_HDG = 888    
        }
        ELSE
        {
          &D_HDG = V0297    
        }
      }
    }
    
    Var 0009, name D_HDG, Link IOCARD_DISPLAY, Digit 26, Numbers 3
    
    Var 0298, static
    {
      L0 = V0298         // read/write VS from/to level-D panel
      L1 = DIV L0 ,100     // block a new value coming from the rotary
      IF &VS <> L1
      {
        &VS = L1         // new value coming from panel
      }
    }
    
    Var 0010, name RO_VS, Link IOCARD_ENCODER, Input 20, Aceleration 2, Type 2
    {
      IF &VSActive = 1     // Respond only when in VS mode ...
      {
        L0 = &RO_VS         // turning right should be plus
        &VS = LIMIT -99 ,99 ,L0
        L1 = &VS * 100
        V0298 = L1         // to panel
      }
    }
    
    Var 0011, name VS
    {
      CALL &OutVS
    }
    
    Var 0012, name VSActive
    {
      CALL &OutVS
    }
    
    Var 0013, name OutVS, Link SUBRUTINE
    {
      IF &ColdAndDark = 1
      {
        &D_VSS = -999999         // blank
        &D_VS0 = -999999         // blank
        &D_VS = -999999    
      }
      ELSE
      {
        IF V0580 = 1
        {
          &D_VSS = 8    
          &D_VS0 = 8    
          &D_VS = 888    
        }
        ELSE
        {
          IF &VSActive = 0
          {
            &D_VSS = -999999         // blank
            &D_VS0 = -999999         // blank
            &D_VS = -999999    
          }
          ELSE
          {
            L0 = &VS    
            IF &VS < 0
            {
              &D_VSS = -999998         // -
              L0 = L0 * -1
            }
            ELSE
            {
              &D_VSS = -999999         // blank
            }
            L0 = L0 * 100
            IF L0 >= 1000
            {
              &D_VS0 = DIV L0 ,1000
              &D_VS = MOD L0 ,1000
            }
            ELSE
            {
              &D_VS0 = -999999         // blank
              &D_VS = L0    
            }
          }
        }
      }
    }
    
    Var 0014, name D_VS, Link IOCARD_DISPLAY, Digit 21, Numbers 3
    
    Var 0015, name D_VS0, Link IOCARD_DISPLAY, Digit 24, Numbers 1
    
    Var 0016, name D_VSS, Link IOCARD_DISPLAY, Digit 25, Numbers 1
    
    Var 0299, static     // read/write ALT from/to level-D panel
    {
      CALL &OutALT
    }
    
    Var 0017, name RO_ALT, Link IOCARD_ENCODER, Input 24, Aceleration 2, Type 2
    {
      L0 = &RO_ALT * -1     // turning right should be plus
      V0299 = LIMIT 0 ,640 ,L0
    }
    
    Var 0018, name OutALT, Link SUBRUTINE
    {
      IF &ColdAndDark = 1
      {
        &D_ALT = -999999    
        &D_ALTL0 = -999999    
        &D_ALTL00 = -999999    
      }
      ELSE
      {
        IF V0580 = 1
        {
          &D_ALT = 888    
          &D_ALTL0 = 8    
          &D_ALTL00 = 8    
        }
        ELSE
        {
          L0 = V0299 * 100
          IF L0 >= 10000
          {
            &D_ALTL0 = DIV L0 ,10000
            L1 = MOD L0 ,10000
            &D_ALTL00 = DIV L1 ,1000
            &D_ALT = MOD L0 ,1000
          }
          ELSE
          {
            &D_ALTL0 = -999999    
            IF L0 >= 1000
            {
              &D_ALTL00 = DIV L0 ,1000
              &D_ALT = MOD L0 ,1000
            }
            ELSE
            {
              &D_ALTL00 = -999999    
              &D_ALT = L0    
            }
          }
        }
      }
    }
    
    Var 0019, name D_ALT, Link IOCARD_DISPLAY, Digit 16, Numbers 3
    
    Var 0020, name D_ALTL00, Link IOCARD_DISPLAY, Digit 19, Numbers 1
    
    Var 0021, name D_ALTL0, Link IOCARD_DISPLAY, Digit 20, Numbers 1
    
    Var 0742, static
    {
      &O_CMDLLed = TESTBIT V0742 ,0
      &O_CMDCLed = TESTBIT V0742 ,1
      &O_CMDRLed = TESTBIT V0742 ,2
      &O_LNAVLed = TESTBIT V0742 ,6
      &O_VNAVLed = TESTBIT V0742 ,7
      &O_FLCHLed = TESTBIT V0742 ,8
      &O_HDGHLDLed = TESTBIT V0742 ,9
      &O_VSLed = TESTBIT V0742 ,10
      &O_ALTHLDLed = TESTBIT V0742 ,11
      &O_LOCLed = TESTBIT V0742 ,12
      &O_APPLed = TESTBIT V0742 ,13
      &O_BCRSLed = TESTBIT V0742 ,14
      &O_N1Led = TESTBIT V0742 ,15
      &O_SPDLed = TESTBIT V0742 ,16
      &IASMACH = TESTBIT V0742 ,3
      &SPDDisplay = TESTBIT V0742 ,4
      &VSActive = TESTBIT V0742 ,10
    }
    
    Var 0022, name O_N1Led, Link IOCARD_OUT, Output 26
    
    Var 0023, name O_SPDLed, Link IOCARD_OUT, Output 27
    
    Var 0024, name O_LNAVLed, Link IOCARD_OUT, Output 23
    
    Var 0025, name O_VNAVLed, Link IOCARD_OUT, Output 24
    
    Var 0026, name O_FLCHLed, Link IOCARD_OUT, Output 25
    
    Var 0027, name O_HDGHLDLed, Link IOCARD_OUT, Output 22
    
    Var 0028, name O_VSLed, Link IOCARD_OUT, Output 21
    
    Var 0029, name O_ALTHLDLed, Link IOCARD_OUT, Output 20
    
    Var 0030, name O_BCRSLed, Link IOCARD_OUT, Output 17
    
    Var 0031, name O_LOCLed, Link IOCARD_OUT, Output 18
    
    Var 0032, name O_APPLed, Link IOCARD_OUT, Output 19
    
    Var 0033, name O_CMDLLed, Link IOCARD_OUT, Output 16
    
    Var 0034, name O_CMDCLed, Link IOCARD_OUT, Output 15
    
    Var 0035, name O_CMDRLed, Link IOCARD_OUT, Output 11
    
    Var 0036, name O_MACHDP, Link IOCARD_OUT, Output 30
    
    Var 0037, name OutIAS, Link SUBRUTINE
    {
      IF &ColdAndDark = 1
      {
        &O_MACHDP = 0    
        &D_IAS = -999999    
      }
      ELSE
      {
        IF V0580 = 1
        {
          &O_MACHDP = 1    
          &D_IAS = 888    
        }
        ELSE
        {
          IF &SPDDisplay = 0
          {
            &O_MACHDP = 0    
            &D_IAS = -999999    
          }
          ELSE
          {
            &O_MACHDP = &IASMACH    
            &D_IAS = &IAS    
          }
        }
      }
    }
    
    Var 0275, name CMDLBut, static, Link IOCARD_SW, Input 30, Type P
    
    Var 0276, name CMDCBut, static, Link IOCARD_SW, Input 31, Type P
    
    Var 0277, name CMDRBut, static, Link IOCARD_SW, Input 32, Type P
    
    Var 0278, name MachSel, static, Link IOCARD_SW, Input 11, Type P
    
    Var 0280, name N1But, static, Link IOCARD_SW, Input 8, Type P
    
    Var 0281, name SpdBut, static, Link IOCARD_SW, Input 7, Type P
    
    Var 0282, name ALTHLDBut, static, Link IOCARD_SW, Input 23, Type P
    
    Var 0283, name HdgHldBut, static, Link IOCARD_SW, Input 17, Type P
    
    Var 0285, name LNAVBut, static, Link IOCARD_SW, Input 16, Type P
    
    Var 0286, name VNAVBut, static, Link IOCARD_SW, Input 15, Type P
    
    Var 0287, name FLCHBut, static, Link IOCARD_SW, Input 14, Type P
    
    Var 0288, name BCRSBut, static, Link IOCARD_SW, Input 29, Type P
    
    Var 0289, name LOCBut, static, Link IOCARD_SW, Input 28, Type P
    
    Var 0290, name APPBut, static, Link IOCARD_SW, Input 27, Type P
    
    Var 0291, name VSBut, static, Link IOCARD_SW, Input 22, Type P
    
    Var 0292, name ATSwitch, static, Link IOCARD_SW, Input 10, Type I
    
    Var 0293, name DisEngBar, static, Link IOCARD_SW, Input 26, Type I
    
    Var 0294, name CapFD, static, Link IOCARD_SW, Input 9, Type I
    
    Var 0295, name FOFD, static, Link IOCARD_SW, Input 33, Type I
    
    Var 0999, static
    {
      CALL &OutIAS
      CALL &OutHDG
      CALL &OutVS
      CALL &OutALT
    }
    
    Var 0740, static
    {
      &O_VOR1Manual = TESTBIT V0740 ,0
      &O_VOR1Auto = TESTBIT V0740 ,1
      &O_VOR1FDP = TESTBIT V0740 ,2
    }
    
    Var 0267, static
    {
      L0 = FROMBCD V0267
      IF &VOR1Freq <> L0     // block values coming from rotary
      {
        &VOR1Freq = L0    
        &VOR1FreqHigh = DIV L0 ,100
        &VOR1FreqLow = MOD L0 ,100
        CALL &OutVOR1Freq     // display
      }
    }
    
    Var 0268, static
    {
      CALL &OutVOR1Crs
    }
    
    Var 0038, name VOR1FreqLow
    
    Var 0039, name VOR1FreqHigh
    
    Var 0040, name VOR1Freq
    
    Var 0041, name CalcVOR1Freq, Link SUBRUTINE
    {
      L0 = &VOR1FreqHigh * 100     // high * 100
      &VOR1Freq = L0 + &VOR1FreqLow     // + low
      V0267 = TOBCD &VOR1Freq     // BCD value to panel
      CALL &OutVOR1Freq     // display new freq value
    }
    
    Var 0042, name OutVOR1Freq, Link SUBRUTINE
    {
      IF &ColdAndDark = 1
      {
        &D_VOR1Freq = -999999    
      }
      ELSE
      {
        IF V0580 = 1
        {
          &D_VOR1Freq = 88888    
        }
        ELSE
        {
          &D_VOR1Freq = &VOR1Freq + 10000     // to display + fixed '1'
        }
      }
    }
    
    Var 0043, name OutVOR1Crs, Link SUBRUTINE
    {
      IF &ColdAndDark = 1
      {
        &D_VOR1Crs = -999999    
      }
      ELSE
      {
        IF V0580 = 1
        {
          &D_VOR1Crs = 888    
        }
        ELSE
        {
          &D_VOR1Crs = V0268         // to display
        }
      }
    }
    
    Var 0044, name D_VOR1Freq, Link IOCARD_DISPLAY, Digit 0, Numbers 5
    
    Var 0045, name D_VOR1Crs, Link IOCARD_DISPLAY, Digit 5, Numbers 3
    
    Var 0046, name O_VOR1Manual, Link IOCARD_OUT, Output 28
    
    Var 0047, name O_VOR1Auto, Link IOCARD_OUT, Output 29
    
    Var 0048, name O_VOR1FDP, Link IOCARD_OUT, Output 31
    
    Var 0270, static, Link IOCARD_SW, Input 4, Type P
    
    Var 0049, name RO_VOR1CRS, Link IOCARD_ENCODER, Input 5, Aceleration 4, Type 2
    {
      L0 = &RO_VOR1CRS * -1     // * -1
      V0268 = ROTATE 0 ,359 ,L0
    }
    
    Var 0050, name RO_VOR1FRQL, Link IOCARD_ENCODER, Input 2, Aceleration 1, Type 2
    {
      C0 = TESTBIT V0740 ,0
      IF C0         // only active if MANUAL
      {
        L0 = &RO_VOR1FRQL * -5
        &VOR1FreqLow = ROTATE 0 ,99 ,L0
        CALL &CalcVOR1Freq
      }
    }
    
    Var 0051, name RO_VOR1FRQH, Link IOCARD_ENCODER, Input 0, Aceleration 1, Type 2
    {
      C0 = TESTBIT V0740 ,0
      IF C0         // only active if MANUAL
      {
        L0 = &RO_VOR1FRQH * -1
        &VOR1FreqHigh = ROTATE 8 ,35 ,L0
        CALL &CalcVOR1Freq
      }
    }
    
    Var 0998, static     // Refresh
    {
      CALL &OutVOR1Freq
      CALL &OutVOR1Crs
    }
    
    Var 0741, static
    {
      &O_VOR2Manual = TESTBIT V0741 ,0
      &O_VOR2Auto = TESTBIT V0741 ,1
      &O_VOR2FDP = TESTBIT V0741 ,2
    }
    
    Var 0271, static
    {
      L0 = FROMBCD V0271
      IF &VOR2Freq <> L0     // block values coming from rotary
      {
        &VOR2Freq = L0    
        &VOR2FreqHigh = DIV L0 ,100
        &VOR2FreqLow = MOD L0 ,100
        CALL &OutVOR2Freq     // display
      }
    }
    
    Var 0272, static
    {
      CALL &OutVOR2Crs
    }
    
    Var 0052, name VOR2FreqLow
    
    Var 0053, name VOR2FreqHigh
    
    Var 0054, name VOR2Freq
    
    Var 0055, name CalcVOR2Freq, Link SUBRUTINE
    {
      L0 = &VOR2FreqHigh * 100     // high * 100
      &VOR2Freq = L0 + &VOR2FreqLow     // + low
      V0271 = TOBCD &VOR2Freq     // BCD value to panel
      CALL &OutVOR2Freq     // display new freq value
    }
    
    Var 0056, name OutVOR2Freq, Link SUBRUTINE
    {
      IF &ColdAndDark = 1
      {
        &D_VOR2Freq = -999999    
      }
      ELSE
      {
        IF V0580 = 1
        {
          &D_VOR2Freq = 88888    
        }
        ELSE
        {
          &D_VOR2Freq = &VOR2Freq + 10000     // to display + fixed '1'
        }
      }
    }
    
    Var 0057, name OutVOR2Crs, Link SUBRUTINE
    {
      IF &ColdAndDark = 1
      {
        &D_VOR2Crs = -999999    
      }
      ELSE
      {
        IF V0580 = 1
        {
          &D_VOR2Crs = 888    
        }
        ELSE
        {
          &D_VOR2Crs = V0272         // to display
        }
      }
    }
    
    Var 0058, name D_VOR2Freq, Link IOCARD_DISPLAY, Digit 8, Numbers 5
    
    Var 0059, name D_VOR2Crs, Link IOCARD_DISPLAY, Digit 13, Numbers 3
    
    Var 0060, name O_VOR2Manual, Link IOCARD_OUT, Output 14
    
    Var 0061, name O_VOR2Auto, Link IOCARD_OUT, Output 13
    
    Var 0062, name O_VOR2FDP, Link IOCARD_OUT, Output 12
    
    Var 0274, static, Link IOCARD_SW, Input 40, Type P
    
    Var 0063, name RO_VOR2CRS, Link IOCARD_ENCODER, Input 34, Aceleration 4, Type 2
    {
      L0 = &RO_VOR2CRS         // * -1
      V0272 = ROTATE 0 ,359 ,L0
    }
    
    Var 0064, name RO_VOR2FRQL, Link IOCARD_ENCODER, Input 38, Aceleration 1, Type 2
    {
      C0 = TESTBIT V0741 ,0
      IF C0         // only active if MANUAL
      {
        L0 = &RO_VOR2FRQL * -5
        &VOR2FreqLow = ROTATE 0 ,99 ,L0
        CALL &CalcVOR2Freq
      }
    }
    
    Var 0065, name RO_VOR2FRQH, Link IOCARD_ENCODER, Input 36, Aceleration 1, Type 2
    {
      C0 = TESTBIT V0741 ,0
      IF C0         // only active if MANUAL
      {
        L0 = &RO_VOR2FRQH * -1
        &VOR2FreqHigh = ROTATE 8 ,35 ,L0
        CALL &CalcVOR2Freq
      }
    }
    
    Var 0992, static     // Refresh
    {
      CALL &OutVOR2Freq
      CALL &OutVOR2Crs
    }
    Thank you very much in advance, and sorry for bad English

    Regards

    Cyrille

  2. #2
    150+ Forum Groupie


    jonesthesoftware's Avatar
    Join Date
    Jul 2009
    Location
    aberdare, south wales UK
    Posts
    276
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with MCP Sioc Code

    Hi Cyrille
    Are you using encoder cards or are the encoders directly connected to a master card? If using encoder cards I'm sure I read somewhere that each encoder must be connected starting with an odd number input bit i.e 1 and 2 or 3 and 4 but NOT 2 and 3 or 4 and 5. Have you connected 5 volts supply to the master card?
    regards
    geoff
    utilisez-vous les cartes codeur ou vous connecter votre encodeurs directement à la carte maître. Si vous utilisez des cartes encodeur je suis sûr que j'ai lu quelque part que chaque codeur doit être connecté à commencer par un bit d'entrée impair soit 1 et 2 ou 3 et 4 mais pas 2 et 3 ou 4 et 5. Avez-vous connecté 5 volts d'alimentation à la carte de maître?

  3. #3
    10+ Posting Member
    Join Date
    Jul 2011
    Location
    France
    Posts
    10
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with MCP Sioc Code

    Hi Geoff

    Thanks for reply ! I'm using encoders CTS288 directly to the master card, i think they are well connected because they works fine for each function. There is just a "ghost" button who change Disengage bar variable (293) when i rotate HDG.

    The Master card is also connected with +5V

    I don't understand...

    regards

    Cyrille

  4. #4
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with MCP Sioc Code

    Bonjour Cyrille,

    Welcome here!

    About your question:

    It is not very likely that intermittent problems are caused by software. The SIOC code for the MCP is very straightforward and there is no link between Rotating the Heading and the Disengage Bar. The lekseecon program is running now for 4 years and in use by many people. It is also not very likely that there is a problem in lekseecon...

    Much more likely is that there is a hardware problem somewhere in your wiring, soldering, pcb, ...what have you? You better check that...

    regards,
    Nico

  5. #5
    10+ Posting Member
    Join Date
    Jul 2011
    Location
    France
    Posts
    10
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with MCP Sioc Code

    Bonjour Nico,

    Thanks for reply; i will follow your advice and check wiring. I soldered these cards myself, so its possible there is a bad contact somewhere...

    Have a nice day

    Cyrille

  6. #6
    New Member
    Join Date
    Feb 2012
    Location
    United States\chicago
    Posts
    4
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with MCP Sioc Code

    I tried yours code and i got similar problem. when I set HDG rotary input everything stops working, if I disable that input(ie set different input number) all back to normal.

  7. #7
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with MCP Sioc Code

    Same advice, check your wiring. It is very unlikely that this is a SIOC code problem.

  8. #8
    New Member
    Join Date
    Feb 2012
    Location
    United States\chicago
    Posts
    4
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with MCP Sioc Code

    kiek
    Same advice, check your wiring. It is very unlikely that this is a SIOC code problem.
    that's not a wiring problem, i checked it.rotary work if I set it to ALT or IAS variable.

  9. #9
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with MCP Sioc Code

    Well, then it is propably another type of hardware problem...

    Just to be sure, and to be able to help you, could you describe exactly what you have at the table:

    - hardware: Opencockpits MCP or self build.
    - SIOC code: what script? .ssi from my plug and play solution, or my source files (modified?), or ...
    - lekseecon: what version?
    - SIOC version?
    - sioc.ini: please post
    - lekseecon.log: please post a log of a session.
    - Operating System?
    - What do you mean by "everything stops working..."? Does lekseecon crash? Does SIOC crash? Do all the displays at the MCP become dark? Do you get a Blue screen, does your PC reboot or does it hang ...What happens...?
    Last edited by kiek; 03-22-2012 at 09:16 AM.

  10. #10
    New Member
    Join Date
    Feb 2012
    Location
    United States\chicago
    Posts
    4
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with MCP Sioc Code

    Quote Originally Posted by kiek View Post
    Well, then it is propably another type of hardware problem...

    Just to be sure, and to be able to help you, could you describe exactly what you have at the table:

    - hardware: Opencockpits MCP or self build.
    - SIOC code: what script? .ssi from my plug and play solution, or my source files (modified?), or ...
    - lekseecon: what version?
    - SIOC version?
    - sioc.ini: please post
    - lekseecon.log: please post a log of a session.
    - Operating System?
    - What do you mean by "everything stops working..."? Does lekseecon crash? Does SIOC crash? Do all the displays at the MCP become dark? Do you get a Blue screen, does your PC reboot or does it hang ...What happens...?
    1) Hardware MASTER CARD + USB EXPANSION CARD from OC (Bought them assembled) (rotary's from digikey 28
    2)I use script which is Cyrille01 provided above.
    3) lekseecon ver 8.2
    4)SIOC ver 4.01
    5) sioc ini
    Code:
    [ fichero de configuracion para el SIOC ver. 4.0 ]
    [ Configuration file for SIOC ]
    
    
    [************** SIOC ***************]
    
    [ Nombre asignado al SIOC ]
    [ SIOC name ]
    Name=Main
    
    [ Puerto del servidor IOCP ]
    [ IOCP port ]
    IOCP_port=8092
    
    [ Tiempo de respuesta mбximo de los paquetes IOCP ]
    [ IOCP Timeout ]
    IOCP_timeout=4000
    
    [ Arranque minimizado en la barra ]
    [ Start minimized in tray ] 
    Minimized=No
    
    [ Retraso necesario para las variables toggles (Project Magenta)]
    [ Deley needed for var. toggles (Project Magenta) ]
    toggle_delay=20
    
    [ Fichero de configuracion ]
    [ Configuration File ]
    CONFIG_FILE=C:\Users\Alex\Desktop\sioc.ssi
    
    [************** MONITOR MODULE ***************]
    
    [ Desabilitar monitorizacion remota del SIOC ]
    [ Remote monitor disable mode yes/no ]
    Monitor_disable=No
    
    [ Refresco broadcast monitor (en segundos) ]
    [ Broadcast monitor time (seconds) ]
    Monitor_time=2
    
    
    [************** IOCARDS MODULE ***************]
    
    [ Desactivar el mуdulo de las IOCards ]
    [ Disable IOCards module ]
    IOCard_disable=No
    
    [ Divisor de frecuencia para los ejes analogicos (1-999). Retarda la entrega de valores. ]
    [ Frequency divisor for delay the analogic axes. (1-999)]
    Divisor_AD=10
    
    [------------- CARDS CONFIG -------------]
    
    [ IOCard Master ]
    [...............]
    
    [ Spanish : ]
    
    [ MASTER=(Indice device),(Tipo),(Nъmero de tarjetas),(Nъmero device) ]
    
    [ Indice Device: Нndice usado en la variable SIOC como device, para indicar a que tarjeta se hace referencia ]
    [ Se usa 0 en el caso de que sуlo haya una tarjeta y no se tenga en cuenta el nъmero de device, por defecto un script en SIOC cuando no se pone parбmetro DEVICE, se hace referencia al нndice 0]
    
    [ tipo = 0 : Emulador de Master Card // OBSOLETO ]
    [ tipo = 1 : Tarjeta Master conectada al puerto paralelo directamente // OBSOLETO ]
    [ tipo = 2 : Tarjeta Master conectada al puerto paralelo mediante cable de compatibilidad // OBSOLETO ]
    [ tipo = 3 : Placa de expansiуn por puerto paralelo // OBSOLETO ]
    [ tipo = 4 : Tarjeta USBExpansion usada ]
    [ tipo = 5 : Modulo MCP de Opencockpits ]
    [ tipo = 6 : Tarjeta USBOutputs ]
    [ tipo = 7 : Modulo EFIS de Opencockpits ]
    [ tipo = 8 : Modulo Radio COM de Opencockpits ]
    [ tipo = 9 : Modulo Radio NAV de Opencockpits ]
    [ tipo = 10 : Modulo Radio ADF de Opencockpits ]
    [ tipo = 11 : Modulo Radio ATC de Opencockpits ]
    [ tipo = 12 : Modulo Radio Airbus RMP de Opencockpits ]
    
    
    [ Nъmero de tarjetas = Nъmero de placas Master usadas, 1 a 4 para uso de placas de expansiуn, 1 para conexiуn de placa Master directa o del Emulador ]
    
    [ Nъmero de device = 0 en el caso del Emulador o primera tarjeta USB detectada, Direcciуn del puerto paralelo (por ejemplo $0378), o nъmero de dispositivo USB ]
    
    
    [ Un ejemplo de 2 USBExpansion conectadas con 3 y 2 placas Master ]
    [ MASTER=0,4,3,22 ]
    [ MASTER=1,4,2,24 ]
    
    [ Un ejemplo de conexiуn a simulador ]
    [ MASTER=0,0,1,0 ]
    
    
    [ English : ]
    
    [ MASTER=(Device index),(Type),(Number of cards),(Device number) ]
    
    [ Device index : Index used in SIOC variable like device, this is the card used for SIOC sentence ]
    [ Use 0 for only one card, for this value you not need specify Device number. If you not use DEVICE parameter in a definition in SIOC script, the default index used is 0]
    
    [ type = 0 : Master Card Emulator // OBSOLETE ]
    [ type = 1 : Master Card connected directly to parallel port // OBSOLETE ]
    [ type = 2 : Master Card connected throught compatibility cable to parallel port //OBSOLETE]
    [ type = 3 : Expansion Card connected throught parallel port //OBSOLETE ]
    [ type = 4 : USBExpansion Card used ]
    [ type = 5 : Opencockpits MCP module ]
    [ type = 6 : USBOutputs Card used ]
    [ type = 7 : EFIS module ]
    [ type = 8 : Radio COM module ]
    [ type = 9 : Radio NAV module ]
    [ type = 10 : Radio ADF module ]
    [ type = 11 : Radio ATC module ]
    [ type = 12 : Radio RMP Airbus module ]
    
    [ Number of Cards = Master cards connecteds, 1 to 4 for expansion cards, 1 for a Master card directly connected or Emulator ]
    
    [ Number of device = 0 for Emulator or first USB card detected, parallel port address, device number for specifies USBexpansion card ]
    
    [ For example, two USBExpansion cards connected with 3 and 2 Master cards used ]
    [ MASTER=0,4,3,22 ]
    [ MASTER=1,4,2,24 ]
    
    [ For example, use of Master card emulator ]
    [ MASTER=0,0,1,0 ]
    
    [ Use the first USBExpansion card connected with only one Master Card attached ]
    [ Esta definiciуn es para usar la primera tarjeta USBExpansion que se encuentre instalada que ademбs llevarб conectada una placa Master ]
    
    [MASTER=3,6,1,252]
    [MASTER=0,4,1,0]
    MASTER=0,4,1,0
    MASTER=5,5,1,0
    
    [ Others Cards / Otras tarjetas ]
    [...............................]
    
    [ Spanish : ]
    
    [ Nombre_de_tarjeta=(Indice device),(Nъmero device) ]
    
    [ Indice Device: Нndice usado en la variable SIOC como device, para indicar a que tarjeta se hace referencia ]
    [ Se usa 0 en el caso de que sуlo haya una tarjeta y no se tenga en cuenta el nъmero de device, por defecto un script en SIOC cuando no se pone parбmetro DEVICE, se hace referencia al нndice 0]
    
    [ Nъmero de device = 0 para usar primera tarjeta USB de este tipo detectada у nъmero de dispositivo USB ]
    
    
    [ English : ]
    
    [ Name_of_card=(Device index),(Device number) ]
    
    [ Device index : Index used in SIOC variable like device, this is the card used for SIOC sentence ]
    [ Use 0 for only one card, for this value you not need specify Device number. If you not use DEVICE parameter in a definition in SIOC script, the default index used is 0]
    
    [ Number of device = 0 for first USB card of this type detected, or device number for a specifies device ]
    
    [ Ejemplo de dos USBServos en indices 0 y 1, y nъmeros de devices 17 y 23 ]
    [ Example of two USBServos for index 0 and 1, and device number 17 and 23 ]
    
    [ USBServos=0,17 ]
    [ USBServos=1,23 ]
    
    
    USBStepper=0,0
    USBKeys=0,0
    USBServos=0,0
    USBRelays=0,0
    USBDCmotor=0,0
    
    [ Para los ejes analуgicos se usan los nъmeros de devices de las tarjetas donde estбn alojados ]
    [ For analogic axles, you use the device number of cards what allow the axles ]
    
    USBAnalogic=0,0
    
    
    [************** FSUIPC MODULE ***************]
    
    [ Desabilitar lectura de las FSUIPC ]
    [ FSUIPC disable mode yes/no ]
    FSUipcdisable=No
    
    [ Refresco recepciуn FSUIPC ]
    [ FSUIPC refresh ]
    FSUipcRefresh=50
    
    
    [************** IOCP CLIENTS MODULES ***************]
    
    [ Retraso para inicializacion una vez conectado el cliente en milisegundos ]
    [ Delay for initialization when client has been connected in mseconds ]
    IOCPini_delay=3000
    
    [************** IOCP CLIENT MODULE #0 ***************]
    
    [ Desactivar el mуdulo cliente IOCP ]
    [ Disable IOCP client module ] 
    IOCPclient0_disable=No
    
    [ IP del servidor donde debe de conectar el cliente ]
    [ IOCP client host name ]
    IOCPclient0_host=localhost
    
    [ Puerto de envio del protocolo IOCP cliente ]
    [ IOCP client port ]
    IOCPclient0_port=8099
    
    
    [************** IOCP CLIENT MODULE #1 ***************]
    
    [ Desactivar el mуdulo cliente IOCP ]
    [ Disable IOCP client module ] 
    IOCPclient1_disable=Yes
    
    [ IP del servidor donde debe de conectar el cliente ]
    [ IOCP client host name ]
    IOCPclient1_host=localhost
    
    [ Puerto de envio del protocolo IOCP cliente ]
    [ IOCP client port ]
    IOCPclient1_port=8099
    
    
    [************** SOUND MODULE ***************]
    
    [ Ficheros de sonido ]
    [ Sound Files ]
    
    [ Desactivar el mуdulo de sonido ]
    [ Disable Sound module ]
    Sound_disable=yes
    
    [ Volumen general de los sonidos 0-100 ]
    [ Master Volume 0-100 ]
    Volume=100
    
    
    [ put '*' first filename for loop Sound ]
    [ anteponer '*' en el fichero para bucle continuo de sonido]
    
    [ Sound=wav_file,frequency,volume,pan ]
    [ frequency=100 to 100000 0=original -1=current ]
    [ volume=0 to 100, -1=current ]
    [ pan=-100 (left) to +100 (right) 0=center -1=current ]
    
    [ Sound=Fichero_wav,frecuencia,volumen,balance ]
    [ frecuencia=100 hasta 100000 0=original -1=Por defecto ]
    [ volumen=0 hasta 100 -1=Volumen por defecto ]
    [ balance=-100 (Izquierda) hasta +100 (Derecha) 0=centro -1=Por defecto ]
    
    [ #1 ]
    Sound=APDis.wav,-1,-1,-1
    
    [ #2 ]
    Sound=*outermk.wav,-1,-1,-1
    
    [ #3 ]
    Sound=*hello.wav
    
    [************** KEYBOARD EMULATOR MODULE ***************]
    
    [ Nombre exacto de la ventana donde se enviarбn las teclas ]
    [ Name of window for key send ]
    [window = "Project Magenta Glass Cockpit - Build 396" ]
    
    window =a.txt - Bloc de notas 
    
    
    [ Asignaciуn de teclas ]
    [ assign youe keys ]
    
    #1=\B\A
    #2=B
    #3=C
    #4=D
    #5=E
    #6=F
    #7=G
    #8=H
    #9=I
    #10=J
    #11=K
    #12=L
    #13=M
    #14=N
    #15=O
    #16=P
    #17=Q
    #18=R
    #19=S
    #20=T
    #21=U
    #22=V
    #23=W
    #24=X
    #25=Y
    #26=Z
    #27=1
    #28=2
    #29=3
    #30=4
    #31=5
    #32=6
    #33=7
    #34=8
    #35=9
    #36=0
    #37=<
    #38=,
    #39=.
    #40=-
    #41=*
    #42=+
    #43=//
    #44=/0
    #45=/1
    #46=/A
    #47=
    #48=
    #49=
    #50=
    #51=
    #52=
    #53=
    #54=
    #55=
    #56=
    #57=
    #58=
    #59=
    #60=
    #61=
    #62=
    #63=
    #64=
    #65=
    #66=
    #67=
    #68=
    #69=
    #70=
    #71=
    #72=
    #73=
    #74=
    #75=
    #76=
    #77=
    #78=
    #79=
    #80=
    #81=
    #82=
    #83=
    #84=
    #85=
    #86=
    #87=
    #88=<a
    #200=<b
    
    [ End of File ]



    6) lekseecon log file
    Code:
    lekseecon version 8.2
    
    C:\Program Files (x86)\IOCards\SIOC\sioc.ini found
      PORT=8092
      CONFIG_FILE=C:\Users\Alex\Desktop\sioc.ssi
    
    Parameters from sioc.ini were taken
    
    Number of lekseecon variable(-s) detected: 37
     267 268 270 271 272 274 275 276 277 278 280 281 282 283 284 285 286 287 288 289
     290 291 292 293 294 295 296 297 298 299 580 740 741 742 992 998 999
    SDK connected.
    
    31 variables registered at SIOC server (inicio)
    1 initial values received from SIOC server
    SIOC connected.
    
    Running...
    7) Operation system win 7 x 64

    - What do you mean by "everything stops working..."? Does lekseecon crash? Does SIOC crash? Do all the displays at the MCP become dark? Do you get a Blue screen, does your PC reboot or does it hang ...What happens...?
    I mean when I set input for my rotary(HDG), any of buttons didn't respond,
    If I set any other inputs which is not in use, all buttons come back to work, its happens only on HDG VAR.
    If I set same rotary to differ var i.e. ALT or IAS its working as it suppose to.

    No programs crash (windows, lekseecon, SIOC), no blue screens, no reboots and etc., everything working as it suppose to.

    9)log for SIOC console when i trying to use HDG rot.

    297=46 - read/write HDG from/to level-D panel
    9=46 - D_HDG
    7=0 - RO_HDG

Page 1 of 2 12 LastLast