One_shot
10-19-2015, 07:22 AM
Hey all,
I'm working on the coding for my APU panel which has 5 Korry switches. In SIOC, each LED/Switch works separate. I'm having a problem thinking up how to code it though. Can anyone help? I'm trying, as a test, to set it up so that when button 4 is pressed, no LED will turn on unless Button 3 is pressed, which also will not have an LED light up unless Button 1 is pressed. Button 1's LED will only stay on after Button 2 is pressed after Button 1, and Button 2's LED will only turn on if Button 1 is pressed, and only for 10 seconds.
Does that make any sense?
Here's a picture of the panel I'm working with, to hopefully understand why there's a flow to the LEDs depending on each switch state (on or off, or pressed).
Button 1 - Power
Button 2 - Start
Button 3 - Generator
Button 4 - Bleed Air
The APU start procedure actually goes like this:
POWER button is turned on. The LEDs in all 5 will blink in sequence to run a test. (I'm still trying to figure that out too) After the LED test, no lights will turn on. Pressing START will activate the STARTER LED in the start button for 10 seconds, at which time the LED will go out, the RUN LED in the POWER button and WARN LED in the GEN button will light up. Pressing the GEN button will change from WARN to RUN. Now the BL AIR button will light up when pressed.
I would be happy if someone could help me write this code... at least the beginning part after the LED test. My problem is having 1 LED light up only when 2 buttons are pressed like in the case of the START led after the POWER is turned on...
Regards,
Jack
I'm working on the coding for my APU panel which has 5 Korry switches. In SIOC, each LED/Switch works separate. I'm having a problem thinking up how to code it though. Can anyone help? I'm trying, as a test, to set it up so that when button 4 is pressed, no LED will turn on unless Button 3 is pressed, which also will not have an LED light up unless Button 1 is pressed. Button 1's LED will only stay on after Button 2 is pressed after Button 1, and Button 2's LED will only turn on if Button 1 is pressed, and only for 10 seconds.
Does that make any sense?
Here's a picture of the panel I'm working with, to hopefully understand why there's a flow to the LEDs depending on each switch state (on or off, or pressed).
Button 1 - Power
Button 2 - Start
Button 3 - Generator
Button 4 - Bleed Air
The APU start procedure actually goes like this:
POWER button is turned on. The LEDs in all 5 will blink in sequence to run a test. (I'm still trying to figure that out too) After the LED test, no lights will turn on. Pressing START will activate the STARTER LED in the start button for 10 seconds, at which time the LED will go out, the RUN LED in the POWER button and WARN LED in the GEN button will light up. Pressing the GEN button will change from WARN to RUN. Now the BL AIR button will light up when pressed.
I would be happy if someone could help me write this code... at least the beginning part after the LED test. My problem is having 1 LED light up only when 2 buttons are pressed like in the case of the START led after the POWER is turned on...
Regards,
Jack