AndyCYXU
01-07-2013, 03:29 PM
ok, so if someone can help me i came up with something like that and... it does NOTHING ! :(
Var 0001 Link IOCARD_SW DEVICE 4 Input 1 Type I
{
v0007 = CHANGEBIT 0 v0001
}
Var 0002 Link IOCARD_SW DEVICE 4 Input 2 Type I
{
v0007 = CHANGEBIT 1 v0002
}
Var 0003 Link IOCARD_SW DEVICE 4 Input 3 Type I
{
v0007 = CHANGEBIT 2 v0003
}
Var 0004 Link IOCARD_SW DEVICE 4 Input 7 Type I
{
v0007 = CHANGEBIT 3 v0004
}
Var 0005 Link IOCARD_SW DEVICE 4 Input 4 Type I
{
v0007 = CHANGEBIT 4 v0005
}
Var 0007, Link FSUIPC_OUT, Offset $654C, Length 2 // $654C - MainPanelDUSel
The switch appears to be connected correctly all works in basic switch/card testing but nothing changes when in FSX
This script is meant to change MainPanelDu on PMDG737NGX in FSX
I kinda based it on EFIS script that I have similar things are written for APP/VOR/MAP/PLN selector and it does work
Offset taken from offset document in FSUIPC documents for PMDG737NGX
then I changed the code somewhat after reading NICO KAAN website and based the script no landing light switch... still nothing.
FROM EFIS SCRIPT
Var 0119, name APP_E, Link IOCARD_SW, Device 1, Input 9, Type I
{
V0094 = CHANGEBIT 0 ,&APP_E // toggle APP
}
Var 0120, name VOR_E, Link IOCARD_SW, Device 1, Input 10, Type I
{
V0094 = CHANGEBIT 1 ,&VOR_E // toggle VOR
}
FROM NICO KAAN for landing light switch kinda the same i guess 8 pos rotary switch is like 8 on/off switches just ALWAYS only ONE is ON
Var 1 Link IOCARD_SW Input 50 Type I
{
v2 = CHANGEBIT 2 v1
}
Var 2 Link FSUIPC_OUT Offset $0D0C Length 2
IDK any help is appreciated.
Andy
Var 0001 Link IOCARD_SW DEVICE 4 Input 1 Type I
{
v0007 = CHANGEBIT 0 v0001
}
Var 0002 Link IOCARD_SW DEVICE 4 Input 2 Type I
{
v0007 = CHANGEBIT 1 v0002
}
Var 0003 Link IOCARD_SW DEVICE 4 Input 3 Type I
{
v0007 = CHANGEBIT 2 v0003
}
Var 0004 Link IOCARD_SW DEVICE 4 Input 7 Type I
{
v0007 = CHANGEBIT 3 v0004
}
Var 0005 Link IOCARD_SW DEVICE 4 Input 4 Type I
{
v0007 = CHANGEBIT 4 v0005
}
Var 0007, Link FSUIPC_OUT, Offset $654C, Length 2 // $654C - MainPanelDUSel
The switch appears to be connected correctly all works in basic switch/card testing but nothing changes when in FSX
This script is meant to change MainPanelDu on PMDG737NGX in FSX
I kinda based it on EFIS script that I have similar things are written for APP/VOR/MAP/PLN selector and it does work
Offset taken from offset document in FSUIPC documents for PMDG737NGX
then I changed the code somewhat after reading NICO KAAN website and based the script no landing light switch... still nothing.
FROM EFIS SCRIPT
Var 0119, name APP_E, Link IOCARD_SW, Device 1, Input 9, Type I
{
V0094 = CHANGEBIT 0 ,&APP_E // toggle APP
}
Var 0120, name VOR_E, Link IOCARD_SW, Device 1, Input 10, Type I
{
V0094 = CHANGEBIT 1 ,&VOR_E // toggle VOR
}
FROM NICO KAAN for landing light switch kinda the same i guess 8 pos rotary switch is like 8 on/off switches just ALWAYS only ONE is ON
Var 1 Link IOCARD_SW Input 50 Type I
{
v2 = CHANGEBIT 2 v1
}
Var 2 Link FSUIPC_OUT Offset $0D0C Length 2
IDK any help is appreciated.
Andy