Results 11 to 15 of 15
Thread: Why Do I need I/O Cards?
-
02-19-2010, 05:17 PM #11
- Join Date
- Dec 2008
- Location
- uk
- Posts
- 46
Re: Why Do I need I/O Cards?
Pieter thanks for your help with your attached script,I've saved it just in case in the very distant future it might make sense to me (you never know...) but if you're ever in Lincolnshire UK please bring it with you and I'll buy the beers !!.Seriously, thank you for your help it is much appreciated and I will try... to understand it .
regards Jim
-
02-21-2010, 07:10 AM #12
- Join Date
- Mar 2009
- Location
- Belgium
- Posts
- 6
Re: Why Do I need I/O Cards?
Here is another script for the default aircraft using SIOC SOFTWARE from www.opencockpits.com. One needs a mastercard to connect the 2 switches and 6 leds if you want them to follow the gear extention and rectraction.
//Gear switches en leds ------------------------------------------------------------------------------------------
Var 9009, Link IOCARD_SW, Device 2, Input 003 // Gear Up SW
{
IF V9009 = 1
{
V9011 = 0
}
}
Var 9010, Link IOCARD_SW, Device 2, Input 001 // Gear Down Sw
{
IF V9010 = 1
{
V9011 = 16383
}
}
Var 9011, Link FSUIPC_OUT, Offset $0BE8, Length 4 // Gear Up/Down
Var 4001, Link FSUIPC_OUT, Offset $0BE8, Length 4 // Gear Offset, 0=up, 16383=dwn
// Var 4002, Link IOCARD_SW, Device 2, Input 1 // GEAR_SW, off=0=up, on=1=dwn
// {
// V4001 = V4002 * 16383
// }
Var 4003, Link FSUIPC_IN, Offset $0BEC, Length 4 // Nose Gear Green Offset, 0=up, 16383=dwn
{
IF V4003 = 16383
{
V4004 = 1
V4005 = 0
}
IF V4003 < 16383
{
V4004 = 0
V4005 = 1
}
IF V4003 = 0
{
V4004 = 0
V4005 = 0
}
}
Var 4004, Link IOCARD_OUT, Device 2, Output 19 // Nose Gear Green Led, 0=off, 1=on
Var 4005, Link IOCARD_OUT, Device 2, Output 27 // Nose Gear Red Led, 0=off, 1=on
Var 4006, Link FSUIPC_IN, Offset $0BF4, Length 4 // Left Gear Position Offset, 0=up, 16383=d
{
IF V4006 = 16383
{
V4007 = 1
V4008 = 0
}
IF V4006 < 16383
{
V4007 = 0
V4008 = 1
}
IF V4006 = 0
{
V4007 = 0
V4008 = 0
}
}
Var 4007, Link IOCARD_OUT, Device 2, Output 21 // Left Gear Green Led, 0=off, 1=on
Var 4008, Link IOCARD_OUT, Device 2, Output 25 // Left Gear Red Led, 0=off, 1=on
Var 4009, Link FSUIPC_IN, Offset $0BF0, Length 4 // Right Gear Position Offset, 0=up, 16383=
{
IF V4009 = 16383
{
V4010 = 1
V4011 = 0
}
IF V4009 < 16383
{
V4010 = 0
V4011 = 1
}
IF V4009 = 0
{
V4010 = 0
V4011 = 0
}
}
Var 4010, Link IOCARD_OUT, Device 2, Output 20 // Right Gear Green Led, 0=off, 1=on
Var 4011, Link IOCARD_OUT, Device 2, Output 26 // Right Gear Red Led, 0=off, 1=on
Regards Pieter
PS output numbers depend on the actual connection to the print.
-
02-21-2010, 08:25 AM #13
- Join Date
- Dec 2008
- Location
- uk
- Posts
- 46
Re: Why Do I need I/O Cards?
Thanks Pieter for your continued help,I will be honest with you though it is mostly going completely over my head
.I will though persevere as I will not give up and your scripts will eventually
make sense hopefully......so thanks again for trying.
regards Jim
-
02-23-2010, 04:34 PM #14
- Join Date
- Mar 2009
- Location
- Belgium
- Posts
- 6
Re: Why Do I need I/O Cards?
If you need any tutorial on sioc programming here is a wabsite http://www.lekseecon.nl/howto.html
Hope you work things out.
Pieter
-
02-24-2010, 05:57 AM #15
- Join Date
- Dec 2008
- Location
- uk
- Posts
- 46
Re: Why Do I need I/O Cards?
Thanks Pieter now that is very useful indeed ,it's all about knowing where to look,I've ordered some bits inc BU0836x to start with and that guide will have some relevance as I will hopefully if all goes well....be using some of their cards later.
regards jim
Similar Threads
-
I/O Cards help?
By brian95 in forum I/O Interfacing and HardwareReplies: 3Last Post: 09-22-2010, 08:08 AM -
Inputs/output cards on master cards question
By stabell in forum OpenCockpits General DiscussionReplies: 2Last Post: 11-25-2008, 06:25 AM -
New to IO cards etc
By Drewsta in forum I/O Interfacing Hardware and SoftwareReplies: 23Last Post: 07-18-2008, 01:58 PM -
Opencockpits IO cards
By Paul G in forum I/O Interfacing Hardware and SoftwareReplies: 19Last Post: 07-02-2008, 12:54 PM -
Display II cards
By heclak in forum I/O Interfacing Hardware and SoftwareReplies: 0Last Post: 11-15-2005, 09:41 AM
Hi...realize this has been a long time, but I'm heading down the path of building my own 777...
B777 Overhead Panel Design