Vref knob

This is the forum for all your MSFS 2020 - PMDG 737 driver questions and issues
Post Reply
Blinn
Posts: 17
Joined: Sun Feb 19, 2023 6:33 pm

Vref knob

Post by Blinn »

Hello

I notice that the little knob on SPD REF doenst work.
Its recognized by sioc (input 52 53) but the input doesnt make any change on data on pfd.

Any idea?
mvr1918
Site Admin
Posts: 1628
Joined: Thu Aug 30, 2012 3:35 pm

Re: Vref knob

Post by mvr1918 »

I belive that neither the SPD REF rotary or N1 SET rotary are implemented in the script. I do not remember if they were implemented in the PMDG 737 NGXu and that is the reason they have been left out.

Here are the EVENT numbers to use

Var 2562, name N1SETENC_I
Var 2564, name SPD_ENC_I

turning right should be sending 16384 followed with 2000
turning left should be sending 8192 followed with 2000




The script code can be written more or less in the same way as any of the other Rotary script lines


I do not have time to make this at the moment.

If you implement this is the script code, it would be nice if you share your code here
mvr1918
Site Admin
Posts: 1628
Joined: Thu Aug 30, 2012 3:35 pm

Re: Vref knob

Post by mvr1918 »

Try this script code for the SPEED_REF. Can also be use for the N1SEL knob, with minor changes to names and Var numbers

Var 2564, name SPEED_REF, static

Var 6104, name rSPEED Link IOCARD_ENCODER, Device 31, Input 52 Aceleration 3, Type 2
{
&SPEED_REF= 0
IF &rSPEED< 0
{
&SPEED_REF = 16384
}
ELSE
{
&SPEED_REF = 8192
}
}
Blinn
Posts: 17
Joined: Sun Feb 19, 2023 6:33 pm

Re: Vref knob

Post by Blinn »

Thank you Roar

i'll test asap!
Probably also for N1 Set miss the same setting

Ciao!
Blinn
Posts: 17
Joined: Sun Feb 19, 2023 6:33 pm

Re: Vref knob

Post by Blinn »

Not sure that works
i'm sorry but i'm noobie on sioc and code :roll:
Attachments
Clipboard01.png
Clipboard01.png (101.15 KiB) Viewed 1506 times
mvr1918
Site Admin
Posts: 1628
Joined: Thu Aug 30, 2012 3:35 pm

Re: Vref knob

Post by mvr1918 »

I see a space before the SPEED_REF var name. delete space in all lines.
Blinn
Posts: 17
Joined: Sun Feb 19, 2023 6:33 pm

Re: Vref knob

Post by Blinn »

okkkk

i think that i have solve! :D
i'm learning :idea:

thanks for help!


Var 2564, name SPEED_REF, static

Var 6104, name rSPEED Link IOCARD_ENCODER, Device 31, Input 52 Aceleration 3, Type 2
{
&SPEED_REF = 0
IF &rSPEED < 0
{
&SPEED_REF = 16384
}
ELSE
{
&SPEED_REF = 8192
}
}

Var 2562 name N1SET_REF, static

Var 6105, name rN1SET Link IOCARD_ENCODER, Device 31, Input 40 Aceleration 3, Type 2
{
&N1SET_REF = 0
IF &rN1SET < 0
{
&N1SET_REF = 16384
}
ELSE
{
&N1SET_REF = 8192
}
}
mvr1918
Site Admin
Posts: 1628
Joined: Thu Aug 30, 2012 3:35 pm

Re: Vref knob

Post by mvr1918 »

Thanks for reporting and help me fix this.
I will add these script lines to an updated PMDG B737 v6.5.ssi and PMDG B737 v6.5P.ssi
James Curry
Posts: 52
Joined: Tue Jun 30, 2020 4:26 pm
Location: Guildford

Re: Vref knob

Post by James Curry »

Thanks for finally sorting this out. Its one part of SIOC that had baffled and defeated me for a while. I'd been using the input via mobiflight for these two functions but will now ditch that since its been coded.

Well done!
James Curry
Loadmaster
Post Reply