Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    10+ Posting Member
    Join Date
    Jan 2008
    Location
    Denmark
    Posts
    16
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    With Flashing MasterReset

    Hi again

    Here is another version

    Rgd John Hansen, Denmark



    // *****************************************************************************
    // * Config_SIOC ver 3.5 - By Manolo Vélez - www.opencockpits.com
    // *****************************************************************************
    // * FileName : WithFlash&MasterReset.txt
    // * Date : 08-02-2008



    Var 0000, Value 0 // Flashing Generator
    {
    IF V0000 = 0
    {
    V0000 = TIMER 1 ,1 ,50
    }
    IF V0000 = 1
    {
    V0000 = DELAY 0 ,50
    }
    IF V0001 = 1
    {
    IF V0006 = 1
    {
    V0010 = V0000
    }
    }
    ELSE
    {
    V0010 = 0
    }
    }

    Var 0001 // disconnect flag pm
    {
    IF V0001 = 1
    {
    IF V0006 = 1
    {
    V0008 = 1
    }
    }
    IF V0001 = 1
    {
    IF V0007 = 1
    {
    V0009 = 1
    }
    }
    IF V0001 = 0
    {
    V0006 = 0
    V0007 = 0
    }
    }

    Var 0002 // A/P from 04F2 bit 0
    {
    V0003 = DELAY V0002 ,10
    IF V0002 < V0003
    {
    V0006 = 1
    }
    ELSE
    {
    V0006 = 0
    }
    }

    Var 0003 // delay A/P calc

    Var 0004 // A/T from 04F2 bit 11
    {
    V0005 = DELAY V0004 ,10
    IF V0004 < V0005
    {
    V0007 = 1
    }
    ELSE
    {
    V0007 = 0
    }
    }

    Var 0005 // delay A/T calc

    Var 0006 // A/P disconnect flag
    {
    IF V0001 = 1
    {
    IF V0006 = 1
    {
    V0008 = 1
    }
    }
    }

    Var 0007 // A/T disconnect flag
    {
    IF V0001 = 1
    {
    IF V0007 = 1
    {
    V0009 = 1
    }
    }
    }

    Var 0008, Link IOCARD_OUT, Output 12 // A/P disconnect led

    Var 0009, Link IOCARD_OUT, Output 13 // A/T disconnect led

    Var 0010, Link IOCARD_OUT, Output 11 // Master Caution led

    Var 0011, Link IOCARD_SW, Input 1 // A/P reset sw
    {
    V0008 = TOGGLE 0
    }

    Var 0012, Link IOCARD_SW, Input 2 // A/T reset sw
    {
    V0009 = TOGGLE 0
    V0016 = TOGGLE 0
    }

    Var 0013, Link IOCARD_SW, Input 0 // Master Reset sw
    {
    V0010 = TOGGLE 0
    V0016 = TOGGLE 0
    }

    Var 0014, Link FSUIPC_IN, Offset $04FE, Length 2 // PM flag
    {
    V0001 = TESTBIT V0014 ,2
    }

    Var 0015, Link FSUIPC_IN, Offset $04F0, Length 2 // PM A/P & A/T read
    {
    V0002 = TESTBIT V0015 ,0
    V0004 = TESTBIT V0015 ,11
    }

    Var 0016, Link FSUIPC_OUT, Offset $56F8, Length 2 // Master reset write

    Var 0017, Link FSUIPC_OUT, Offset $050A, Length 2 // disconnect main sw

  2. #12
    10+ Posting Member
    Join Date
    Jan 2008
    Location
    Denmark
    Posts
    16
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi

    With regard to disconnect A/P i have used Offset 04F0 in project magenta,
    Light function for CMD led. Bescuse the sioc script using bit 0 of that offset,
    the disconnect function only works for CMD A.. I soon modifi this, so the offsets will be Fsuipc 07BC (Autopilot Master Switch). Then will CMD B
    also be covered, and I will post the script as soon as possible....


    Best Regards John Hansen, Denmark

  3. #13
    25+ Posting Member
    Join Date
    Oct 2007
    Location
    Miami, FLorida. USA
    Posts
    37
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi all. I am also trying to program this function in my cockpit.
    Unfortunately it is wired with a SYS3 board from FDS (FlightDeckSolutions).

    The logic to be written should be quite simple since the conditions for
    the functions could be easily implemented, The problem is that I do not
    have enough documentation for the language used in pmSystems.

    Interfaceit, the program that controls the I/O to the SYS cards is quite simple and not suited for this kind of logic. Therefore it should be implementes in the pmSystems code itself.

    Does anybody know of any good documentation for implementing functions
    in pmSystems logic since they seem to be reluctant to provide a solution
    themselves.

    I for one know there are a lot of people out there with this problem.

    To give you an example, the A/T disengage light and pushbutton works
    upon the following conditions :

    Illuminates red:
    1- Flashing : The A/T has been disengaged. Light can be extingushed
    pushing the button. ( offset and respective bit need to be known )

    2- Steady.The disengaged light test switch is position 2

    Illuminates amber:
    1- Flashing : The AP has automatically reverted to CWS pitch or roll
    mode while in CMD mode. The light can be reset by
    pushing the button or selecting the mode.

    2- Steady : The disengage light test switch is in position 1.

    This should not be so difficult to implement in any decent language.

    Thanks folks

  4. #14
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Jan 2008
    Location
    australia
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    This offset issue has been lurking for some time. We discussed when this issue would come to the fore for hobbyists early last year. The lack of information prompted an in-house solution.

    Certain organisation has the relevant information to answer this question to help all with glass cockpit software (therein lies the clue). It would not be profitable for them to release to all and sundry due to hardware/software partnerships.

    The afds coding for all of our current installations was mapped for our commercial hardware only.

  5. #15
    25+ Posting Member
    Join Date
    Oct 2007
    Location
    Miami, FLorida. USA
    Posts
    37
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    AFDS and pmSystems

    Well, I think that it all comes down to that the wrong asumption was made
    by those who purchased the pmSystems software when it was implied
    that user define variables, functions and code could implemented
    to suit individual needs. A $1000 piece of software is not really
    what a "hobbyst" would purchase. That in conjunction with the rest
    o PM software comes to several thousand dollars. Ceratinly what
    professional packages run for. A license for ArcInfo for example runs
    several thousand dollars and so on.

    Is your solution pmSytems embeded code that can be applied to
    any I/O card solution?

    I for one, will start looking at pmSystems logic and try to understand it.
    I you can program in C you can porgram in "anything"

  6. #16
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Jan 2008
    Location
    australia
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    I will contact our tech partners.

  7. #17
    300+ Forum Addict NicD's Avatar
    Join Date
    Aug 2006
    Location
    Hobart, Australia
    Posts
    404
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    John (zirakonium) - thanks very much for posting up your SIOC code.

    Just wondering ... does your code include the FMC warning light/switch ? Just not sure from your code whether you are referring to that in these lines:

    Var 0010, Link IOCARD_OUT, Output 11 // Master Caution led

    Var 0013, Link IOCARD_SW, Input 0 // Master Reset sw
    or whether that's just the main Master Caution on the glareshield ?

    (BTW I saw on another forum where the FMC warning can be derived from the FMC-Message offset flag in PM, I'm thinking of trying that)

    thanks
    Nic D'Alessandro
    737NG builder (Hobart, Australia)
    http://simsation.com.au

  8. #18
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Jan 2008
    Location
    australia
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    The FMC message flag will illuminate and if programmed a reset action offset will occur. This will replicate pm cdu inputs. A CDU message action does not change a state it simply reports.

    A/T and A/P FS offsets both report and cause a change. The report condition may be used to show the state but the hardware needs to be reset without a change in fs state. FS has no offsets for this. They are second party and generally concerned with local hadware.

  9. #19
    10+ Posting Member
    Join Date
    Jan 2008
    Location
    Denmark
    Posts
    16
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Smile

    Hi Again.....


    I will post a modified version, today or tomorrow....

    A slight difference in offsets, the will improve the script.


    Best regards John Hansen, Denmark

  10. #20
    10+ Posting Member
    Join Date
    Jan 2008
    Location
    Denmark
    Posts
    16
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi

    I will try to acommidate the FMC function, but i have to find out when this
    annonciator is flashing....If any one of you know, please write...The only
    documention i have is the Continential Boeing Manual on this site.

    This version of my script i have added Master Caution annonciation when
    a situtation occours, and also the reset of it.

    I know that my script is not reflecting the real logics, because i have added
    i flashing Master caution when A/P is disconnected but it was just a challange
    when learning sioc programming...I will ofcause try to make a replica of the real logics.... But until then i'll post my latest script....

    // *****************************************************************************
    // * Config_SIOC ver 3.5 - By Manolo Vélez - www.opencockpits.com
    // *****************************************************************************
    // * FileName : AP-AT-MasterCaution.txt
    // * Date : 21-02-2008



    Var 0000, Value 0 // Flashing Generator
    {
    IF V0000 = 0
    {
    V0000 = TIMER 1 ,1 ,50
    }
    IF V0000 = 1
    {
    V0000 = DELAY 0 ,50
    }
    IF V0001 = 1
    {
    IF V0006 = 1
    {
    V0010 = TESTBIT V0000 ,0
    }
    }
    }

    Var 0001 // disconnect flag pm
    {
    IF V0001 = 1
    {
    IF V0006 = 1
    {
    V0008 = 1
    }
    }
    IF V0001 = 1
    {
    IF V0007 = 1
    {
    V0009 = 1
    }
    }
    IF V0001 = 0
    {
    V0006 = 0
    V0007 = 0
    }
    }

    Var 0002 // A/P from $07BC
    {
    V0003 = DELAY V0002 ,10
    IF V0002 < V0003
    {
    V0006 = 1
    }
    ELSE
    {
    V0006 = 0
    }
    }

    Var 0003 // delay A/P calc

    Var 0004 // A/T from $0310A bit 3
    {
    V0005 = DELAY V0004 ,10
    IF V0004 < V0005
    {
    V0007 = 1
    }
    ELSE
    {
    V0007 = 0
    }
    }

    Var 0005 // delay A/T calc

    Var 0006 // A/P disconnect flag
    {
    IF V0001 = 1
    {
    IF V0006 = 1
    {
    V0008 = 1
    }
    }
    }

    Var 0007 // A/T disconnect flag
    {
    IF V0001 = 1
    {
    IF V0007 = 1
    {
    V0009 = 1
    }
    }
    }

    Var 0008, Link IOCARD_OUT, Output 12 // A/P disconnect led

    Var 0009, Link IOCARD_OUT, Output 13 // A/T disconnect led

    Var 0010, Link IOCARD_OUT, Output 11 // Master Caution led

    Var 0011, Link IOCARD_SW, Input 1 // A/P reset sw
    {
    V0008 = TOGGLE 0
    }

    Var 0012, Link IOCARD_SW, Input 2 // A/T reset sw
    {
    V0009 = TOGGLE 0
    V0017 = TOGGLE 0
    }

    Var 0013, Link IOCARD_SW, Input 0 // Master Reset sw
    {
    V0010 = TOGGLE 0
    V0017 = TOGGLE 0
    }

    Var 0014, Link FSUIPC_IN, Offset $04FE, Length 2 // PM flag
    {
    V0001 = TESTBIT V0014 ,2
    }

    Var 0015, Link FSUIPC_IN, Offset $07BC, Length 4 // A/P read
    {
    V0002 = V0015
    }

    Var 0016, Link FSUIPC_IN, Offset $310A, Length 1 // A/T read
    {
    V0004 = TESTBIT V0016 ,3
    }

    Var 0017, Link FSUIPC_OUT, Offset $56F8, Length 2 // Master Caution write

    Var 0018, Link FSUIPC_IN, Offset $5530, Length 2 // Master Caution SixPack read
    {
    V0010 = TESTBIT V0018 ,1
    }


    Injoy regards John Hansen, Denmark

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Offset?
    By Pierre24 in forum PM General Q & A
    Replies: 4
    Last Post: 05-22-2008, 02:32 AM
  2. Offset for DF 737-400
    By APAK in forum I/O Interfacing Hardware and Software
    Replies: 0
    Last Post: 09-24-2007, 09:32 AM
  3. QNH offset
    By bindook in forum I/O Interfacing Hardware and Software
    Replies: 2
    Last Post: 03-20-2007, 08:00 AM
  4. Offset again
    By lucas1971 in forum FS2Phidget Users
    Replies: 3
    Last Post: 12-09-2004, 01:49 AM