Results 1 to 5 of 5
  1. #1
    10+ Posting Member
    Join Date
    May 2011
    Location
    Puerto Rico
    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

    Problems with display card on the second master and sioc!!

    Hi to all i got a usb expation card with 2 master cards, the first master card has 2 display cards and the second has only 1 for now.
    I'm workinf to put to work a comm1 with left and right displays and 2 dual encoders; my problem is that for some reason i can turn on
    all the display with the controlador to test them and they are ok, but using the sioc the display card on first master works but no the display card on the second master, i will pastes the sioc.ini and the program i'm running from lekseecon, the sim is level D.


    Var 0000, Value 0
    {
    &ColdAndDark = 0
    }

    Var 0001, name Dimmed

    Var 0013, name Double_1

    Var 0237, name VOR1FreqLow

    Var 0238, name VOR1FreqHigh

    Var 0239, name VOR1Freq

    Var 0240, name VOR2FreqLow

    Var 0241, name VOR2FreqHigh

    Var 0242, name VOR2Freq

    Var 0266, static, Link IOCARD_SW, Input 29, Type P

    Var 0275, name CMDLBut, static, Link IOCARD_SW, Input 11, Type P

    Var 0276, name CMDCBut, static, Link IOCARD_SW, Input 12, Type P

    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 0270, static, Link IOCARD_SW, Input 21, Type P // VOR1 MANUAL/AUTO

    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 0274, static, Link IOCARD_SW, Input 53, Type P

    Var 0277, name CMDRBut, static, Link IOCARD_SW, Input 13, Type P // CWS B is used as CMD R

    Var 0278, name MachSel, static, Link IOCARD_SW, Input 14, Type P

    Var 0279, name SpdIntBut, static, Link IOCARD_SW, Input 20, Type P

    Var 0280, name N1But, static, Link IOCARD_SW, Input 0, Type P

    Var 0281, name SPD, static, Link IOCARD_SW, Input 1, Type P

    Var 0282, name ALTHLDBut, static, Link IOCARD_SW, Input 7, Type P

    Var 0283, name HDGHLD, static, Link IOCARD_SW, Input 5, Type P

    Var 0284, name HDGSEL, static, Link IOCARD_SW, Input 19, Type P

    Var 0285, name LNAVBut, static, Link IOCARD_SW, Input 2, Type P

    Var 0286, name VNAVBut, static, Link IOCARD_SW, Input 3, Type P

    Var 0287, name FLCHBut, static, Link IOCARD_SW, Input 4, Type P

    Var 0288, name BCRS, Link IOCARD_SW, Input 8, Type I // CWS A is used as BCRS

    Var 0289, name LOCBut, static, Link IOCARD_SW, Input 9, Type P

    Var 0290, name APPBut, static, Link IOCARD_SW, Input 10, Type P

    Var 0291, name VSBut, static, Link IOCARD_SW, Input 6, Type P

    Var 0292, name ATSwitch, static, Link IOCARD_SW, Input 15, Type I
    {
    IF &ColdAndDark = 0
    {
    &O_ATLed = &ATSwitch
    }
    }

    Var 0293, name DisEngBar, static, Link IOCARD_SW, Input 16, Type I

    Var 0294, name CapFD, static, Link IOCARD_SW, Input 17, Type I

    Var 0295, name FOFD, static, Link IOCARD_SW, Input 18, Type I

    Var 0296, name IAS, static // read/write IAS from/to level-D panel
    {
    CALL &OutIAS
    }

    Var 0297, static // read/write HDG from/to level-D panel
    {
    CALL &OutHDG
    }

    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 0299, static // read/write ALT from/to level-D panel
    {
    CALL &OutALT
    }

    Var 0300, name D_VSS, Link IOCARD_DISPLAY, Digit 15, Numbers 1

    Var 0301, name D_VS0, Link IOCARD_DISPLAY, Digit 14, Numbers 1

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

    Var 0303, name OutALT, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_ALT = -999999
    &D_ALTL0 = -999999
    &D_ALTL00 = -999999
    }
    ELSE
    {
    IF &TestMIP = 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 0304, name D_ALT, Link IOCARD_DISPLAY, Digit 0, Numbers 3

    Var 0305, name D_ALTL00, Link IOCARD_DISPLAY, Digit 3, Numbers 1

    Var 0306, name D_ALTL0, Link IOCARD_DISPLAY, Digit 4, Numbers 1

    Var 0307, name O_N1LED, Link IOCARD_OUT, Output 11

    Var 0308, name O_SPDLed, Link IOCARD_OUT, Output 12

    Var 0309, name O_LNAVLed, Link IOCARD_OUT, Output 13

    Var 0310, name O_VNAVLed, Link IOCARD_OUT, Output 14

    Var 0311, name O_FLCHLed, Link IOCARD_OUT, Output 15

    Var 0312, name O_HDGHLDLed, Link IOCARD_OUT, Output 16

    Var 0313, name O_VSLed, Link IOCARD_OUT, Output 17

    Var 0314, name O_ALTHLDLed, Link IOCARD_OUT, Output 18

    Var 0315, name O_BCRSLed, Link IOCARD_OUT, Device 2, Output 32

    Var 0316, name O_LOCLed, Link IOCARD_OUT, Output 20

    Var 0317, name O_APPLed, Link IOCARD_OUT, Output 21

    Var 0318, name O_CMDLLed, Link IOCARD_OUT, Output 22

    Var 0319, name O_CMDCLed, Link IOCARD_OUT, Output 23

    Var 0320, name O_CMDRLed, Link IOCARD_OUT, Output 24

    Var 0321, name O_MACHDP, Link IOCARD_OUT, Output 25

    Var 0322, name OutIAS, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &O_MACHDP = 0
    &D_IAS = -999999
    }
    ELSE
    {
    IF &TestMIP = 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 0332, name D_IAS, Link IOCARD_DISPLAY, Digit 5, Numbers 3

    Var 0333, name OutHDG, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_HDG = -999999
    }
    ELSE
    {
    IF &TestMIP = 1
    {
    &D_HDG = 888
    }
    ELSE
    {
    &D_HDG = V0297
    }
    }
    }

    Var 0338, name VSActive
    {
    CALL &OutVS
    }

    Var 0339, name OutVS, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_VSS = -999999 // blank
    &D_VS0 = -999999 // blank
    &D_VS = -999999
    }
    ELSE
    {
    IF &TestMIP = 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 0340, name D_VS, Link IOCARD_DISPLAY, Digit 11, Numbers 3

    Var 0359, name SPDDisplay
    {
    CALL &OutIAS
    }

    Var 0384, name IASMACH
    {
    CALL &OutIAS
    }

    Var 0475, name D_HDG, Link IOCARD_DISPLAY, Digit 8, Numbers 3

    Var 0480, name O_ATLed, Link IOCARD_OUT, Output 69

    Var 0495, name RO_Ias, Link IOCARD_ENCODER, Input 24, 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
    }
    }
    }

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

    Var 0497, name OutMCPButs, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &O_ATLed = 0
    }
    ELSE
    {
    IF &TestMIP = 1
    {
    &O_ATLed = 1
    }
    ELSE
    {
    &O_ATLed = &ATSwitch
    }
    }
    }

    Var 0580, name TestMIP, static, Link IOCARD_SW, Input 71, Type P // test button at ASA panel in MIP

    Var 0638, name VS
    {
    CALL &OutVS
    }

    Var 0697, name ColdAndDark

    Var 0698, name LeftBusOff

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

    Var 0739, static
    {
    &O_Warning = TESTBIT V0739 ,0
    &O_Caution = TESTBIT V0739 ,1
    }

    Var 0740, static
    {
    &O_VOR1Manual = TESTBIT V0740 ,0
    &O_VOR1Auto = TESTBIT V0740 ,1
    &O_VOR1FDP = TESTBIT V0740 ,2
    }

    Var 0741, static
    {
    &O_VOR2Manual = TESTBIT V0741 ,0
    &O_VOR2Auto = TESTBIT V0741 ,1
    &O_VOR2FDP = TESTBIT V0741 ,2
    }

    Var 0742, static
    {
    &O_N1LED = TESTBIT V0742 ,15
    &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_SPDLed = TESTBIT V0742 ,16
    &IASMACH = TESTBIT V0742 ,3
    &SPDDisplay = TESTBIT V0742 ,4
    &VSActive = TESTBIT V0742 ,10
    }

    Var 0782, static
    {
    &ColdAndDark = TESTBIT V0782 ,0
    &LeftBusOff = TESTBIT V0782 ,1
    }
    ///////////////////////////////////////////////////////////vhf//////////////////////////////////////////////////
    Var 852 Static
    {
    L0 = v852
    L1 = MOD L0 16
    IF L1 = 10
    {
    &D_COM1L0 = -999999 // blank
    &D_COM1L1 = -999999 // blank
    &D_COM1L2 = -999999 // blank
    &D_COM1L3 = -999999 // blank
    &D_COM1L4 = -999999 // blank
    }
    ELSE
    {
    // no need to test right most digit, is never 6
    &D_COM1L0 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1L1 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1L2 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1L3 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    // no need to test left most digit, is never 6
    &D_COM1L4 = L1
    }
    }

    Var 853 Static
    {
    L0 = v853
    L1 = MOD L0 16
    IF L1 = 10
    {
    &D_COM1R0 = -999999 // blank
    &D_COM1R1 = -999999 // blank
    &D_COM1R2 = -999999 // blank
    &D_COM1R3 = -999999 // blank
    &D_COM1R4 = -999999 // blank
    }
    ELSE
    {
    // no need to test right most digit, is never 6
    &D_COM1R0 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1R1 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1R2 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1R3 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    // no need to test left most digit, is never 6
    &D_COM1R4 = L1
    }
    }

    Var 779 Static
    {
    &O_COM1Lft = TESTBIT v779 0
    &O_COM1Rgt = TESTBIT v779 1
    &O_DPCOM1L = TESTBIT v779 2
    &O_DPCOM1R = TESTBIT v779 2
    }

    Var 510 Static, Link IOCARD_SW, Input 82, Type I
    Var 511 Static, Link IOCARD_SW, Input 81, Type I

    Var 515 Static
    Var 516 Static

    Var 9001, name RO_LCOM1H, Link IOCARD_ENCODER, Input 72, Aceleration 1, Type 2
    {
    L0 = &RO_LCOM1H * -1
    v515 = ROTATE 0 127 L0
    }

    Var 9002, name RO_LCOM1L, Link IOCARD_ENCODER, Input 74, Aceleration 1, Type 2
    {
    L0 = &RO_LCOM1L * -1
    v516 = ROTATE 0 127 L0
    }



    Var 517 Static
    Var 518 Static

    Var 9003, name RO_RCOM1H, Link IOCARD_ENCODER, Input 76, Aceleration 1, Type 2
    {
    L0 = &RO_RCOM1H * -1
    v517 = ROTATE 0 127 L0
    }

    Var 9004, name RO_RCOM1L, Link IOCARD_ENCODER, Input 78, Aceleration 1, Type 2
    {
    L0 = &RO_RCOM1L * -1
    v518 = ROTATE 0 127 L0
    }



    Var 8170, name D_COM1L0, Link IOCARD_DISPLAY, Digit 64, Numbers 1
    Var 8171, name D_COM1L1, Link IOCARD_DISPLAY, Digit 65, Numbers 1
    Var 8172, name D_COM1L2, Link IOCARD_DISPLAY, Digit 66, Numbers 1
    Var 8173, name D_COM1L3, Link IOCARD_DISPLAY, Digit 67, Numbers 1
    Var 8174, name D_COM1L4, Link IOCARD_DISPLAY, Digit 68, Numbers 1
    Var 8175, name D_COM1R0, Link IOCARD_DISPLAY, Digit 69, Numbers 1
    Var 8176, name D_COM1R1, Link IOCARD_DISPLAY, Digit 70, Numbers 1
    Var 8177, name D_COM1R2, Link IOCARD_DISPLAY, Digit 71, Numbers 1
    Var 8178, name D_COM1R3, Link IOCARD_DISPLAY, Digit 72, Numbers 1
    Var 8179, name D_COM1R4, Link IOCARD_DISPLAY, Digit 73, Numbers 1

    Var 8180, name O_COM1Lft, Link IOCARD_OUT, Output 75
    Var 8181, name O_COM1Rgt, Link IOCARD_OUT, Output 76
    Var 8182, name O_DPCOM1L, Link IOCARD_OUT, Output 77
    Var 8183, name O_DPCOM1R, Link IOCARD_OUT, Output 78

    //
    ///////////////////////////////////////////////////////////////////////////

    Var 0998, static // Refresh
    {
    CALL &OutVOR1Freq
    CALL &OutVOR1Crs
    }

    Var 0992, static // Refresh
    {
    CALL &OutVOR2Freq
    CALL &OutVOR2Crs
    }

    Var 0999, static
    {
    CALL &OutMCPButs
    CALL &OutIAS
    CALL &OutHDG
    CALL &OutVS
    CALL &OutALT
    }

    Var 9022, name O_Warning, Link IOCARD_OUT, Output 26

    Var 9023, name O_Caution, Link IOCARD_OUT, Output 27

    Var 9024, 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 9025, name OutVOR1Freq, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_VOR1Freq = -999999
    }
    ELSE
    {
    IF &TestMIP = 1
    {
    &D_VOR1Freq = 88888
    }
    ELSE
    {
    &D_VOR1Freq = &VOR1Freq + 10000 // to display + fixed '1'
    }
    }
    }

    Var 9026, name OutVOR1Crs, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_VOR1Crs = -999999
    }
    ELSE
    {
    IF &TestMIP = 1
    {
    &D_VOR1Crs = 888
    }
    ELSE
    {
    &D_VOR1Crs = V0268 // to display
    }
    }
    }

    Var 9027, name D_VOR1Freq, Link IOCARD_DISPLAY, Digit 16, Numbers 5

    Var 9028, name D_VOR1Crs, Link IOCARD_DISPLAY, Digit 21, Numbers 3

    Var 9029, name O_VOR1Manual, Link IOCARD_OUT, Output 29

    Var 9030, name O_VOR1Auto, Link IOCARD_OUT, Output 30

    Var 9031, name O_VOR1FDP, Link IOCARD_OUT, Output 31

    Var 9032, name RO_VOR1CRS, Link IOCARD_ENCODER, Input 38, Aceleration 4, Type 2
    {
    L0 = &RO_VOR1CRS // * -1
    V0268 = ROTATE 0 ,359 ,L0
    }

    Var 9033, name RO_VOR1FRQL, Link IOCARD_ENCODER, Input 47, Aceleration 2, Type 2
    {
    C0 = TESTBIT V0740 ,0
    IF C0 // only active if MANUAL
    {
    L0 = &RO_VOR1FRQL * 5
    &VOR1FreqLow = ROTATE 0 ,99 ,L0
    CALL &CalcVOR1Freq
    }
    }

    Var 9034, name RO_VOR1FRQH, Link IOCARD_ENCODER, Input 45, Aceleration 1, Type 2
    {
    C0 = TESTBIT V0740 ,0
    IF C0 // only active if MANUAL
    {
    L0 = &RO_VOR1FRQH
    &VOR1FreqHigh = ROTATE 8 ,35 ,L0
    CALL &CalcVOR1Freq
    }
    }

    Var 9035, 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 9036, name OutVOR2Freq, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_VOR2Freq = -999999
    }
    ELSE
    {
    IF &TestMIP = 1
    {
    &D_VOR2Freq = 88888
    }
    ELSE
    {
    &D_VOR2Freq = &VOR2Freq + 10000 // to display + fixed '1'
    }
    }
    }

    Var 9037, name OutVOR2Crs, Link SUBRUTINE
    {
    IF &ColdAndDark = 1
    {
    &D_VOR2Crs = -999999
    }
    ELSE
    {
    IF &TestMIP = 1
    {
    &D_VOR2Crs = 888
    }
    ELSE
    {
    &D_VOR2Crs = V0272 // to display
    }
    }
    }

    Var 9038, name D_VOR2Freq, Link IOCARD_DISPLAY, Digit 24, Numbers 5

    Var 9039, name D_VOR2Crs, Link IOCARD_DISPLAY, Digit 29, Numbers 3

    Var 9040, name O_VOR2Manual, Link IOCARD_OUT, Output 28

    Var 9041, name O_VOR2Auto, Link IOCARD_OUT, Output 32

    Var 9042, name O_VOR2FDP, Link IOCARD_OUT, Output 34

    Var 9043, name RO_VOR2CRS, Link IOCARD_ENCODER, Input 43, Aceleration 2, Type 2
    {
    L0 = &RO_VOR2CRS // * -1
    V0272 = ROTATE 0 ,359 ,L0
    }

    Var 9044, name RO_VOR2FRQL, Link IOCARD_ENCODER, Input 51, 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 9045, name RO_VOR2FRQH, Link IOCARD_ENCODER, Input 49, Aceleration 1, Type 2
    {
    C0 = TESTBIT V0741 ,0
    IF C0 // only active if MANUAL
    {
    L0 = &RO_VOR2FRQH
    &VOR2FreqHigh = ROTATE 8 ,35 ,L0
    CALL &CalcVOR2Freq
    }
    }

    Var 9046, name BankAngAuto, Link IOCARD_SW, Input 30, Type p

    Var 9047, name BankAngle5, Link IOCARD_SW, Input 31, Type p

    Var 9048, name BankAng10, Link IOCARD_SW, Input 32, Type p

    Var 9049, name BankAng15, Link IOCARD_SW, Input 33, Type p

    Var 9050, name BankAng20, Link IOCARD_SW, Input 34, Type p

    Var 9051, name BankAng25, Link IOCARD_SW, Input 35, Type p


    Here is my ini file

    [SIOC]
    IOCP_port=8092
    IOCP_timeout=4000
    Minimized=no
    toggle_delay=20
    CONFIG_FILE=C:\SIOC\767.ssi
    \\CONFIG_FILE=F:\SIOC\comm\comm.ssi\\

    [IOCARDS MODULE]
    IOCard_disable=No
    IOCard_LPT=No

    [MASTERS]
    MASTER=0,4,2,25


    [FSUIPC MODULE]
    FSUipcdisable=no
    FSUipcRefresh=50

    [IOCP CLIENTS MODULES]
    IOCPini_delay=3000
    IOCPclient0_disable=Yes
    IOCPclient0_host=localhost
    IOCPclient0_port=8090
    IOCPclient1_disable=Yes
    IOCPclient1_host=localhost
    IOCPclient1_port=8099

    [SOUND MODULE]
    Sound_disable=Yes
    Volume=100


    Thanks for any help!!

  2. #2
    150+ Forum Groupie


    Perik's Avatar
    Join Date
    Aug 2007
    Location
    NORWAY
    Posts
    229
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problems with display card on the second master and sioc!!

    Hello gxsr02

    I can't seem to find any definition of the second MasterCard in your Sioc.ini file
    and you should do a verification that this second MasterCard works before adding any
    DisplayII cards just by checking some inputs / outputs.
    BTW - Do output 75-78 work?

    Take a look at this link: http://www.lekseecon.nl/howto.html#device
    Using the Device attribute may be a good thing to keep your addressing more predictable.

    Look at this document from Nico: http://www.lekseecon.nl/downloads/Numbering.pdf
    about addressing boards/ports/displays etc.
    Here is another one: http://personales.ya.com/micabina737.../displaysi.htm

    Anyway I believe Sioc.ini needs an update first....Good luck!
    Regards,
    Per-Erik
    www.hoddo.net

  3. #3
    10+ Posting Member
    Join Date
    May 2011
    Location
    Puerto Rico
    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: Problems with display card on the second master and sioc!!

    Thanks sir for your respond and help, my problem was bad wiring, now is working fine, but for some reason the first digit of the right display is 0 and no 1, for example, the freq is 122.80 and my display shows 022.80, the left display is fine. here is copy of my siocs.


    Var 778 Static name COMM1Act
    {

    L0 = &COMM1ACT - 10000
    &FO_COMM1Act = TOBCD L0
    }

    Var 9007 name FO_COMM1Act Link FSUIPC_OUT Offset $034E Length 2

    Var 852 Static
    {
    L0 = v852
    L1 = MOD L0 16
    IF L1 = 10
    {
    &D_COM1L0 = -999999 // blank
    &D_COM1L1 = -999999 // blank
    &D_COM1L2 = -999999 // blank
    &D_COM1L3 = -999999 // blank
    &D_COM1L4 = -999999 // blank
    }
    ELSE
    {
    // no need to test right most digit, is never 6
    &D_COM1L0 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1L1 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1L2 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1L3 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    // no need to test left most digit, is never 6
    &D_COM1L4 = L1
    }
    }

    Var 853 Static
    {
    L0 = v853
    L1 = MOD L0 16
    IF L1 = 10
    {
    &D_COM1R0 = -999999 // blank
    &D_COM1R1 = -999999 // blank
    &D_COM1R2 = -999999 // blank
    &D_COM1R3 = -999999 // blank
    &D_COM1R4 = -999999 // blank
    }
    ELSE
    {
    // no need to test right most digit, is never 6
    &D_COM1R0 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1R1 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1R2 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    IF L1 = 6
    {
    L1 = -999997
    }
    &D_COM1R3 = L1
    L0 = DIV L0 16
    L1 = MOD L0 16
    // no need to test left most digit, is never 6
    &D_COM1R4 = L1
    }
    }

    Var 779 Static
    {
    &O_COM1Lft = TESTBIT v779 0
    &O_COM1Rgt = TESTBIT v779 1
    &O_DPCOM1L = TESTBIT v779 2
    &O_DPCOM1R = TESTBIT v779 2
    }

    Var 510 Static Link IOCARD_SW Input 82 Type I
    Var 511 Static Link IOCARD_SW Input 81 Type I

    Var 515 Static
    Var 516 Static

    Var 9001 name RO_LCOM1H Link IOCARD_ENCODER Input 72 Aceleration 1 Type 2
    {
    L0 = &RO_LCOM1H * -1
    v515 = ROTATE 0 127 L0
    }

    Var 9002 name RO_LCOM1L Link IOCARD_ENCODER Input 74 Aceleration 1 Type 2
    {
    L0 = &RO_LCOM1L * -1
    v516 = ROTATE 0 127 L0
    }



    Var 517 Static
    Var 518 Static

    Var 9003 name RO_RCOM1H Link IOCARD_ENCODER Input 76 Aceleration 1 Type 2
    {
    L0 = &RO_RCOM1H * -1
    v517 = ROTATE 0 127 L0
    }

    Var 9004 name RO_RCOM1L Link IOCARD_ENCODER Input 78 Aceleration 1 Type 2
    {
    L0 = &RO_RCOM1L * -1
    v518 = ROTATE 0 127 L0
    }

    // END of option


    Var 8170 name D_COM1L0 Link IOCARD_DISPLAY Digit 75 Numbers 1
    Var 8171 name D_COM1L1 Link IOCARD_DISPLAY Digit 76 Numbers 1
    Var 8172 name D_COM1L2 Link IOCARD_DISPLAY Digit 77 Numbers 1
    Var 8173 name D_COM1L3 Link IOCARD_DISPLAY Digit 78 Numbers 1
    Var 8174 name D_COM1L4 Link IOCARD_DISPLAY Digit 79 Numbers 1
    Var 8175 name D_COM1R0 Link IOCARD_DISPLAY Digit 74 Numbers 1
    Var 8176 name D_COM1R1 Link IOCARD_DISPLAY Digit 73 Numbers 1
    Var 8177 name D_COM1R2 Link IOCARD_DISPLAY Digit 72 Numbers 1
    Var 8178 name D_COM1R3 Link IOCARD_DISPLAY Digit 71 Numbers 1
    Var 8179 name D_COM1R4 Link IOCARD_DISPLAY Digit 70 Numbers 1

    Var 8180 name O_COM1Lft Link IOCARD_OUT Output 75
    Var 8181 name O_COM1Rgt Link IOCARD_OUT Output 76
    Var 8182 name O_DPCOM1L Link IOCARD_OUT Output 77
    Var 8183 name O_DPCOM1R Link IOCARD_OUT Output 78


    thanks for any help!

  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: Problems with display card on the second master and sioc!!

    Hi,

    The SIOC codes for Var 852 and Var 853 are similar so that cannot be the problem.
    What happens with a lights test? Do you get 88888?

    What surprises me in your Display card wiring is that COMM1L digits are wired incrementally, while the COMMR1 digits are wired decrementally (from 74 to 70). That should not be a problem -in this SIOC script- but it's better to do it one way (incrementally). Check your digit 70.

    regards,
    Nico Kaan

  5. #5
    10+ Posting Member
    Join Date
    May 2011
    Location
    Puerto Rico
    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: Problems with display card on the second master and sioc!!

    Thanks for your respond sir!!

    I check all connections and they are fine, also i rewire the right display like you said, but it didn't work, i change the usb port position and it start to work fine. thanks for your help.