Roarkr
11-10-2011, 08:56 AM
Hi,
I need some help to solve a SIOC issue.
In my SIOC script I send the 69990 control to FSUIPC with 2 consequtive values in order to switch the VOR1/ADF1 in PMDG NGX EFIS panel. In order to cahnge the PMDG switch I need to send 2 consequtive values not only 1.
The SIOC code is:
Var 0074, Link IOCARD_SW, Input 65, Type I
{
IF V0074 = 1
{
&FS_PAR = -2147483648
&FS_CONTROL = 69990
&FS_CONTROL = DELAY 0 ,15
&FS_PAR = 524288
&FS_CONTROL = 69990
&FS_CONTROL = DELAY 0 ,15
}
ELSE
{
&FS_PAR = 536870912
&FS_CONTROL = 69990
&FS_CONTROL = DELAY 0 ,15
&FS_PAR = 131072
&FS_CONTROL = 69990
&FS_CONTROL = DELAY 0 ,15
}
}
This doesn't work as the second sending of the 69990 control under both the IF and ELSE statement is the only thing that is executed. I can see that both in FSUIPC and IOCP Console.
My question is way doesn't SIOC send the first 69990 control with the para -2147483648 and 536870912.
I have tried everything , but can't get it work. I probably do a silly fault, but can't see it myself.
Anyone see what is wrong here or a suggestion on how to do this in another way.
rgs
Roar K
I need some help to solve a SIOC issue.
In my SIOC script I send the 69990 control to FSUIPC with 2 consequtive values in order to switch the VOR1/ADF1 in PMDG NGX EFIS panel. In order to cahnge the PMDG switch I need to send 2 consequtive values not only 1.
The SIOC code is:
Var 0074, Link IOCARD_SW, Input 65, Type I
{
IF V0074 = 1
{
&FS_PAR = -2147483648
&FS_CONTROL = 69990
&FS_CONTROL = DELAY 0 ,15
&FS_PAR = 524288
&FS_CONTROL = 69990
&FS_CONTROL = DELAY 0 ,15
}
ELSE
{
&FS_PAR = 536870912
&FS_CONTROL = 69990
&FS_CONTROL = DELAY 0 ,15
&FS_PAR = 131072
&FS_CONTROL = 69990
&FS_CONTROL = DELAY 0 ,15
}
}
This doesn't work as the second sending of the 69990 control under both the IF and ELSE statement is the only thing that is executed. I can see that both in FSUIPC and IOCP Console.
My question is way doesn't SIOC send the first 69990 control with the para -2147483648 and 536870912.
I have tried everything , but can't get it work. I probably do a silly fault, but can't see it myself.
Anyone see what is wrong here or a suggestion on how to do this in another way.
rgs
Roar K