View Full Version : Triggering and Electrical Failure in FSX
Tom_G_2010
07-27-2011, 06:44 PM
If I understand the offset info I've found an electrical failure is 0B6A. However I can't seem to find anything that confirms if it's a writable variable. I have a circuit built in FS2P using an FS Out and a valve to pick up Main Bus Amperage and indicate when it exceeds x amps. I want it to trip a simulated breaker (like those from Simkits) and kill the electrical system when I exceed the specified amperage.
It was easy to setup the FS Out variable and valve to trigger when the amperage went above x. However I can't figure out how to use an FS Input to tell FSX to fail the electrical. I attempted to create my own variable using offset 0B6a. No luck... Either it's not a writable variable or I have the settings wrong.
My other thought was to program it to a keyboard key (I chose "J" for testing purposes) and try to send that value to FSX. What made me think of that was that one of the pre-defined variables that came in FS2P is called "Keysend". But I can't find any documentation on how that variable works. Can it actually send a keyboard character, like "J", to FSX???
Any ideas out there???
Tom_G_2010
08-01-2011, 01:04 PM
Bump...
Thoughts anyone?
Thanks!
Hi Tom:
Could you use the valve output to trigger a normally closed relay which would then kill your power supply to selected circuits?
You would need some kind of driver card e.g. LED-64 and maybe a latching circuit to hold te relay until "reset"
Also the valve logic can be inverted for a norm open relay.
Doing this totally with software would be best but if you cant this would be an option.
Regards Ken K
CocnutAir
08-28-2011, 01:22 AM
Offset 0B6A enables and disables electrical system on FS2004. Have not tried on FSX yet.
In any event the FSVariable should look like the following in your xml file:
-<FSVariable>
<FSID>ELECTRIC_FAIL</FSID>
<Offset>0B6A</Offset>
<Length>1</Length>
<FSType>2</FSType>
<OffValue>0</OffValue>
<OnValue>1</OnValue>
<Format>###0</Format>
<Multiplier>1</Multiplier>
<Divisor>1</Divisor>
<Integer>False</Integer>
<NormalizeAngle>False</NormalizeAngle>
<WriteOnly>False</WriteOnly>
<Bit>0</Bit>
<BitPairing>False</BitPairing>
<Partner>0</Partner>
<Toggle>False</Toggle>
<Rotation>False</Rotation>
<Wrap>True</Wrap>
<Step>1</Step>
<IRS>False</IRS>
<Internal>0</Internal>
</FSVariable>
Tom_G_2010
08-29-2011, 08:50 PM
THANKS!!!
I'll try setting that up in FSX with FS2P 5 and see how it works.
Offset 0B6A enables and disables electrical system on FS2004. Have not tried on FSX yet.
In any event the FSVariable should look like the following in your xml file:
-<FSVariable>
<FSID>ELECTRIC_FAIL</FSID>
<Offset>0B6A</Offset>
<Length>1</Length>
<FSType>2</FSType>
<OffValue>0</OffValue>
<OnValue>1</OnValue>
<Format>###0</Format>
<Multiplier>1</Multiplier>
<Divisor>1</Divisor>
<Integer>False</Integer>
<NormalizeAngle>False</NormalizeAngle>
<WriteOnly>False</WriteOnly>
<Bit>0</Bit>
<BitPairing>False</BitPairing>
<Partner>0</Partner>
<Toggle>False</Toggle>
<Rotation>False</Rotation>
<Wrap>True</Wrap>
<Step>1</Step>
<IRS>False</IRS>
<Internal>0</Internal>
</FSVariable>
CocnutAir
08-29-2011, 11:43 PM
To test I used circuit with only two components. A digital input and and an FS Input.
Tom_G_2010
08-30-2011, 04:42 PM
Hi Tom:
Could you use the valve output to trigger a normally closed relay which would then kill your power supply to selected circuits?
You would need some kind of driver card e.g. LED-64 and maybe a latching circuit to hold te relay until "reset"
Also the valve logic can be inverted for a norm open relay.
Doing this totally with software would be best but if you cant this would be an option.
Regards Ken K
Shooting for the software solution first. If all else fails I may go the hardware route, buut I really want the Sim to recognize the failure so other corresponding system impacts can be accounted for.