Page 6 of 9 FirstFirst ... 23456789 LastLast
Results 51 to 60 of 90
  1. #51
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    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 "IF" Question

    Code:
     {
      IF v9888 >= 3
      { 
    &REF = 0
       &BlinkLed = 500000 // Begin value of timer
       &BlinkLed = TIMER 0 -1 40
      }
     }
    
    
        {
       L0 = MOD &BlinkLed 2
       IF L0 = 0
         {
         &REF = 0
         }
       ELSE
          {
         &REF = 1
          }

  2. #52
    75+ Posting Member
    Join Date
    Apr 2009
    Location
    Toronto
    Posts
    125
    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 "IF" Question

    __________________________________

  3. #53
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    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 "IF" Question

    Code:
    Var 222
     {
      IF v9888 >= 3
      { 
    &REF = 0
       &BlinkLed = 500000 // Begin value of timer
       &BlinkLed = TIMER 0 -1 40
      }
     }
    
    Var 333 name BlinkLed
    
    //
    
    Var 222
     {
      IF v9888 <= 3
      { 
    &REF = 1
       {
       &BlinkLed = 1 // equal to end value of timer (0) + 1
       }
      }
     }
    
    //
    
    Var 222
     {
      IF v9888 = 0
      { 
    &REF = 0
       }
     }

  4. #54
    75+ Posting Member
    Join Date
    Apr 2009
    Location
    Toronto
    Posts
    125
    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 "IF" Question

    _______________________________

  5. #55
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    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 "IF" Question

    Code:
     {
      IF v9888 >= 3
      { 
    &REF = 0
       &BlinkLed = 500000 // Begin value of timer
       &BlinkLed = TIMER 0 -1 40
      }
     }
    
    //
     {
      IF v9888 <= 3
      { 
    &REF = 1
       {
       &BlinkLed = 1 // equal to end value of timer (0) + 1
       }
      }
     }
    
    //
    
     {
      IF v9888 = 0
      { 
    &REF = 0
       }
     }

  6. #56
    75+ Posting Member
    Join Date
    Apr 2009
    Location
    Toronto
    Posts
    125
    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 "IF" Question

    ____________________________________

  7. #57
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    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 "IF" Question

    Code:
      IF v9888 >= 3
      { 
       &REF = 0
       &BlinkLed = 500000 // Begin value of timer
       &BlinkLed = TIMER 0 -1 40
      }
    
      IF v9888 < 3
      { 
       &REF = 1
          &BlinkLed = 1 
      }
    
      IF v9888 = 0
      { 
         &REF = 0
       }
    Is this what you wanted Jim?

  8. #58
    75+ Posting Member
    Join Date
    Apr 2009
    Location
    Toronto
    Posts
    125
    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 "IF" Question

    _________________________________

  9. #59
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    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 "IF" Question

    Hi Jim,

    I *think* that meets my requirements. Could you just confirm?

    Everything looks okay from here, timer starts if it's more than 3, stops if less than 3 & lights, off if 0. Looks good.

  10. #60
    75+ Posting Member
    Join Date
    Apr 2009
    Location
    Toronto
    Posts
    125
    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 "IF" Question

    _____________________________

Page 6 of 9 FirstFirst ... 23456789 LastLast

Similar Threads

  1. "Inner Circle" HSI - SIOC DC Motors Card Script
    By Boeing 747 Flyer in forum OpenCockpits General Discussion
    Replies: 64
    Last Post: 04-21-2011, 10:59 AM
  2. Replies: 17
    Last Post: 03-05-2008, 12:39 PM
  3. A question for "Bus Drivers"
    By mpl330 in forum General Builder Questions All Aircraft Types
    Replies: 2
    Last Post: 01-31-2008, 06:56 PM
  4. PM updates and a question for "proof of concept"
    By pap in forum PM General Q & A
    Replies: 4
    Last Post: 01-27-2008, 06:22 AM