Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    10+ Posting Member
    Join Date
    Apr 2010
    Location
    Wiesbaden, Germany
    Posts
    12
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    SIOC fault and lekseecon mystery

    Hi at all,
    i'm still starting to rebuilt my cockpit again and till now i have ereything working fine. But after changing OS to Win 7 and new versions of SIOC and Lekseecon, Lekseecon doesn't work like the old one. The only thing that works is the ALT selection on the MCP, but nothing else. With lekseecon X everything working normal.. (Strange?)
    Also i got a problem with the Variables of the Gearpanel.
    Installing the LEDs for gearindication and testing over iopconsole it works fine, but i don't get the indication during flight. All myy other indications are working, like brake, fireindication, etc, but the gearlights are still dark.
    the part of my script is like this:
    Var 0849, static
    {
    &O_LENGOVHT = TESTBIT V0849 ,6
    &O_LENGDisc = TESTBIT V0849 ,0
    &O_RENGOVHT = TESTBIT V0849 ,7
    &O_RENGDisc = TESTBIT V0849 ,1
    }

    Var 9001, name O_LENGFire, Link IOCARD_OUT, Device 1, Output 12

    Var 9002, name O_RENGfire, Link IOCARD_OUT, Device 1, Output 13

    Var 9003, name O_LENGOVHT, Link IOCARD_OUT, Device 1, Output 45

    Var 9004, name O_LENGDisc, Link IOCARD_OUT, Device 1, Output 46

    Var 9005, name O_RENGOVHT, Link IOCARD_OUT, Device 1, Output 47

    Var 9006, name O_RENGDisc, Link IOCARD_OUT, Device 1, Output 48

    Var 0559, Link IOCARD_SW, Device 1, Input 46, Type I // Eng fire test

    Var 0560, Link IOCARD_SW, Device 1, Input 47, Type I // wheel well fire test


    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 5980 name O_Doors Link IOCARD_OUT, Device 1, Output 15

    Var 5981 name O_Gear Link IOCARD_OUT, Device 1, Output 18

    Var 5982 name O_Nose Link IOCARD_OUT, Device 1, Output 14

    Var 5983 name O_Left Link IOCARD_OUT, Device 1, Output 17

    Var 5984 name O_Right Link IOCARD_OUT, Device 1, Output 16


    Greets from the cockpit
    Nils

  2. #2
    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: SIOC fault and lekseecon mystery

    Hi Nils,

    The SIOC script that you posted is okay except for vars 559 and 560. There you miss the attribute Static (lekseecon will not recognise these vars now).
    It should read:
    Code:
    Var 559 Static Link IOCARD_SW Device 1 Input 46 Type I // Eng fire test
    
    Var 560 Static Link IOCARD_SW Device 1 Input 47 Type I // wheel well fire test
    About your other problems I cannot say much because of lack of information, please post your lekseecon_log.txt (from your Documents folder).

    regards,
    Nico

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

    Re: SIOC fault and lekseecon mystery

    But i do Not have a Problem with the fireindication but only the gear.so i do not like to Change the "Working once".
    When i will Be back in my pc i will Look for the logfile
    Regarts
    Nils

  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: SIOC fault and lekseecon mystery

    Okay, but your Eng Fire Test and Wheel well fire test switches do not work, I guess...

    Your SIOC code for gear indicators is fine, you should only check device numbers, output numbers and so on.
    Also check that lekseecon has detected Var number 849 (in the log file).
    Last edited by kiek; 11-06-2010 at 10:39 AM.

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

    Re: SIOC fault and lekseecon mystery

    No, i'm sorry for misunderstanding.
    When i run the sim with lekseekonX everything is working fine without the Gearindication. So for the Script there is a problem with the Gearlights.
    When i try to run it with lekseekon7 only the altitude on the MCP is working, but everything else is dark (the rest of MCP, any switches and indication don't work).
    Thats what the Problem is.
    I'm not sure about the VAR 5980-5984. I also tried 9007 and on, but without success.
    What is the meaning of this Variables? The main Variables are that from your manual. 764,0-4 for example for the gear, so i think it doesn't matter which variables i take in front of the line, if they are not double in the script (which tell me the configprogramm from SIOC).

    Nils

  6. #6
    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: SIOC fault and lekseecon mystery

    Quote Originally Posted by cctflusi View Post
    What is the meaning of this Variables? The main Variables are that from your manual. 764,0-4 for example for the gear, so i think it doesn't matter which variables i take in front of the line, if they are not double in the script (which tell me the configprogramm from SIOC).
    That's right, it does not matter which numbers you take for these output variables, they are not part of lekseecon, they only have to be unique. Addressing goes via names.

    Your SIOC script is OK, you should search for the error in your configuration settings: sioc.ini and so on.

    Are you sure you have migrated to lekseecon version 7 completely? Have you read the changes log at the end of the lekseecon Manual?
    I don't think it is wise to have two versions of lekseecon at the same machine. Get rid of lekseeconX and install lekseecon version 7 from scratch.

    I cannot help you if you do not provide complete information, so post your sioc.ini, your complete SIOC script and the lekseecon_log.txt file of the run that caused problems.


    Nico

  7. #7
    10+ Posting Member
    Join Date
    Apr 2010
    Location
    Wiesbaden, Germany
    Posts
    12
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: SIOC fault and lekseecon mystery

    Logfile Lekseecon7

    Copyright (c) 2007-2010 Nico W. Kaan

    Prog: lekseecon version 7.0
    Path: COMP1: C:\lekseecon
    OS: Microsoft Windows 7 Ultimate, 64-bit
    lekseecon.ini found:
    HOSTADDRESS=192.168.0.10
    PORT=8092
    CONFIG_FILE=C:\programme\iocards\SIOC\mycockpit.ssi

    3 LevelD767 Vars were detected:
    299
    781 849

    SIOC connected.
    Connecting to Level-D SDK in MS Flight Simulator ...
    SDK connected.
    Running...


    sioc.ini
    [ fichero de configuracion para el SIOC ver. 3.7 ]
    [ Configuration file for SIOC ]


    [************** SIOC ***************]

    [ 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=.\mycockpit.ssi


    [************** IOCARDS MODULE ***************]

    [ Desactivar el módulo de las IOCards ]
    [ Disable IOCards module ]
    IOCard_disable=No

    [ Usar puerto LPT en las IOCards ]
    [ Use LPT port in IOCards ]
    IOCard_LPT=No


    [------------- 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 ]
    [ tipo = 1 : Tarjeta Master conectada al puerto paralelo directamente ]
    [ tipo = 2 : Tarjeta Master conectada al puerto paralelo mediante cable de compatibilidad ]
    [ tipo = 3 : Placa de expansión por puerto paralelo ]
    [ 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 ]


    [ 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 $037, o número de dispositivo USB ]

    [ Por ejemplo para una Master conectada al puerto paralelo : ]
    [ MASTER=0,1,1,$0378 ]

    [ 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 ]
    [ type = 1 : Master Card connected directly to parallel port ]
    [ type = 2 : Master Card connected throught compatibility cable to parallel port ]
    [ type = 3 : Expansion Card connected throught parallel port ]
    [ type = 4 : USBExpansion Card used ]
    [ type = 5 : Opencockpits MCP module ]
    [ type = 6 : USBOutputs Card used ]
    [ type = 7 : Opencockpits EFIS module ]
    [ type = 8 : Opencockpits Radio COM module ]
    [ type = 9 : Opencockpits Radio NAV module ]
    [ type = 10 : Opencockpits Radio ADF module ]
    [ type = 11 : Opencockpits Radio ATC 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, a Master Card connected directly to parallel port : ]
    [ MASTER=0,1,1,$0378 ]

    [ 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=0,5,1,13
    MASTER=1,4,1,15


    [ 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=Yes

    [ 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=8090


    [************** 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 ]


    mycockpitscript

    // *****************************************************************************
    // * Config_SIOC ver 3.7B1 - By Manolo Vélez - www.opencockpits.com
    // *****************************************************************************
    // * FileName : mycockpit.txt
    // * Date : 06.05.2010



    Var 0000, Value 0
    {
    &ColdAndDark = 0
    &LTestMIP = 0
    }

    Var 0268
    {
    IF V0268 <> &VOR1Crs // block values coming from rotary
    {
    &VOR1Crs = V0268
    }
    }

    Var 4312, name VOR1Crs
    {
    CALL &OutVOR1Crs
    }

    Var 4321, name OutVOR1Crs, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_VOR1Crs = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &D_VOR1Crs = 888
    }
    ELSE
    {
    &D_VOR1Crs = &VOR1Crs
    }
    }
    }

    Var 0742
    {
    &O_CMDLLed = TESTBIT V0742 ,0
    &O_CMDCLed = TESTBIT V0742 ,1
    &O_CMDRLed = TESTBIT V0742 ,2
    &IASMACH = TESTBIT V0742 ,3
    &SPDDisplay = TESTBIT V0742 ,4
    &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
    &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
    }

    Var 0296
    {
    IF &IAS <> V0296
    {
    &IAS = V0296
    }
    }

    Var 0297
    {
    IF &HDG <> V0297
    {
    &HDG = V0297
    }
    }

    Var 0298
    {
    L0 = V0298
    L1 = DIV L0 ,100
    IF &VS <> L1
    {
    &VS = L1
    }
    }

    Var 0299, static // read/write ALT from/to level-D panel
    {
    CALL &OutALT
    }

    Var 4506, name VSLed
    {
    CALL &OutVS
    }

    Var 4507, name ALT
    {
    CALL &OutALT
    }

    Var 4508, name IAS
    {
    CALL &OutIAS
    }

    Var 4509, name HDG
    {
    CALL &OutHDG
    }

    Var 4510, name VS
    {
    CALL &OutVS
    }

    Var 4511, name SPDDisplay
    {
    CALL &OutIAS
    }

    Var 4512, name IASMACH
    {
    CALL &OutIAS
    }

    Var 4520, name OutMCPButs, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &O_AT = 0
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &O_AT = 1
    }
    ELSE
    {
    &O_AT = V0292
    }
    }
    }

    Var 4521, name OutIAS, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &O_MACHDP = 0
    &D_IAS = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &O_MACHDP = 1
    &D_IAS = 888
    }
    ELSE
    {
    IF &SPDDisplay = 0
    {
    &O_MACHDP = 0
    &D_IAS = -999999
    }
    ELSE
    {
    &O_MACHDP = &IASMACH
    IF &IASMACH = 1
    {
    L0 = DIV &IAS ,10
    &D_IAS = L0
    }
    ELSE
    {
    &D_IAS = &IAS
    }
    }
    }
    }
    }

    Var 4522, name OutHDG, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_HDG = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &D_HDG = 888
    }
    ELSE
    {
    &D_HDG = &HDG
    }
    }
    }

    Var 4523, name OutVS, Link SUBRUTINE // VS display active or not
    {
    IF &ColdAndDark = 1
    {
    &D_VSS = -999999 // blank
    &D_VS0 = -999999 // blank
    &D_VS = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &D_VSS = 8
    &D_VS0 = 8
    &D_VS = 888
    }
    ELSE
    {
    IF &VSLed = 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 4524, name OutALT, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_ALT = -999999
    &D_ALTL0 = -999999
    &D_ALTL00 = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &D_ALT = 888
    &D_ALTL0 = 8
    &D_ALTL00 = 8
    }
    ELSE
    {
    L0 = &ALT * 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 0272
    {
    IF V0272 <> &VOR2Crs
    {
    &VOR2Crs = V0272
    }
    }

    Var 4313, name VOR2Crs
    {
    CALL &OutVOR2Crs
    }

    Var 4322, name OutVOR2Crs, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_VOR2Crs = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &D_VOR2Crs = 888
    }
    ELSE
    {
    &D_VOR2Crs = &VOR2Crs
    }
    }
    }

    Var 4370, name D_VOR1Crs, Link IOCARD_DISPLAY, Digit 0, Numbers 3

    Var 4571, name D_IAS, Link IOCARD_DISPLAY, Digit 3, Numbers 3

    Var 4572, name D_HDG, Link IOCARD_DISPLAY, Digit 6, Numbers 3

    Var 4573, name D_VS, Link IOCARD_DISPLAY, Digit 14, Numbers 3

    Var 4578, name D_VS0, Link IOCARD_DISPLAY, Digit 17, Numbers 1

    Var 4574, name D_VSS, Link IOCARD_DISPLAY, Digit 18, Numbers 1

    Var 4575, name D_ALT, Link IOCARD_DISPLAY, Digit 9, Numbers 3

    Var 4576, name D_ALTL00, Link IOCARD_DISPLAY, Digit 12, Numbers 1

    Var 4577, name D_ALTL0, Link IOCARD_DISPLAY, Digit 13, Numbers 1

    Var 4376, name D_VOR2Crs, Link IOCARD_DISPLAY, Digit 19, Numbers 3

    Var 4580, name O_N1Led, Link IOCARD_OUT, Output 21

    Var 4581, name O_SPDLed, Link IOCARD_OUT, Output 23

    Var 4582, name O_LNAVLed, Link IOCARD_OUT, Output 29

    Var 4583, name O_VNAVLed, Link IOCARD_OUT, Output 25

    Var 4584, name O_FLCHLed, Link IOCARD_OUT, Output 24

    Var 4585, name O_HDGHLDLed, Link IOCARD_OUT, Output 26

    Var 4586, name O_VSLed, Link IOCARD_OUT, Output 31

    Var 4587, name O_ALTHLDLed, Link IOCARD_OUT, Output 30

    Var 4588, name O_BCRSLed, Link IOCARD_OUT, Output 32 // Led CWSA is used as BCRS

    Var 4589, name O_LOCLed, Link IOCARD_OUT, Output 28

    Var 4590, name O_APPLed, Link IOCARD_OUT, Output 27

    Var 4591, name O_CMDLLed, Link IOCARD_OUT, Output 33

    Var 4592, name O_CMDCLed, Link IOCARD_OUT, Output 35

    Var 4593, name O_CMDRLed, Link IOCARD_OUT, Output 34 // Led CWSB is used as CMD R

    Var 4594, name O_AT, Link IOCARD_OUT, Output 22

    Var 4596, name O_MACHDP, Link IOCARD_OUT, Output 20

    Var 0275, Link IOCARD_SW, Input 21, Type P

    Var 0276, Link IOCARD_SW, Input 19, Type P

    Var 0277, Link IOCARD_SW, Input 18, Type P // CWS B is used as CMD R

    Var 0278, Link IOCARD_SW, Input 13, Type P

    Var 0279, Link IOCARD_SW, Device 1, Input 41, Type P // SPD Intervention

    Var 0280, Link IOCARD_SW, Input 32, Type P

    Var 0281, Link IOCARD_SW, Input 31, Type P

    Var 0282, Link IOCARD_SW, Input 23, Type P

    Var 0283, Link IOCARD_SW, Input 28, Type P

    Var 0284, Link IOCARD_SW, Device 1, Input 36, Type P // HDG SEL

    Var 0285, Link IOCARD_SW, Input 27, Type P

    Var 0286, Link IOCARD_SW, Input 30, Type P

    Var 0287, Link IOCARD_SW, Input 29, Type P

    Var 0288, Link IOCARD_SW, Input 20, Type I

    Var 0289, Link IOCARD_SW, Input 25, Type P

    Var 0290, Link IOCARD_SW, Input 24, Type P

    Var 0291, Link IOCARD_SW, Input 22, Type P

    Var 0292, Link IOCARD_SW, Input 33, Type I
    {
    IF &ColdAndDark = 0
    {
    &O_AT = V0292
    }
    }

    Var 0293, Link IOCARD_SW, Input 15, Type I

    Var 0294, Link IOCARD_SW, Input 16, Type I

    Var 0295, Link IOCARD_SW, Input 14, Type I

    Var 4640, name RO_VOR1CRS, Link IOCARD_ENCODER, Input 4, Aceleration 2, Type 2
    {
    L0 = &RO_VOR1CRS * -1 // turning right should be plus
    &VOR1Crs = ROTATE 0 ,359 ,L0
    V0268 = &VOR1Crs // to panel
    }

    Var 4641, name RO_Ias, Link IOCARD_ENCODER, Input 0, Aceleration 2, Type 2
    {
    IF &SPDDisplay = 1 // Respond only when Ias/Mach display on ..
    {
    L0 = &RO_Ias * -1 // turning right should be plus
    IF &IASMACH = 0
    {
    &IAS = LIMIT 100 ,399 ,L0
    }
    ELSE
    {
    &IAS = LIMIT 400 ,950 ,L0
    }
    V0296 = &IAS // to panel
    }
    }

    Var 4642, name RO_HDG, Link IOCARD_ENCODER, Input 6, Aceleration 2, Type 2
    {
    L0 = &RO_HDG * -1 // turning right should be plus
    &HDG = ROTATE 0 ,359 ,L0
    V0297 = &HDG // to panel
    }

    Var 4643, name RO_VS, Link IOCARD_ENCODER, Input 11, Aceleration 2, Type 2
    {
    IF &VSLed = 1 // Respond only when in VS mode ...
    {
    L0 = &RO_VS * -1 // turning right should be plus
    &VS = LIMIT -99 ,99 ,L0
    V0298 = &VS * 100 // to panel
    }
    }

    Var 4644, name RO_ALT, Link IOCARD_ENCODER, Input 2, Aceleration 2, Type 2
    {
    L0 = &RO_ALT * -1 // turning right should be plus
    &ALT = LIMIT 0 ,640 ,L0
    V0299 = &ALT
    }

    Var 4645, name RO_VOR2CRS, Link IOCARD_ENCODER, Input 9, Aceleration 2, Type 2
    {
    L0 = &RO_VOR2CRS * -1 // turning right should be plus
    &VOR2Crs = ROTATE 0 ,359 ,L0
    V0272 = &VOR2Crs // to panel
    }

    Var 0782, name FI_Panel
    {
    &ColdAndDark = TESTBIT &FI_Panel ,0
    }

    Var 1050, name ColdAndDark
    {
    CALL &Refresh
    }

    Var 1055, name Refresh, Link SUBRUTINE
    {
    CALL &OutIAS
    CALL &OutHDG
    CALL &OutVS
    CALL &OutALT
    CALL &OutMCPButs
    CALL &OutVOR1Crs
    CALL &OutVOR2Crs
    CALL &OutParkBrake
    }

    Var 0580, name LTestMIP
    {
    CALL &Refresh
    }

    Var 0508, name LSCPbr

    Var 0509, Link IOCARD_SW, Device 1, Input 42, Type I

    Var 7700, name FI_ParkBrake, Link FSUIPC_IN, Offset $0BC8, Length 2
    {
    C0 = &FI_ParkBrake = 0
    IF C0
    {
    &ParkBrake = 0
    }
    ELSE
    {
    &ParkBrake = 1
    }
    }

    Var 7710, name ParkBrake
    {
    &LSCPbr = &ParkBrake
    CALL &OutParkBrake
    }

    Var 7720, name OutParkBrake, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &O_ParkBrake = 0
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &O_ParkBrake = 1
    }
    ELSE
    {
    &O_ParkBrake = &ParkBrake
    }
    }
    }

    Var 7780, name O_ParkBrake, Link IOCARD_OUT, Device 1, Output 11

    Var 0505, Link IOCARD_SW, Device 1, Input 39, Type I

    Var 0506, Link IOCARD_SW, Device 1, Input 37, Type I

    Var 0507, Link IOCARD_SW, Device 1, Input 38, Type I

    Var 0503, Link IOCARD_SW, Device 1, Input 43, Type I

    Var 0504, Link IOCARD_SW, Device 1, Input 44, Type I

    Var 0249, Link IOCARD_SW, Device 1, Input 0, Type I

    Var 0250, Link IOCARD_SW, Device 1, Input 6, Type I

    Var 0251, Link IOCARD_SW, Device 1, Input 5, Type I

    Var 0252, Link IOCARD_SW, Device 1, Input 10, Type I

    Var 0254, Link IOCARD_SW, Device 1, Input 11, Type I

    Var 0260, Link IOCARD_SW, Device 1, Input 4, Type I

    Var 0261, Link IOCARD_SW, Device 1, Input 1, Type I

    Var 0262, Link IOCARD_SW, Device 1, Input 2, Type I

    Var 0263, Link IOCARD_SW, Device 1, Input 3, Type I

    Var 0264, Link IOCARD_SW, Device 1, Input 8, Type I

    Var 0265, Link IOCARD_SW, Device 1, Input 7, Type I

    Var 0781, static
    {
    &O_LENGFire = TESTBIT V0781 ,0
    &O_RENGfire = TESTBIT V0781 ,1
    }

    Var 0849, static
    {
    &O_LENGOVHT = TESTBIT V0849 ,6
    &O_LENGDisc = TESTBIT V0849 ,0
    &O_RENGOVHT = TESTBIT V0849 ,7
    &O_RENGDisc = TESTBIT V0849 ,1
    }

    Var 9001, name O_LENGFire, Link IOCARD_OUT, Device 1, Output 12

    Var 9002, name O_RENGfire, Link IOCARD_OUT, Device 1, Output 13

    Var 9003, name O_LENGOVHT, Link IOCARD_OUT, Device 1, Output 45

    Var 9004, name O_LENGDisc, Link IOCARD_OUT, Device 1, Output 46

    Var 9005, name O_RENGOVHT, Link IOCARD_OUT, Device 1, Output 47

    Var 9006, name O_RENGDisc, Link IOCARD_OUT, Device 1, Output 48

    Var 0559, Link IOCARD_SW, Device 1, Input 46, Type I // Eng fire test

    Var 0560, Link IOCARD_SW, Device 1, Input 47, Type I // wheel well fire test


    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 5980 name O_Doors Link IOCARD_OUT, Device 1, Output 15

    Var 5981 name O_Gear Link IOCARD_OUT, Device 1, Output 18

    Var 5982 name O_Nose Link IOCARD_OUT, Device 1, Output 14

    Var 5983 name O_Left Link IOCARD_OUT, Device 1, Output 17

    Var 5984 name O_Right Link IOCARD_OUT, Device 1, Output 16


    All for now, thanks for your support
    Nils

  8. #8
    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: SIOC fault and lekseecon mystery

    In the log you can read that lekseecon only detected 3 variables... that's why...

    For quite a long time now every lekseecon variable should have attribute Static...
    This was to support as well single and multiple file approaches. You must have missed that.

    I have add Static to a lot of lekseecon vars in your script. Copy, compile and try again. I guess a lot more functions will work

    Code:
    Var 0000, Value 0
    {
    &ColdAndDark = 0
    &LTestMIP = 0
    }
    
    Var 0268 Static
    {
    IF V0268 <> &VOR1Crs // block values coming from rotary
    {
    &VOR1Crs = V0268
    }
    }
    
    Var 4312, name VOR1Crs
    {
    CALL &OutVOR1Crs
    }
    
    Var 4321, name OutVOR1Crs, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_VOR1Crs = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &D_VOR1Crs = 888
    }
    ELSE
    {
    &D_VOR1Crs = &VOR1Crs
    }
    }
    }
    
    Var 0742 Static
    {
    &O_CMDLLed = TESTBIT V0742 ,0
    &O_CMDCLed = TESTBIT V0742 ,1
    &O_CMDRLed = TESTBIT V0742 ,2
    &IASMACH = TESTBIT V0742 ,3
    &SPDDisplay = TESTBIT V0742 ,4
    &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
    &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
    }
    
    Var 0296 Static
    {
    IF &IAS <> V0296
    {
    &IAS = V0296
    }
    }
    
    Var 0297 Static
    {
    IF &HDG <> V0297
    {
    &HDG = V0297
    }
    }
    
    Var 0298 Static
    {
    L0 = V0298
    L1 = DIV L0 ,100
    IF &VS <> L1
    {
    &VS = L1
    }
    }
    
    Var 0299, static // read/write ALT from/to level-D panel
    {
    CALL &OutALT
    }
    
    Var 4506, name VSLed
    {
    CALL &OutVS
    }
    
    Var 4507, name ALT
    {
    CALL &OutALT
    }
    
    Var 4508, name IAS
    {
    CALL &OutIAS
    }
    
    Var 4509, name HDG
    {
    CALL &OutHDG
    }
    
    Var 4510, name VS
    {
    CALL &OutVS
    }
    
    Var 4511, name SPDDisplay
    {
    CALL &OutIAS
    }
    
    Var 4512, name IASMACH
    {
    CALL &OutIAS
    }
    
    Var 4520, name OutMCPButs, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &O_AT = 0
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &O_AT = 1
    }
    ELSE
    {
    &O_AT = V0292
    }
    }
    }
    
    Var 4521, name OutIAS, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &O_MACHDP = 0
    &D_IAS = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &O_MACHDP = 1
    &D_IAS = 888
    }
    ELSE
    {
    IF &SPDDisplay = 0
    {
    &O_MACHDP = 0
    &D_IAS = -999999
    }
    ELSE
    {
    &O_MACHDP = &IASMACH
    IF &IASMACH = 1
    {
    L0 = DIV &IAS ,10
    &D_IAS = L0
    }
    ELSE
    {
    &D_IAS = &IAS
    }
    }
    }
    }
    }
    
    Var 4522, name OutHDG, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_HDG = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &D_HDG = 888
    }
    ELSE
    {
    &D_HDG = &HDG
    }
    }
    }
    
    Var 4523, name OutVS, Link SUBRUTINE // VS display active or not
    {
    IF &ColdAndDark = 1
    {
    &D_VSS = -999999 // blank
    &D_VS0 = -999999 // blank
    &D_VS = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &D_VSS = 8
    &D_VS0 = 8
    &D_VS = 888
    }
    ELSE
    {
    IF &VSLed = 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 4524, name OutALT, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_ALT = -999999
    &D_ALTL0 = -999999
    &D_ALTL00 = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &D_ALT = 888
    &D_ALTL0 = 8
    &D_ALTL00 = 8
    }
    ELSE
    {
    L0 = &ALT * 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 0272 Static
    {
    IF V0272 <> &VOR2Crs
    {
    &VOR2Crs = V0272
    }
    }
    
    Var 4313, name VOR2Crs
    {
    CALL &OutVOR2Crs
    }
    
    Var 4322, name OutVOR2Crs, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_VOR2Crs = -999999
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &D_VOR2Crs = 888
    }
    ELSE
    {
    &D_VOR2Crs = &VOR2Crs
    }
    }
    }
    
    Var 4370, name D_VOR1Crs, Link IOCARD_DISPLAY, Digit 0, Numbers 3
    
    Var 4571, name D_IAS, Link IOCARD_DISPLAY, Digit 3, Numbers 3
    
    Var 4572, name D_HDG, Link IOCARD_DISPLAY, Digit 6, Numbers 3
    
    Var 4573, name D_VS, Link IOCARD_DISPLAY, Digit 14, Numbers 3
    
    Var 4578, name D_VS0, Link IOCARD_DISPLAY, Digit 17, Numbers 1
    
    Var 4574, name D_VSS, Link IOCARD_DISPLAY, Digit 18, Numbers 1
    
    Var 4575, name D_ALT, Link IOCARD_DISPLAY, Digit 9, Numbers 3
    
    Var 4576, name D_ALTL00, Link IOCARD_DISPLAY, Digit 12, Numbers 1
    
    Var 4577, name D_ALTL0, Link IOCARD_DISPLAY, Digit 13, Numbers 1
    
    Var 4376, name D_VOR2Crs, Link IOCARD_DISPLAY, Digit 19, Numbers 3
    
    Var 4580, name O_N1Led, Link IOCARD_OUT, Output 21
    
    Var 4581, name O_SPDLed, Link IOCARD_OUT, Output 23
    
    Var 4582, name O_LNAVLed, Link IOCARD_OUT, Output 29
    
    Var 4583, name O_VNAVLed, Link IOCARD_OUT, Output 25
    
    Var 4584, name O_FLCHLed, Link IOCARD_OUT, Output 24
    
    Var 4585, name O_HDGHLDLed, Link IOCARD_OUT, Output 26
    
    Var 4586, name O_VSLed, Link IOCARD_OUT, Output 31
    
    Var 4587, name O_ALTHLDLed, Link IOCARD_OUT, Output 30
    
    Var 4588, name O_BCRSLed, Link IOCARD_OUT, Output 32 // Led CWSA is used as BCRS
    
    Var 4589, name O_LOCLed, Link IOCARD_OUT, Output 28
    
    Var 4590, name O_APPLed, Link IOCARD_OUT, Output 27
    
    Var 4591, name O_CMDLLed, Link IOCARD_OUT, Output 33
    
    Var 4592, name O_CMDCLed, Link IOCARD_OUT, Output 35
    
    Var 4593, name O_CMDRLed, Link IOCARD_OUT, Output 34 // Led CWSB is used as CMD R
    
    Var 4594, name O_AT, Link IOCARD_OUT, Output 22
    
    Var 4596, name O_MACHDP, Link IOCARD_OUT, Output 20
    
    Var 0275 Static, Link IOCARD_SW, Input 21, Type P
    
    Var 0276 Static, Link IOCARD_SW, Input 19, Type P
    
    Var 0277 Static, Link IOCARD_SW, Input 18, Type P // CWS B is used as CMD R
    
    Var 0278 Static, Link IOCARD_SW, Input 13, Type P
    
    Var 0279 Static, Link IOCARD_SW, Device 1, Input 41, Type P // SPD Intervention
    
    Var 0280 Static, Link IOCARD_SW, Input 32, Type P
    
    Var 0281 Static, Link IOCARD_SW, Input 31, Type P
    
    Var 0282 Static, Link IOCARD_SW, Input 23, Type P
    
    Var 0283 Static, Link IOCARD_SW, Input 28, Type P
    
    Var 0284 Static, Link IOCARD_SW, Device 1, Input 36, Type P // HDG SEL
    
    Var 0285 Static, Link IOCARD_SW, Input 27, Type P
    
    Var 0286 Static, Link IOCARD_SW, Input 30, Type P
    
    Var 0287 Static, Link IOCARD_SW, Input 29, Type P
    
    Var 0288 Static, Link IOCARD_SW, Input 20, Type I
    
    Var 0289 Static, Link IOCARD_SW, Input 25, Type P
    
    Var 0290 Static, Link IOCARD_SW, Input 24, Type P
    
    Var 0291 Static, Link IOCARD_SW, Input 22, Type P
    
    Var 0292 Static, Link IOCARD_SW, Input 33, Type I
    {
    IF &ColdAndDark = 0
    {
    &O_AT = V0292
    }
    }
    
    Var 0293 Static, Link IOCARD_SW, Input 15, Type I
    
    Var 0294 Static, Link IOCARD_SW, Input 16, Type I
    
    Var 0295 Static, Link IOCARD_SW, Input 14, Type I
    
    Var 4640, name RO_VOR1CRS, Link IOCARD_ENCODER, Input 4, Aceleration 2, Type 2
    {
    L0 = &RO_VOR1CRS * -1 // turning right should be plus
    &VOR1Crs = ROTATE 0 ,359 ,L0
    V0268 = &VOR1Crs // to panel
    }
    
    Var 4641, name RO_Ias, Link IOCARD_ENCODER, Input 0, Aceleration 2, Type 2
    {
    IF &SPDDisplay = 1 // Respond only when Ias/Mach display on ..
    {
    L0 = &RO_Ias * -1 // turning right should be plus
    IF &IASMACH = 0
    {
    &IAS = LIMIT 100 ,399 ,L0
    }
    ELSE
    {
    &IAS = LIMIT 400 ,950 ,L0
    }
    V0296 = &IAS // to panel
    }
    }
    
    Var 4642, name RO_HDG, Link IOCARD_ENCODER, Input 6, Aceleration 2, Type 2
    {
    L0 = &RO_HDG * -1 // turning right should be plus
    &HDG = ROTATE 0 ,359 ,L0
    V0297 = &HDG // to panel
    }
    
    Var 4643, name RO_VS, Link IOCARD_ENCODER, Input 11, Aceleration 2, Type 2
    {
    IF &VSLed = 1 // Respond only when in VS mode ...
    {
    L0 = &RO_VS * -1 // turning right should be plus
    &VS = LIMIT -99 ,99 ,L0
    V0298 = &VS * 100 // to panel
    }
    }
    
    Var 4644, name RO_ALT, Link IOCARD_ENCODER, Input 2, Aceleration 2, Type 2
    {
    L0 = &RO_ALT * -1 // turning right should be plus
    &ALT = LIMIT 0 ,640 ,L0
    V0299 = &ALT
    }
    
    Var 4645, name RO_VOR2CRS, Link IOCARD_ENCODER, Input 9, Aceleration 2, Type 2
    {
    L0 = &RO_VOR2CRS * -1 // turning right should be plus
    &VOR2Crs = ROTATE 0 ,359 ,L0
    V0272 = &VOR2Crs // to panel
    }
    
    Var 0782 Static, name FI_Panel
    {
    &ColdAndDark = TESTBIT &FI_Panel ,0
    }
    
    Var 1050, name ColdAndDark
    {
    CALL &Refresh
    }
    
    Var 1055, name Refresh, Link SUBRUTINE
    {
    CALL &OutIAS
    CALL &OutHDG
    CALL &OutVS
    CALL &OutALT
    CALL &OutMCPButs
    CALL &OutVOR1Crs
    CALL &OutVOR2Crs
    CALL &OutParkBrake
    }
    
    Var 0580 Static, name LTestMIP
    {
    CALL &Refresh
    }
    
    Var 0508 Static, name LSCPbr
    
    Var 0509 Static, Link IOCARD_SW, Device 1, Input 42, Type I
    
    Var 7700, name FI_ParkBrake, Link FSUIPC_IN, Offset $0BC8, Length 2
    {
    C0 = &FI_ParkBrake = 0
    IF C0
    {
    &ParkBrake = 0
    }
    ELSE
    {
    &ParkBrake = 1
    }
    }
    
    Var 7710, name ParkBrake
    {
    &LSCPbr = &ParkBrake
    CALL &OutParkBrake
    }
    
    Var 7720, name OutParkBrake, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &O_ParkBrake = 0
    }
    ELSE
    {
    IF &LTestMIP = 1
    {
    &O_ParkBrake = 1
    }
    ELSE
    {
    &O_ParkBrake = &ParkBrake
    }
    }
    }
    
    Var 7780, name O_ParkBrake, Link IOCARD_OUT, Device 1, Output 11
    
    Var 0505 Static, Link IOCARD_SW, Device 1, Input 39, Type I
    
    Var 0506 Static, Link IOCARD_SW, Device 1, Input 37, Type I
    
    Var 0507 Static, Link IOCARD_SW, Device 1, Input 38, Type I
    
    Var 0503 Static, Link IOCARD_SW, Device 1, Input 43, Type I
    
    Var 0504 Static, Link IOCARD_SW, Device 1, Input 44, Type I
    
    Var 0249 Static, Link IOCARD_SW, Device 1, Input 0, Type I
    
    Var 0250 Static, Link IOCARD_SW, Device 1, Input 6, Type I
    
    Var 0251 Static, Link IOCARD_SW, Device 1, Input 5, Type I
    
    Var 0252 Static, Link IOCARD_SW, Device 1, Input 10, Type I
    
    Var 0254 Static, Link IOCARD_SW, Device 1, Input 11, Type I
    
    Var 0260 Static, Link IOCARD_SW, Device 1, Input 4, Type I
    
    Var 0261 Static, Link IOCARD_SW, Device 1, Input 1, Type I
    
    Var 0262 Static, Link IOCARD_SW, Device 1, Input 2, Type I
    
    Var 0263 Static, Link IOCARD_SW, Device 1, Input 3, Type I
    
    Var 0264 Static, Link IOCARD_SW, Device 1, Input 8, Type I
    
    Var 0265 Static, Link IOCARD_SW, Device 1, Input 7, Type I
    
    Var 0781 Static
    {
    &O_LENGFire = TESTBIT V0781 ,0
    &O_RENGfire = TESTBIT V0781 ,1
    }
    
    Var 0849 Static
    {
    &O_LENGOVHT = TESTBIT V0849 ,6
    &O_LENGDisc = TESTBIT V0849 ,0
    &O_RENGOVHT = TESTBIT V0849 ,7
    &O_RENGDisc = TESTBIT V0849 ,1
    }
    
    Var 9001, name O_LENGFire, Link IOCARD_OUT, Device 1, Output 12
    
    Var 9002, name O_RENGfire, Link IOCARD_OUT, Device 1, Output 13
    
    Var 9003, name O_LENGOVHT, Link IOCARD_OUT, Device 1, Output 45
    
    Var 9004, name O_LENGDisc, Link IOCARD_OUT, Device 1, Output 46
    
    Var 9005, name O_RENGOVHT, Link IOCARD_OUT, Device 1, Output 47
    
    Var 9006, name O_RENGDisc, Link IOCARD_OUT, Device 1, Output 48
    
    Var 0559, Link IOCARD_SW, Device 1, Input 46, Type I // Eng fire test
    
    Var 0560, Link IOCARD_SW, Device 1, Input 47, Type I // wheel well fire test
    
    
    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 5980 name O_Doors Link IOCARD_OUT, Device 1, Output 15
    
    Var 5981 name O_Gear Link IOCARD_OUT, Device 1, Output 18
    
    Var 5982 name O_Nose Link IOCARD_OUT, Device 1, Output 14
    
    Var 5983 name O_Left Link IOCARD_OUT, Device 1, Output 17
    
    Var 5984 name O_Right Link IOCARD_OUT, Device 1, Output 16

  9. #9
    10+ Posting Member
    Join Date
    Apr 2010
    Location
    Wiesbaden, Germany
    Posts
    12
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: SIOC fault and lekseecon mystery

    Thx very much, but bad news.
    Gearindication still not working. I can turn the lights of and on sending 0,1 via IOPConsole looking for the written variables in the script and that works, but not in the Sim. All other outputs i have (parkingbrake, Fireindication) are working fine in the Sim.

    Also lekseecon7 still not working
    Nils

  10. #10
    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: SIOC fault and lekseecon mystery

    log file please ...

Page 1 of 3 123 LastLast

Similar Threads

  1. SIOC AND LEKSEECON: INSTALL ERROR??
    By shoumi in forum lekseecon Q&A and Discussions
    Replies: 12
    Last Post: 10-16-2010, 04:48 AM
  2. Programming in SIOC with Lekseecon?
    By Boeing 747 Flyer in forum lekseecon Q&A and Discussions
    Replies: 10
    Last Post: 04-28-2010, 05:30 PM
  3. LEKSEECON: a Level-D 767 to SIOC connector
    By kiek in forum I/O Interfacing Hardware and Software
    Replies: 1
    Last Post: 07-31-2007, 05:35 AM
  4. !! pmSystems -- Yaw Damper Fault !!
    By Thomas Richter in forum PMSystems
    Replies: 0
    Last Post: 04-25-2007, 09:51 AM