PDA

View Full Version : comms display



bindook
01-14-2007, 05:13 AM
Is it possible to get the first "1" in the comms to show up if you haven't made it fixed? I am using the iocards but can't get for eg 118.40 to show all i get is 018.40 . i presumed you didn't have to fix the first digit.

If it can be displayed, how???


Thanks
Michael

yoss
01-14-2007, 07:27 AM
Well , i gues the first digit has to be hardware wired to display 1

Olympic260
01-14-2007, 07:35 AM
Is it possible to get the first "1" in the comms to show up if you haven't made it fixed? I am using the iocards but can't get for eg 118.40 to show all i get is 018.40 . i presumed you didn't have to fix the first digit.

If it can be displayed, how???


Thanks
Michael


Michael,

As far as I know you have to get the first digit fixed. I don;t think that FS "sends" info for the first digit as it assumes to be always 1. I might be wrong ofcourse...

HansJansen
01-14-2007, 02:39 PM
Michael,

Are you programming your IOCards with the SIOC software? If so, it is rather simple to get the "1" you want into the frequency display. You need only add the number 100 (or better 10000, as SIOC does not recognize fractions) to the value you get from MSFS, which indeed does not supply it as Chris already mentioned.

See the following few lines of SIOC code:

Var 0015, Link IOCARD_DISPLAY, Digit 0, Numbers 5 // Active Frequency

Var 0017, Link IOCARD_OUT, Output 13 // actv hundreds Dec Pt

Var 0045, Link SUBRUTINE // Display the COM-1 active frequency
{
V0015 = FROMBCD V0994
V0015 = V0015 + 10000 // Show the number <== this is what you want to do!
V0017 = 1 // Show the decimal point
}
Var 0994, Link FSUIPC_IN, Offset $034E, Length 2 // actv COM-1 in
{
CALL V0045 // Disassemble and display this value
}

This is in no way a complete program, but it should help you on your way.

Good luck!

Hans

bindook
02-03-2007, 02:24 AM
Hi Hans,
thanks for the help but i have given up for the time being on using the SIOC. To complicated for me to work out.

I have gone back to the other ioc programe.


Michael