Welcome to Cockpitbuilders.com. Please login or sign up.

October 16, 2025, 10:50:46 AM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
404 Guests, 0 Users
Members
Stats
  • Total Posts: 59,757
  • Total Topics: 7,887
  • Online today: 702
  • Online ever: 1,343
  • (October 08, 2025, 07:40:38 AM)
Users Online
Users: 0
Guests: 404
Total: 404

COUNTDOWN TO WF2024


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

Help with sioc programig ADF module - boeing 737 NG

Started by vuelosat, March 25, 2012, 11:22:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vuelosat

Hi all,
Does anyone know how to encode the SIOC for the ADF pannel, for the boeing 737 please ? The code you'll find below works, but I can't find the offset of the ADF standby when using Peter Dowson's list and the FS Interrogate program.
The only offsets I can find are the ADF frequency and the ADF extended one. The pannel I am currently using has two slots that show the digits of the Active ADF and the Standby ADF.
I really hope one of you can help me in modifying the code so I can display the Standby ADF (now that I can't display the Standby ADF, the encoder directly modifies the Active ADF).
I don't know if it helps, but for additionnal information, I am using Prosim 737.


//*********************************************
//*****                ADF                  ***
//*********************************************




Var 0500, Value 34 // ENTEROS 1 ADF1 VALOR INICIAL 3
{
CALL V0507
}

Var 0501, Value 30 // DECIMAL ADF1 VALOR INICIAL 0
{
CALL V0507
}

Var 0502, Link IOCARD_ENCODER, device 1,  Input 209, Aceleration 2, Type 2 // ENTEROS 1 ADF1
{
V0500 = ROTATE 10 ,179 ,V0502
}

Var 0503, Link IOCARD_ENCODER, device 1, Input 207, Aceleration 2, Type 2 // DECIMALES ADF1
{
L0 = V0503 * 1
V0501 = V0501 - L0
IF V0501 > 95
{
V0501 = 0
}
IF V0501 < 0
{
V0501 = 95
}
}

Var 0504, Link IOCARD_DISPLAY, device 1, Digit 181, Numbers 5 // SALIDA A LOS DISPLAYS ADF1

Var 0505, Link FSUIPC_OUT, Offset $034C, Length 2

Var 0506, Link FSUIPC_OUT, Offset $0356, Length 2

Var 0507, Link SUBRUTINE // MONTA EL NUMERO ADF1
{
L0 = V0500 * 100
L0 = L0 + V0501
V0504 = L0 // NUMERO MANTADO PARA DISPLAY
L0 = V0504 / 10
L0 = TRUNC L0
V0505 = TOBCD L0 // DEC A BIN ADF1 FREC
L0 = V0500 / 100
L0 = TRUNC L0
L0 = L0 * 100
L0 = L0 + V0501
V0506 = TOBCD L0 // DEC TO BIN ADF1 FREC EXT
}



http://simu737.blogspot.com
Proyect: Boeing 737-800 NG

Kennair

Hi Vuelosat,  there is no offset for the ADF Standby hence the reason why you can't find it  :).  Try my attached code kindly written by Nico Kaan who is the pre-eminent SIOC wizard in my book (I would highly recommend reading his SIOC tutorials if you want to learn more).  This will give you control over the frequency by two encoders, one operating the 2 higher digits and one operating the 2 lower digits and it also gives you a standby frequency via the code itself and will pass it to FS once you press the Transfer button.

Ken.
Intel i73770K | 16Gb RAM | GTX680 | Win7-64 | TH2GO | 3 x 42" FHD LCD TV's | FDS CDU | OC MCP, EFIS, COMMS | Aerosim Throttle | Sim-Avionics DSTD+ | FSX P3D XP10 | FTX | FSGRW | REX2E | Aivlasoft EFB| PFPX | FTG |Kennair

vuelosat

http://simu737.blogspot.com
Proyect: Boeing 737-800 NG

Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate