Results 1 to 4 of 4
  1. #1
    25+ Posting Member


    wody's Avatar
    Join Date
    Oct 2008
    Location
    near MUNICH
    Posts
    51
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Cargo fire Arm does not light

    Hello Nico,

    I have implemented all fire panels in my cockpit. All is working ok, except the ARM lights for Forward and Aft Cargo fire. In controlador the switches and LEDs are working. I also can see the ARM lights in the pedestal window when pressing the button. So my FSUIPC macro is working.

    I have SIOC4 installed (no problem at all after the SIOC upgrade), OS is WIN7 64bit, Lekseecon 8.1, FS9.1

    Here is my code:

    Code:
    // Fire (Engine, APU, Cargo, Wheel Well)  5.11
    //
    // mit meinen IN/OUT Nummern.      P. Woderschek   8.12.2010
    // mit MouseMacro über Virtual Joystick 
    //
    ////////////////////////////////////////////////
    
     
    //=============   Variables for detection    =====================
    
    Var 781 Static   
    {
      &O_LENGFire = TESTBIT v781 0	     // L Eng Fire detected
      &O_RENGFire = TESTBIT v781 1       // R Eng Fire detected
      &O_APUFire = TESTBIT v781 2        // APU Fire detected
      &O_WheelWellFir = TESTBIT v781 3   // WheelWell Fire detected
      &O_FWDcargoFire = TESTBIT v781 4   // FWD Cargo Fire detected
      &O_AFTcargoFire = TESTBIT v781 5   // AFT Cargo Fire detected
    }
    
    //=============   Arm and Discharge Annunciators   ================
    
    Var 849 Static
    {
      &O_Bottle1Disc = TESTBIT v849 0       // Eng Bottle 1 Discharge Light
      &O_Bottle2Disc = TESTBIT v849 1       // Eng Bottle 2 Discharge Light
      &O_APUDisc = TESTBIT v849 2        // APU Bottle Discharge Light  
      &O_CargoDisc = TESTBIT v849 3      // Cargo Bottle Discharge Light 
      &O_FWDcargoArm = TESTBIT v849 4    // Fwd Cargo Bottle Armed  
      &O_AFTcargoArm = TESTBIT v849 5    // Aft Cargo Bottle Armed 
      &O_LENGOVHT = TESTBIT v849 6       // L Eng Overheat
      &O_RENGOVHT = TESTBIT v849 7       // R Eng Overheat
    }
    
    //==================    Output Engine part    =======================
    Var 9001 name O_LENGFire Link IOCARD_OUT Device 0 Output 82      // L Eng Fire detected
    Var 9002 name O_RENGfire Link IOCARD_OUT Device 0 Output 84      // R Eng Fire detected
    Var 9003 name O_Bottle1Disc Link IOCARD_OUT Device 0 Output 86   // Bottle 1 discharged
    Var 9004 name O_Bottle2Disc Link IOCARD_OUT Device 0 Output 87   // Bottle 2 discharged
    Var 9005 name O_LENGOVHT Link IOCARD_OUT Device 0 Output 83      // L Eng Ovht
    Var 9006 name O_RENGOVHT Link IOCARD_OUT Device 0 Output 85      // R Eng Ovht
    
    //==================    Output APU, Cargo WW Part    ====================
    Var 9007 name O_APUFire Link IOCARD_OUT Device 0 Output 88       // APU Fire detected
    Var 9008 name O_APUdisc Link IOCARD_OUT Device 0 Output 89       // APU Bottle discharged
    Var 9009 name O_FWDcargofire Link IOCARD_OUT Device 0 Output 90  // Fwd Cargo Fire det.
    Var 9010 name O_AFTcargofire Link IOCARD_OUT Device 0 Output 92  // Aft Cargo fire det.
    Var 9011 name O_FWDcargoArm Link IOCARD_OUT Device 0 Output 91  // Fwd Cargo armed
    Var 9012 name O_AFTcargoArm Link IOCARD_OUT Device 0 Output 93  // Aft Cargo armed
    Var 9013 name O_CargoDisc Link IOCARD_OUT Device 0 Output 94     // Cargo Bottle discharged
    
    Var 9014 name O_WheelWellFir Link IOCARD_OUT Device 0 Output 100 // Wheel Well Fire det.     
    
    //================    Left Engine Fire lever    ====================
    Var 543 Static Link IOCARD_SW Device 0 Input 72 Type I      // 1=pulled    
    Var 544 Static Link IOCARD_SW Device 0 Input 73 Type I      // 1=turnedPos1  
    Var 545 Static Link IOCARD_SW Device 0 Input 74 Type I      // 1=turnedPos2
    
    //================    Right Engine Fire lever    =======================
    Var 546 Static Link IOCARD_SW Device 0 Input 75 Type I       // 1=pulled     
    Var 547 Static Link IOCARD_SW Device 0 Input 76 Type I       // 1=turnedPos1    
    Var 548 Static Link IOCARD_SW Device 0 Input 77 Type I       // 1=turnedPos2
    
    //================    APU Fire lever    ======================
    Var 549 Static Link IOCARD_SW Device 0 Input 78 Type I       // 1=pulled   
    Var 550 Static Link IOCARD_SW Device 0 Input 79 Type I       // 1=turned Pos1
    Var 551 Static Link IOCARD_SW Device 0 Input 80 Type I       // 1=turned Pos2
    
    // ======  Mouse Macros for Firepanels see separate file MyMouseMacros.txt ===
    // used for Fire:
    //     name FwdCargoArmed Link IOCARD_SW Input 81 Type P
    //     name AftCargoArmed Link IOCARD_SW Input 82 Type P
    //     name CargoBottleDisc Link IOCARD_SW Input 83 Type P
    // others coming .....  
    
    
    //================    FireTest   ==============================
    Var 559 Static Link IOCARD_SW Device 0 Input 84 Type I       // Engine Fire Test
    Var 560 Static Link IOCARD_SW Device 0 Input 85 Type I       // Wheel Well Fire Test
    MouseMacro code:

    Code:
    // My Mouse Macros for 767
    // 24.12.2010
    
    
    // ======================================================// Var 1000 name FO_JoyStick64 Link FSUIPC_OUT Offset $3340 Length 4 
    // >>>>>   Ist schon im TQ.txt definiert              <<<<<<<<<<
    // >>>>>   bit 0 bis bit 3 sind schon verwendet       <<<<<<<<<< 
    // >>>>>   Im FSUIPC dann das MouseMacro aktivieren   <<<<<<<<<<
    // ======================================================
    
    Var 5000 name FwdCargoArmed Link IOCARD_SW Input 81 Type I
     {
       &FO_JoyStick64 = CHANGEBIT 4 v5000 // toggle bit 4 of joystick 64
     }
    
    Var 5010 name AftCargoArmed Link IOCARD_SW Input 82 Type I
     {
       &FO_JoyStick64 = CHANGEBIT 5 v5010 // toggle bit 5 of joystick 64
     }
    
    Var 5020 name CargoBtlDisc Link IOCARD_SW Input 83 Type I
     {
       &FO_JoyStick64 = CHANGEBIT 6 v5020 // toggle bit 6 of joystick 64
     }
    and the lekseecon Log when I tested:

    Code:
    lekseecon version 8.1
    
    C:\Program Files (x86)\IOCards\SIOC\sioc.ini found.
    PORT=8092
    CONFIG_FILE=C:\Program Files (x86)\IOCards\SIOC\My767.ssi
    
    Number of lekseecon variable(-s) detected: 211
     266 267 268 270 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290
     291 292 293 294 295 296 297 298 299 327 330 331 334 335 336 337 344 345 346 347
     348 360 361 362 363 364 365 366 367 386 387 388 389 390 391 392 393 394 395 396
     397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
     417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436
     437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456
     457 458 459 460 461 462 464 465 466 467 468 469 470 476 477 478 479 503 504 505
     506 507 508 509 510 511 515 516 517 518 527 528 529 530 531 532 533 534 535 536
     537 538 540 541 542 543 544 545 546 547 548 549 550 551 559 560 562 564 565 569
     570 571 572 579 580 581 739 740 742 771 772 778 779 781 782 821 822 845 849 852
     853 854 855 990 991 993 994 996 997 998 999
    SDK connected.
    
    186 variables registered at SIOC server (inicio).
    17 initial values received from SIOC server(fast)
    SIOC connected.
    
    No info about Rotary Switch 335 : 337 (Cap elapsed Timer OFF : Cap elapsed Timer RESET)
        forced to: Cap elapsed Timer OFF (most likely?)
    
    Running...
    Elapsed time (hh:mm)  00:00
    Elapsed time (hh:mm)  00:01
    Elapsed time (hh:mm)  00:02
    Elapsed time (hh:mm)  00:03
    Elapsed time (hh:mm)  00:04
    Statistics:
    C->   Commands: 32 (0%)
     ->C  Commands: 65 (20%)
     ->L  Commands: 39 (7%)
    
    lekseecon stopped.
    Elapsed time (hh:mm)  00:04

    Thanks for any help.
    Peter

  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: Cargo fire Arm does not light

    Hallo Peter,

    It looks like there is nothing wrong with your code. While I have not implemented these ARM lights in my sim, I have run a small test program and I also cannot get a light out of the SDK...

    My lekseecon program just copies an integer fron the SDK to the SIOC variable. Two of these bits should reflect the ARM lights...

    Looks like a bug in the SDK. Not much I can do about I'm afraid.

    Most probably they will be lit in a Pedestal lights test, if so, it is definetely an SDK bug.

    regards,

    Nico
    Last edited by kiek; 10-28-2011 at 02:49 PM.

  3. #3
    25+ Posting Member


    wody's Avatar
    Join Date
    Oct 2008
    Location
    near MUNICH
    Posts
    51
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Cargo fire Arm does not light

    Hello Nico,

    thanks for your reply. Yes, lights test lights it up. So it's the SDK. I will change the code to light it up, when pressed. The ARM will be lit anyhow only when pressed and is blank when not pressed.

    Thanks anyway for looking over the code - its always better when the master checks

    Peter

  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: Cargo fire Arm does not light

    Quote Originally Posted by wody View Post
    Thanks anyway for looking over the code - its always better when the master checks
    LOL, Vielen Dank!
    Nico