The MTT system supports 2 types of access:-
In either case, someone requiring access to a titles bank must first create an 8 word array and store it in a COMMON. A recommended naming convention for the array is LAxxxx (Link Access) where xxxx is the bank name. The COMMON may be shared by any number of routines and may hold any number of LAxxxx arrays. The LAxxxx contains:-
So, for example, if setting up an LAxxxx array for the titles bank name RFXM and number 1, a possible definition might be:-LAxxxx(1..5) Reserved words - DON'T TOUCH!.
Don't even preset to zero!.
LAxxxx(6) Link to bank = Lxxxx.
ICONS(Lxxxx) is the ZEBRA status word.
LAxxxx(7) Link to user data = LDxxxx.
ICONS/RCONS(LDxxxx+1) is the first word of user data.
LAxxxx(8) The number of words following to hold user data (0)
COMMON/MYCOMM/ LARFXM(8) INTEGER LRFXM,LDRFXM EQUIVALENCE (LARFXM(6),LRFXM), (LARFXM(7),LDRFXM)In the discusion that follows each form of access is decribed for a fictitious RFXM 1 bank. The assumed format of the user data is:-
1 I The number of media following = n.
2 R The refractive index of the first medium.
3 R The refractive index of the second medium.
. . .
. . .
. . .
1+n R The refractive index of the nth medium.
Where:-
I Integer
R Floating Point