Results 1 to 3 of 3

Thread: GA Switch logic

  1. #1
    25+ Posting Member
    Join Date
    Mar 2006
    Location
    Italy
    Posts
    38
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    GA Switch logic

    Hi to all,
    I've just a simple question about GA switch that is implemented in lekseecon by VAR 507 but as I've real thottle and the switch is normally closed so I would like get a script to revert the logic of switch from normally closed at normally open..is possible to make?
    kind regards,
    valerio

    Var 507 static name GA_Switch link IOCARD_SW Input 52 Type P
    Happy landing!!

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

    Re: GA Switch logic

    Hi Valerio,

    That is easy to accomplish in SIOC, no need to add functionality to lekseecon.
    Try this (i have not, but I think it will work)

    Code:
    Var 9000 name Valerio_GA link IOCARD_SW Input 52 Type I
    {
      IF &Valerio_GA = 0
      {
        &Nico_GA = CHANGEBITN 0 &NicoGA
      }
    }
    
    
    Var 507 static name Nico_GA
    kind regards,
    Nico

  3. #3
    25+ Posting Member
    Join Date
    Mar 2006
    Location
    Italy
    Posts
    38
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: GA Switch logic

    Thaaanks!!!

    I'm trying this but will use your...

    Code:
    Var 507 static name GA
    Var 9001, name GA_Switch, link IOCARD_SW Input 52 Type P
    {
      CALL &GA_LOGIC
    }
    Var 9002, name GA_LOGIC, link SUBRUTINE
    {
      C0 = &GA_Switch = 0
      IF C0
      {
        &GA = 1
      }
      ELSE
      {
        &GA = 0
      }
    }
    Cheers
    Valerio
    Last edited by kiek; 07-20-2013 at 05:52 PM.
    Happy landing!!