Source Code
These source-code files were from the printout at the MIT Museum, with many thanks
to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing
it to us. The printout was digitally photographed by Paul Fjeld. A team of
volunteers transcribed the source code manually from these images or, where
appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13)
source code to agree with the images from the printout. Note that the page images
presented online are of reduced quality, and that higher-quality images
are available. Report any conversion errors or legibility
problems in page images to info@sandroid.org.
Notations on the program listing read, in part:GAP: ASSEMBLE REVISION 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061 16:27 JULY 14,1969Note that the date is the date of the printout, not the date of the program revision. |
056271,000002: ## Copyright: Public domain.
056272,000003: ## Filename: IMU_MODE_SWITCHING_ROUTINES.agc
056273,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
056274,000005: ## It is part of the source code for the Lunar Module's (LM)
056275,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
056276,000007: ## Assembler: yaYUL
056277,000008: ## Contact: Onno Hommes <ohommes@cmu.edu>.
056278,000009: ## Website: www.ibiblio.org/apollo.
056279,000010: ## Pages: 1309-1337
056280,000011: ## Mod history: 2009-05-28 OH Transcribed from page images.
056281,000012: ## 2009-06-05 RSB Fixed a typo.
056282,000013: ## 2011-01-06 JL Fixed pseudo-label indentation.
056283,000014: ## 2011-05-08 JL Removed workaround. Flagged SBANK=
056284,000015: ## workaround for future removal.
056285,000016: ## 2016-12-13 RSB GOTOP00H -> GOTOPOOH
056286,000017: ## 2016-12-18 RSB Proofed text comments with octopus/ProoferComments
056287,000018: ## and corrected the errors found.
056288,000019: ## 2017-01-18 RRB Found typo while updating for Luminary 69.
056289,000020: ## 2017-01-28 RSB Comment-text fixes identified for Luminary 69.
056290,000021: ## 2017-03-13 RSB Comment-text fixes noted in proofing Luminary 116.
056291,000022: ## 2017-03-15 RSB Comment-text fixes identified in 6-way
056292,000023: ## side-by-side diff of Sunburst 120 and Luminary
056293,000024: ## 69/99/116/131/210.
056294,000025: ## 2017-06-17 MAS Globally removed all SBANK= workarounds.
056295,000026:
056296,000027: ## This source code has been transcribed or otherwise adapted from
056297,000028: ## digitized images of a hardcopy from the MIT Museum. The digitization
056298,000029: ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
056299,000030: ## the Museum. Many thanks to both. The images (with suitable reduction
056300,000031: ## in storage size and consequent reduction in image quality as well) are
056301,000032: ## available online at www.ibiblio.org/apollo. If for some reason you
056302,000033: ## find that the images are illegible, contact me at info@sandroid.org
056303,000034: ## about getting access to the (much) higher-quality images which Paul
056304,000035: ## actually created.
056305,000036: ##
056306,000037: ## Notations on the hardcopy document read, in part:
056307,000038: ##
056308,000039: ## Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
056309,000040: ## 16:27 JULY 14, 1969
056310,000041:
056311,000042:
Page 1309 |
056313,000044: 5457 BLOCK 02
056314,000045: 4000 SETLOC FFTAG3
056315,000046: 4000 BANK
056316,000047:
056317,000048: 5457 E3,1471 EBANK= COMMAND
056318,000049:
056319,000050: # FIXED-FIXED ROUTINES.
056320,000051:
056321,000052: 5457 COUNT* $$/IMODE
056322,000053: 5457 34755 ZEROICDU CAF ZERO # ZERO ICDU COUNTERS.
056323,000054: 5460 54032 TS CDUX
056324,000055: 5461 54033 TS CDUY
056325,000056: 5462 54034 TS CDUZ
056326,000057: 5463 00002 TC Q
056327,000058:
056328,000059: 5464 4743 SPSCODE = BIT9
056329,000060:
Page 1310 |
056331,000062: # IMU ZEROING ROUTINE.
056332,000063:
056333,000064: 11,3776 BANK 11
056334,000065: 07,2000 SETLOC MODESW
056335,000066: 07,2000 BANK
056336,000067:
056337,000068: 07,2714 COUNT* $$/IMODE
056338,000069: 07,2714 00004 IMUZERO INHINT # ROUTINE TO ZERO ICDUS.
056339,000070: 07,2715 41036 CS DSPTAB +11D # DONT ZERO CDUS IF IMU IN GIMBAL LOCK AND
056340,000071: 07,2716 74771 MASK BITS4&6 # COARSE ALIGN (GIMBAL RUNAWAY PROTECTION)
056341,000072: 07,2717 10000 CCS A
056342,000073: 07,2720 12724 TCF IMUZEROA
056343,000074:
056344,000075: 07,2721 05567 TC ALARM # IF SO.
056345,000076: 07,2722 00206 OCT 00206
056346,000077:
056347,000078: 07,2723 13657 TCF CAGETSTJ +4 # IMMEDIATE FAILURE.
056348,000079:
056349,000080: 07,2724 03653 IMUZEROA TC CAGETSTJ
056350,000081: # DELETE
056351,000082: 07,2725 41303 CS IMODES33 # DISABLE DAP AUTO AND HOLD MODES
056352,000083: 07,2726 74773 MASK SUPER011 # BIT5 FOR GROUND
056353,000084: 07,2727 27303 ADS IMODES33
056354,000085:
056355,000086: 07,2730 41302 CS IMODES30 # INHIBIT ICDUFAIL AND IMUFAIL (IN CASE WE
056356,000087: 07,2731 75751 MASK BITS3&4 # JUST CAME OUT OF COARSE ALIGN).
056357,000088: 07,2732 27302 ADS IMODES30
056358,000089:
056359,000090: 07,2733 44771 CS BITS4&6 # SEND ZERO ENCODE WITH COARSE AND ERROR
056360,000091: 07,2734 00006 EXTEND # COUNTER DISABLED.
056361,000092: 07,2735 03012 WAND CHAN12
056362,000093:
056363,000094: 07,2736 03266 TC NOATTOFF # TURN OFF NO ATT LAMP.
056364,000095:
056365,000096: 07,2737 34747 CAF BIT5
056366,000097: 07,2740 00006 EXTEND
056367,000098: 07,2741 05012 WOR CHAN12
056368,000099:
056369,000100: 07,2742 05457 TC ZEROICDU
056370,000101: 07,2743 34746 CAF BIT6 # WAIT 320 MS TO GIVE AGS ADEQUATE TIME TO
056371,000102: 07,2744 05203 TC WAITLIST # RECEIVE ITS PULSE TRAIN.
056372,000103: 07,2745 E3,1474 EBANK= CDUIND
056373,000104: 07,2745 02757 16103 2CADR IMUZERO2
056374,000105:
056375,000106: 07,2747 41302 CS IMODES30 # SEE IF IMU OPERATING AND ALARM IF NOT.
056376,000107: 07,2750 74743 MASK BIT9
056377,000108: 07,2751 10000 CCS A
056378,000109: 07,2752 12755 TCF MODEEXIT
Page 1311 |
056380,000111: 07,2753 05567 TC ALARM
056381,000112: 07,2754 00210 OCT 210
056382,000113:
056383,000114: 07,2755 00003 MODEEXIT RELINT # GENERAL MODE-SWITCHING EXIT.
056384,000115: 07,2756 14631 TCF SWRETURN
056385,000116:
056386,000117: 07,2757 03641 IMUZERO2 TC CAGETEST
056387,000118: 07,2760 05457 TC ZEROICDU # ZERO CDUX, CDUY, CDUZ
056388,000119:
056389,000120: 07,2761 44747 CS BIT5 # REMOVE ZERO DISCRETE.
056390,000121: 07,2762 00006 EXTEND
056391,000122: 07,2763 03012 WAND CHAN12
056392,000123:
056393,000124: 07,2764 34741 CAF BIT11 # WAIT 10 SECS FOR CTRS TO FIND GIMBALS
056394,000125: 07,2765 05224 TC VARDELAY
056395,000126:
056396,000127: 07,2766 03641 IMUZERO3 TC CAGETEST
056397,000128: 07,2767 45751 CS BITS3&4 # REMOVE IMUFAIL AND ICDUFAIL INHIBIT.
056398,000129: 07,2770 71302 MASK IMODES30
056399,000130: 07,2771 55302 TS IMODES30
056400,000131:
056401,000132: 07,2772 44773 CS SUPER011 # ENABLE DAP AUTO AND HOLD MODES
056402,000133: 07,2773 71303 MASK IMODES33 # BIT5 FOR GROUND
056403,000134: 07,2774 55303 TS IMODES33
056404,000135:
056405,000136: 07,2775 04674 TC IBNKCALL # SET ISS WARNING IF EITHER OF ABOVE ARE
056406,000137: 07,2776 14703 CADR SETISSW # PRESENT.
056407,000138:
056408,000139: 07,2777 13631 TCF ENDIMU
056409,000140:
Page 1312 |
056411,000142: # IMU COARSE ALIGN MODE.
056412,000143:
056413,000144: 07,3000 00004 IMUCOARS INHINT
056414,000145: 07,3001 03653 TC CAGETSTJ
056415,000146: 07,3002 03144 TC SETCOARS
056416,000147:
056417,000148: 07,3003 36242 CAF SIX
056418,000149: 07,3004 05203 TC WAITLIST
056419,000150: 07,3005 E3,1474 EBANK= CDUIND
056420,000151: 07,3005 03010 16103 2CADR COARS
056421,000152:
056422,000153: 07,3007 12755 TCF MODEEXIT
056423,000154:
056424,000155: 07,3010 03641 COARS TC CAGETEST
056425,000156: 07,3011 34746 CAF BIT6 # ENABLE ALL THREE ISS CDU ERROR COUNTERS
056426,000157: 07,3012 00006 EXTEND
056427,000158: 07,3013 05012 WOR CHAN12
056428,000159:
056429,000160: 07,3014 34752 CAF TWO # SET CDU INDICATOR
056430,000161: 07,3015 55474 COARS1 TS CDUIND
056431,000162:
056432,000163: 07,3016 51474 INDEX CDUIND # COMPUTE THETAD - THETAA IN 1:S
056433,000164: 07,3017 30321 CA THETAD # COMPLEMENT FORM
056434,000165: 07,3020 00006 EXTEND
056435,000166: 07,3021 51474 INDEX CDUIND
056436,000167: 07,3022 20032 MSU CDUX
056437,000168: 07,3023 00006 EXTEND
056438,000169: 07,3024 74737 MP BIT13 # SHIFT RIGHT 2
056439,000170: 07,3025 56001 XCH L # ROUND
056440,000171: 07,3026 60000 DOUBLE
056441,000172: 07,3027 54061 TS ITEMP1
056442,000173: 07,3030 13032 TCF +2
056443,000174: 07,3031 26001 ADS L
056444,000175:
056445,000176: 07,3032 51474 INDEX CDUIND # DIFFERENCE TO BE COMPUTED
056446,000177: 07,3033 23471 LXCH COMMAND
056447,000178: 07,3034 11474 CCS CDUIND
056448,000179: 07,3035 03015 TC COARS1
056449,000180:
056450,000181: 07,3036 34752 CAF TWO # MINIMUM OF 4 MS WAIT
056451,000182: 07,3037 05224 TC VARDELAY
056452,000183:
Page 1313 |
056454,000185: 07,3040 03641 COARS2 TC CAGETEST # DONT CONTINUE IF CAGED.
056455,000186: 07,3041 54061 TS ITEMP1 # SETS TO +0.
056456,000187: 07,3042 34752 CAF TWO # SET CDU INDICATOR
056457,000188: 07,3043 55474 +3 TS CDUIND
056458,000189:
056459,000190: 07,3044 51474 INDEX CDUIND
056460,000191: 07,3045 11471 CCS COMMAND # NUMBER OF PULSES REQUIRED
056461,000192: 07,3046 03052 TC COMPOS # GREATER THAN MAX ALLOWED
056462,000193: 07,3047 03061 TC NEXTCDU +1
056463,000194: 07,3050 03117 TC COMNEG
056464,000195: 07,3051 03061 TC NEXTCDU +1
056465,000196:
056466,000197: 07,3052 63745 COMPOS AD -COMMAX # COMMAX = MAX NUMBER OF PULSES ALLOWED
056467,000198: 07,3053 00006 EXTEND # MINUS ONE
056468,000199: 07,3054 63127 BZMF COMZERO
056469,000200: 07,3055 51474 INDEX CDUIND
056470,000201: 07,3056 55471 TS COMMAND # REDUCE COMMAND BY MAX NUMBER OF PULSES
056471,000202: 07,3057 43746 CS -COMMAX- # ALLOWED
056472,000203:
056473,000204: 07,3060 24061 NEXTCDU INCR ITEMP1
056474,000205: 07,3061 64754 AD NEG0
056475,000206: 07,3062 51474 INDEX CDUIND
056476,000207: 07,3063 54050 TS CDUXCMD # SET UP COMMAND REGISTER.
056477,000208:
056478,000209: 07,3064 11474 CCS CDUIND
056479,000210: 07,3065 03043 TC COARS2 +3
056480,000211:
056481,000212: 07,3066 10061 CCS ITEMP1 # SEE IF ANY PULSES TO GO OUT.
056482,000213: 07,3067 13133 TCF SENDPULS
056483,000214:
056484,000215: 07,3070 05221 TC FIXDELAY # WAIT FOR GIMBALS TO SETTLE.
056485,000216: 07,3071 00226 DEC 150 B-14
056486,000217:
056487,000218: 07,3072 34752 CAF TWO # AT END OF COMMAND, CHECK TO SEE THAT
056488,000219: 07,3073 54061 CHKCORS TS ITEMP1 # GIMBALS ARE WITHIN 2 DEGREES OF THETAD.
056489,000220: 07,3074 50000 INDEX A
056490,000221: 07,3075 30032 CA CDUX
056491,000222: 07,3076 00006 EXTEND
056492,000223: 07,3077 50061 INDEX ITEMP1
056493,000224: 07,3100 20321 MSU THETAD
056494,000225: 07,3101 10000 CCS A
056495,000226: 07,3102 13110 TCF COARSERR
056496,000227: 07,3103 13105 TCF CORSCHK2
056497,000228: 07,3104 13110 TCF COARSERR
056498,000229:
Page 1314 |
056500,000231: 07,3105 10061 CORSCHK2 CCS ITEMP1
056501,000232: 07,3106 13073 TCF CHKCORS
056502,000233: 07,3107 13631 TCF ENDIMU # END OF COARSE ALIGNMENT.
056503,000234:
056504,000235: 07,3110 63116 COARSERR AD COARSTOL # 2 DEGREES.
056505,000236: 07,3111 00006 EXTEND
056506,000237: 07,3112 63105 BZMF CORSCHK2
056507,000238:
056508,000239: 07,3113 05567 TC ALARM # COARSE ALIGN ERROR.
056509,000240: 07,3114 00211 OCT 211
056510,000241:
056511,000242: 07,3115 13637 TCF IMUBAD
056512,000243:
056513,000244: 07,3116 77511 COARSTOL DEC -.01111 # 2 DEGREES SCALED AT HALF-REVOLUTIONS
056514,000245:
056515,000246: 07,3117 63745 COMNEG AD -COMMAX
056516,000247: 07,3120 00006 EXTEND
056517,000248: 07,3121 63127 BZMF COMZERO
056518,000249: 07,3122 40000 COM
056519,000250: 07,3123 51474 INDEX CDUIND
056520,000251: 07,3124 55471 TS COMMAND
056521,000252: 07,3125 33746 CA -COMMAX-
056522,000253: 07,3126 03060 TC NEXTCDU
056523,000254:
056524,000255: 07,3127 34755 COMZERO CAF ZERO
056525,000256: 07,3130 51474 INDEX CDUIND
056526,000257: 07,3131 57471 XCH COMMAND
056527,000258: 07,3132 03060 TC NEXTCDU
056528,000259:
056529,000260: 07,3133 37740 SENDPULS CAF 13,14,15
056530,000261: 07,3134 00006 EXTEND
056531,000262: 07,3135 05014 WOR CHAN14
056532,000263: 07,3136 33747 CAF 600MS
056533,000264: 07,3137 13037 TCF COARS2 -1 # THEN TO VARDELAY
056534,000265:
056535,000266: 07,3140 34746 CA+ECE CAF BIT6 # ENABLE ALL THREE ISS CDU ERROR COUNTERS
056536,000267: 07,3141 00006 EXTEND
056537,000268: 07,3142 05012 WOR CHAN12
056538,000269: 07,3143 05261 TC TASKOVER
056539,000270:
Page 1315 |
056541,000272: 07,3144 34750 SETCOARS CAF BIT4 # BYPASS IF ALREADY IN COARSE ALIGN
056542,000273: 07,3145 00006 EXTEND
056543,000274: 07,3146 02012 RAND CHAN12
056544,000275: 07,3147 10000 CCS A
056545,000276: 07,3150 00002 TC Q
056546,000277:
056547,000278: 07,3151 44746 CS BIT6 # CLEAR ISS ERROR COUNTERS
056548,000279: 07,3152 00006 EXTEND
056549,000280: 07,3153 03012 WAND CHAN12
056550,000281:
056551,000282: 07,3154 44742 CS BIT10 # KNOCK DOWN GYRO ACTIVITY
056552,000283: 07,3155 00006 EXTEND
056553,000284: 07,3156 03014 WAND CHAN14
056554,000285: 07,3157 44755 CS ZERO
056555,000286: 07,3160 54047 TS GYROCMD
056556,000287:
056557,000288: 07,3161 34750 CAF BIT4 # PUT ISS IN COARSE ALIGN
056558,000289: 07,3162 00006 EXTEND
056559,000290: 07,3163 05012 WOR CHAN12
056560,000291:
056561,000292: 07,3164 41036 CS DSPTAB +11D # TURN ON NO ATT LAMP
056562,000293: 07,3165 73207 MASK OCT40010
056563,000294: 07,3166 27036 ADS DSPTAB +11D
056564,000295:
056565,000296: 07,3167 41303 CS IMODES33 # DISABLE DAP AUTO AND HOLD MODES
056566,000297: 07,3170 74746 MASK BIT6
056567,000298: 07,3171 27303 ADS IMODES33
056568,000299:
056569,000300: 07,3172 41302 CS IMODES30 # DISABLE IMUFAIL
056570,000301: 07,3173 74750 MASK BIT4
056571,000302: 07,3174 27302 ADS IMODES30
056572,000303:
056573,000304: 07,3175 44747 RNDREFDR CS TRACKBIT # CLEAR TRACK FLAG
056574,000305: 07,3176 70075 MASK FLAGWRD1
056575,000306: 07,3177 54075 TS FLAGWRD1
056576,000307:
056577,000308: 07,3200 44735 CS DRFTBIT # CLEAR DRIFT FLAG
056578,000309: 07,3201 70076 MASK FLAGWRD2
056579,000310: 07,3202 54076 TS FLAGWRD2
056580,000311:
056581,000312: 07,3203 44737 CS REFSMBIT # CLEAR REFSMMAT FLAG
056582,000313: 07,3204 70077 MASK FLAGWRD3
056583,000314: 07,3205 54077 TS FLAGWRD3
056584,000315:
056585,000316: 07,3206 00002 TC Q
056586,000317:
056587,000318: 07,3207 40010 OCT40010 OCT 40010
056588,000319:
Page 1316 |
056590,000321: # IMU FINE ALIGN MODE SWITCH.
056591,000322:
056592,000323: 07,3210 00004 IMUFINE INHINT
056593,000324: 07,3211 03653 TC CAGETSTJ # SEE IF IMU BEING CAGED.
056594,000325:
056595,000326: 07,3212 43744 CS BITS4-5 # RESET ZERO AND COARSE
056596,000327: 07,3213 00006 EXTEND
056597,000328: 07,3214 03012 WAND CHAN12
056598,000329:
056599,000330: 07,3215 44746 CS BIT6 # INSURE DAP AUTO AND HOLD MODES ENABLED
056600,000331: 07,3216 71303 MASK IMODES33
056601,000332: 07,3217 55303 TS IMODES33
056602,000333:
056603,000334: 07,3220 03266 TC NOATTOFF
056604,000335:
056605,000336: 07,3221 34742 CAF BIT10 # IMU FAIL WAS INHIBITED DURING THE
056606,000337: 07,3222 05203 TC WAITLIST # PRESUMABLY PRECEDING COARSE ALIGN. LEAVE
056607,000338: 07,3223 E3,1474 EBANK= CDUIND
056608,000339: 07,3223 03234 16103 2CADR IFAILOK # IT ON FOR THE FIRST 5 SECS OF FINE ALIGN
056609,000340:
056610,000341: 07,3225 35000 CAF 2SECS
056611,000342: 07,3226 05203 TC WAITLIST
056612,000343: 07,3227 E3,1474 EBANK= CDUIND
056613,000344: 07,3227 03232 16103 2CADR IMUFINED
056614,000345:
056615,000346: 07,3231 12755 TCF MODEEXIT
056616,000347:
056617,000348: 07,3232 03641 IMUFINED TC CAGETEST # SEE THAT NO ONE HAS CAGED THE IMU.
056618,000349: 07,3233 13631 TCF ENDIMU
056619,000350:
Page 1317 |
056621,000352: 07,3234 03646 IFAILOK TC CAGETSTQ # ENABLE IMU FIAL UNLESS IMU BEING CAGED.
056622,000353: 07,3235 15261 TCF TASKOVER # IT IS.
056623,000354:
056624,000355: 07,3236 34750 CAF BIT4 # DONT RESET IMU FAIL INHIBIT IF SOMEONE
056625,000356: 07,3237 00006 EXTEND # HAS GONE INTO COARSE ALIGN.
056626,000357: 07,3240 02012 RAND CHAN12
056627,000358: 07,3241 10000 CCS A
056628,000359: 07,3242 15261 TCF TASKOVER
056629,000360:
056630,000361: 07,3243 41302 CS IMODES30 # RESET IMUFAIL.
056631,000362: 07,3244 74737 MASK BIT13
056632,000363: 07,3245 27302 ADS IMODES30
056633,000364: 07,3246 44750 CS BIT4
056634,000365: 07,3247 71302 PFAILOK2 MASK IMODES30
056635,000366: 07,3250 55302 TS IMODES30
056636,000367: 07,3251 04674 TC IBNKCALL # THE ISS WARNING LIGHT MAY COME ON NOW
056637,000368: 07,3252 14703 CADR SETISSW # THAT THE INHIBIT HAS BEEN REMOVED.
056638,000369: 07,3253 15261 TCF TASKOVER
056639,000370:
056640,000371: 07,3254 03646 PFAILOK TC CAGETSTQ # ENABLE PIP FAIL PROG ALARM.
056641,000372: 07,3255 15261 TCF TASKOVER
056642,000373:
056643,000374: 07,3256 41302 CS IMODES30 # RESET IMU AND PIPA FAIL BITS.
056644,000375: 07,3257 74742 MASK BIT10
056645,000376: 07,3260 27302 ADS IMODES30
056646,000377:
056647,000378: 07,3261 41303 CS IMODES33
056648,000379: 07,3262 74737 MASK BIT13
056649,000380: 07,3263 27303 ADS IMODES33
056650,000381:
056651,000382: 07,3264 44747 CS BIT5
056652,000383: 07,3265 13247 TCF PFAILOK2
056653,000384:
056654,000385: 07,3266 43207 NOATTOFF CS OCT40010 # SUBROUTINE TO TURN OFF NO ATT LAMP.
056655,000386: 07,3267 71036 MASK DSPTAB +11D
056656,000387: 07,3270 64735 AD BIT15
056657,000388: 07,3271 55036 TS DSPTAB +11D
056658,000389: 07,3272 00002 TC Q
056659,000390:
Page 1318 |
056661,000392: # ROUITNES TO INITIATE AND TERMINATE PROGRAM USE OF THE PIPAS. NO IMUSTALL REQUIRED IN EITHER CASE.
056662,000393:
056663,000394: 07,3273 44755 PIPUSE CS ZERO
056664,000395: 07,3274 54037 TS PIPAX
056665,000396: 07,3275 54040 TS PIPAY
056666,000397: 07,3276 54041 TS PIPAZ
056667,000398:
056668,000399: 07,3277 03646 PIPUSE1 TC CAGETSTQ # DO NOT ENABLE PIPA FAIL IF IMU IS CAGED
056669,000400: 07,3300 14631 TCF SWRETURN
056670,000401:
056671,000402: 07,3301 00004 INHINT
056672,000403: 07,3302 44753 CS BIT1 # IF PIPA FAILS FROM NOW ON (UNTIL
056673,000404: 07,3303 71302 MASK IMODES30 # PIPFREE), LIGHT ISS WARNING.
056674,000405: 07,3304 55302 TS IMODES30
056675,000406:
056676,000407: 07,3305 04674 PIPFREE2 TC IBNKCALL # ISS WARNING MIGHT COME ON NOW.
056677,000408: 07,3306 14703 CADR SETISSW # (OR GO OFF ON PIPFREE).
056678,000409:
056679,000410: 07,3307 12755 TCF MODEEXIT
056680,000411:
056681,000412: 07,3310 00004 PIPFREE INHINT # PROGRAM DONE WITH PIPAS. DONT LIGHT
056682,000413: 07,3311 41302 CS IMODES30 # ISS WARNING.
056683,000414: 07,3312 74753 MASK BIT1
056684,000415: 07,3313 27302 ADS IMODES30
056685,000416:
056686,000417: 07,3314 74742 MASK BIT10 # IF PIP FAIL ON, DO PROG ALSRM AND RESET
056687,000418: 07,3315 10000 CCS A # ISS WARNING.
056688,000419: 07,3316 12755 TCF MODEEXIT
056689,000420:
056690,000421: 07,3317 05567 TC ALARM
056691,000422: 07,3320 00212 OCT 212
056692,000423:
056693,000424: 07,3321 00004 INHINT
056694,000425:
056695,000426: 07,3322 13305 TCF PIPFREE2
056696,000427:
Page 1319 |
056698,000429: # THE FOLLOWING ROUTINE TORQUES THE IRIGS ACCORDING TO DOUBLE PRECISION INPUTS IN THE SIX REGISTERS
056699,000430: # BEGINNING AT THE ECADR ARRIVING IN A. THE MINIMUM SIZE OF ANY PULSE TRAIN IS 16 PULSES (.25 CDU COUNTS). THE
056700,000431: # UNSENT PORTION OF THE COMMAND IS LEFT INTACT IN THE INPUT COMMAND REGISTERS.
056701,000432:
056702,000433: 07,3323 E3,1400 EBANK= 1400 # VARIABLE, ACTUALLY.
056703,000434:
056704,000435: 07,3323 54161 IMUPULSE TS MPAC +5 # SAVE ARRIVING ECADR.
056705,000436: 07,3324 03653 TC CAGETSTJ # DONT PROCEED IF IMU BEING CAGED.
056706,000437:
056707,000438: 07,3325 11314 CCS LGYRO # SEE IF GYROS BUSY.
056708,000439: 07,3326 03367 TC GYROBUSY # SLEEP.
056709,000440:
056710,000441: 07,3327 54156 TS MPAC +2
056711,000442: 07,3330 34746 CAF BIT6 # ENABLE THE POWER SUPPLY.
056712,000443: 07,3331 00006 EXTEND
056713,000444: 07,3332 05014 WOR CHAN14
056714,000445:
056715,000446: 07,3333 34751 CAF FOUR
056716,000447: 07,3334 05203 GWAKE2 TC WAITLIST # (IF A JOB WAS PUT TO SLEEP, THE POWER
056717,000448: 07,3335 E3,1474 EBANK= CDUIND # SUPPLY IS LEFT ON BY THE WAKING JOB).
056718,000449: 07,3335 03405 16103 2CADR STRTGYRO
056719,000450:
056720,000451: 07,3337 30161 CA MPAC +5 # SET UP EBANK, SAVING CALLER'S EBANK FOR
056721,000452: 07,3340 56003 XCH EBANK # RESTORATION ON RETURN.
056722,000453: 07,3341 56161 XCH MPAC +5
056723,000454: 07,3342 55314 TS LGYRO # RESERVES GYROS.
056724,000455: 07,3343 74357 MASK LOW8
056725,000456: 07,3344 54061 TS ITEMP1
056726,000457:
056727,000458: 07,3345 34752 CAF TWO # FORCE SIGN AGREEMENT ON INPUTS.
056728,000459: 07,3346 54157 GYROAGRE TS MPAC +3
056729,000460: 07,3347 60000 DOUBLE
056730,000461: 07,3350 60061 AD ITEMP1
056731,000462: 07,3351 54160 TS MPAC +4
056732,000463: 07,3352 00006 EXTEND
056733,000464: 07,3353 50000 INDEX A
056734,000465: 07,3354 31401 DCA 1400
056735,000466: 07,3355 52155 DXCH MPAC
056736,000467: 07,3356 07257 TC TPAGREE
056737,000468: 07,3357 52155 DXCH MPAC
056738,000469: 07,3360 50160 INDEX MPAC +4
056739,000470: 07,3361 53401 DXCH 1400
056740,000471:
056741,000472: 07,3362 10157 CCS MPAC +3
056742,000473: 07,3363 13346 TCF GYROAGRE
056743,000474:
056744,000475: 07,3364 30161 CA MPAC +5 # RESTORE CALLER'S EBANK.
056745,000476: 07,3365 54003 TS EBANK
056746,000477: 07,3366 12755 TCF MODEEXIT
056747,000478:
Page 1320 |
056749,000480: # ROUTINES TO ALLOW TORQUING BY ONLY ONE JOB AT A TIME.
056750,000481:
056751,000482: 07,3367 00006 GYROBUSY EXTEND # SAVE RETURN 2FCADR.
056752,000483: 07,3370 30134 DCA BUF2
056753,000484: 07,3371 52155 DXCH MPAC
056754,000485: 07,3372 33404 REGSLEEP CAF LGWAKE
056755,000486: 07,3373 15133 TCF JOBSLEEP
056756,000487:
056757,000488: 07,3374 11314 GWAKE CCS LGYRO # WHEN AWAKENED, SEE IF GYROS STILL BUSY.
056758,000489: 07,3375 13372 TCF REGSLEEP # IF SO, SLEEP SOME MORE.
056759,000490:
056760,000491: 07,3376 54156 TS MPAC +2
056761,000492: 07,3377 00006 EXTEND
056762,000493: 07,3400 30155 DCA MPAC
056763,000494: 07,3401 52134 DXCH BUF2 # RESTORE SWRETURN INFO.
056764,000495: 07,3402 34753 CAF ONE
056765,000496: 07,3403 13334 TCF GWAKE2
056766,000497:
056767,000498: 07,3404 17374 LGWAKE CADR GWAKE
056768,000499:
Page 1321 |
056770,000501: # GYRO-TORQUING WAITLIST TASKS.
056771,000502:
056772,000503: 07,3405 43626 STRTGYRO CS GDESELCT # DE-SELECT LAST GYRO.
056773,000504: 07,3406 00006 EXTEND
056774,000505: 07,3407 03014 WAND CHAN14
056775,000506:
056776,000507: 07,3410 03641 TC CAGETEST
056777,000508:
056778,000509: 07,3411 31314 STRTGYR2 CA LGYRO # JUMP ON PHASE COUNTER IN BITS 13-14.
056779,000510: 07,3412 00006 EXTEND
056780,000511: 07,3413 74750 MP BIT4
056781,000512: 07,3414 50000 INDEX A
056782,000513: 07,3415 13416 TCF +1
056783,000514: 07,3416 03433 TC GSELECT # =0. DO Y GYRO.
056784,000515: 07,3417 00202 OCT 00202
056785,000516:
056786,000517: 07,3420 03433 TC GSELECT # =1. DO Z GYRO.
056787,000518: 07,3421 00302 OCT 00302
056788,000519:
056789,000520: 07,3422 03431 TC GSELECT -2 # =2. DO X GYRO.
056790,000521: 07,3423 00100 OCT 00100
056791,000522:
056792,000523: 07,3424 34755 CAF ZERO # =3. DONE
056793,000524: 07,3425 55314 TS LGYRO
056794,000525: 07,3426 33404 CAF LGWAKE # WAKE A POSSIBLE SLEEPING JOB.
056795,000526: 07,3427 05137 TC JOBWAKE
056796,000527:
056797,000528: 07,3430 13232 NORESET TCF IMUFINED # DO NOT RESET POWER SUPPLY
Page 1322 |
056799,000530: 07,3431 44751 -2 CS FOUR # SPECIAL ENTRY TO REGRESS LGYRO FOR X.
056800,000531: 07,3432 27314 ADS LGYRO
056801,000532:
056802,000533: 07,3433 50002 GSELECT INDEX Q # SELECT GYRO.
056803,000534: 07,3434 30000 CAF 0 # PACKED WORD CONTAINS GYRO SELECT BITS
056804,000535: 07,3435 54064 TS ITEMP4 # AND INCREMENT TO LGYRO.
056805,000536: 07,3436 74757 MASK SEVEN
056806,000537: 07,3437 64737 AD BIT13
056807,000538: 07,3440 27314 ADS LGYRO
056808,000539: 07,3441 54003 TS EBANK
056809,000540: 07,3442 74357 MASK LOW8
056810,000541: 07,3443 54061 TS ITEMP1
056811,000542:
056812,000543: 07,3444 44757 CS SEVEN
056813,000544: 07,3445 70064 MASK ITEMP4
056814,000545: 07,3446 54064 TS ITEMP4
056815,000546:
056816,000547: 07,3447 00006 EXTEND # MOVE DP COMMAND TO RUPTREGS FOR TESTING.
056817,000548: 07,3450 50061 INDEX ITEMP1
056818,000549: 07,3451 31401 DCA 1400
056819,000550: 07,3452 52071 DXCH RUPTREG1
056820,000551:
056821,000552: 07,3453 10070 CCS RUPTREG1
056822,000553: 07,3454 13467 TCF MAJ+
056823,000554: 07,3455 13457 TCF +2
056824,000555: 07,3456 13607 TCF MAJ-
056825,000556:
056826,000557: 07,3457 10071 CCS RUPTREG2
056827,000558: 07,3460 13464 TCF MIN+
056828,000559: 07,3461 13411 TCF STRTGYR2
056829,000560: 07,3462 13604 TCF MIN-
056830,000561: 07,3463 13411 TCF STRTGYR2
056831,000562:
Page 1323 |
056833,000564: 07,3464 63520 MIN+ AD -GYROMIN # SMALL POSITIVE COMMAND. SEE IF AT LEAST
056834,000565: 07,3465 00006 EXTEND # 16 GYRO PULSES.
056835,000566: 07,3466 63411 BZMF STRTGYR2
056836,000567:
056837,000568: 07,3467 00006 MAJ+ EXTEND # DEFINITE POSITIVE OUTPUT.
056838,000569: 07,3470 33630 DCA GYROFRAC
056839,000570: 07,3471 20071 DAS RUPTREG1
056840,000571:
056841,000572: 07,3472 30064 CA ITEMP4 # SELECT POSITIVE TORQUING FOR THIS GYRO.
056842,000573: 07,3473 00006 EXTEND
056843,000574: 07,3474 05014 WOR CHAN14
056844,000575:
056845,000576: 07,3475 36074 CAF LOW7 # LEAVE NUMBER OF POSSIBLE 8192 AUGMENTS
056846,000577: 07,3476 70071 MASK RUPTREG2 # TO INITIAL COMMAND IN MAJOR PART OF LONG
056847,000578: 07,3477 56071 XCH RUPTREG2 # TERM STORAGE AND TRUNCATED FRACTION
056848,000579: 07,3500 00006 GMERGE EXTEND # IN MINOR PART. THE MAJOR PART WILL BE
056849,000580: 07,3501 74744 MP BIT8 # COUNTED DOWN TO ZERO IN THE COURSE OF
056850,000581: 07,3502 54062 TS ITEMP2 # PUTTING OUT THE ENTIRE COMMAND.
056851,000582: 07,3503 30070 CA RUPTREG1
056852,000583: 07,3504 00006 EXTEND
056853,000584: 07,3505 74743 MP BIT9
056854,000585: 07,3506 54070 TS RUPTREG1
056855,000586: 07,3507 30001 CA L
056856,000587: 07,3510 00006 EXTEND
056857,000588: 07,3511 74736 MP BIT14
056858,000589: 07,3512 26062 ADS ITEMP2 # INITIAL COMMAND.
056859,000590:
056860,000591: 07,3513 00006 EXTEND # SEE IF MORE THAN ONE PULSE TRAIN NEEDED
056861,000592: 07,3514 30071 DCA RUPTREG1 # (MORE THAN 16383 PULSES).
056862,000593: 07,3515 67747 AD MINUS1
056863,000594: 07,3516 10000 CCS A
056864,000595: 07,3517 13543 TCF LONGGYRO
056865,000596: 07,3520 77601 -GYROMIN OCT -176 # MAY BE ADJUSTED TO SPECIFY MINIMUM CMD
056866,000597: 07,3521 13525 TCF +4
056867,000598:
056868,000599: 07,3522 34736 CAF BIT14
056869,000600: 07,3523 26062 ADS ITEMP2
056870,000601: 07,3524 34755 CAF ZERO
056871,000602:
056872,000603: 07,3525 50061 +4 INDEX ITEMP1
056873,000604: 07,3526 53401 DXCH 1400
Page 1324 |
056875,000606: 07,3527 30062 CA ITEMP2 # ENTIRE COMMAND.
056876,000607: 07,3530 54047 LASTSEG TS GYROCMD
056877,000608: 07,3531 00006 EXTEND
056878,000609: 07,3532 74742 MP BIT10 # WAITLIST DT
056879,000610: 07,3533 66245 AD THREE # TRUNCATION AND PHASE UNCERTAINTIES.
056880,000611: 07,3534 05203 TC WAITLIST
056881,000612: 07,3535 E3,1474 EBANK= CDUIND
056882,000613: 07,3535 03405 16103 2CADR STRTGYRO
056883,000614:
056884,000615: 07,3537 34742 GYROEXIT CAF BIT10
056885,000616: 07,3540 00006 EXTEND
056886,000617: 07,3541 05014 WOR CHAN14
056887,000618: 07,3542 15261 TCF TASKOVER
056888,000619:
056889,000620: 07,3543 50061 LONGGYRO INDEX ITEMP1
056890,000621: 07,3544 53401 DXCH 1400 # INITIAL COMMAND OUT PLUS N AUGMENTS OF
056891,000622: 07,3545 34736 CAF BIT14 # 8192. INITIAL COMMAND IS AT LEAST 8192.
056892,000623: 07,3546 60062 AD ITEMP2
056893,000624: 07,3547 54047 TS GYROCMD
056894,000625:
056895,000626: 07,3550 00006 AUG3 EXTEND # GET WAITLIST DT TO TIME WHEN TRAIN IS
056896,000627: 07,3551 74742 MP BIT10 # ALMOST OUT.
056897,000628: 07,3552 67745 AD NEG3
056898,000629: 07,3553 05203 TC WAITLIST
056899,000630: 07,3554 E3,1474 EBANK= CDUIND
056900,000631: 07,3554 03557 16103 2CADR 8192AUG
056901,000632:
056902,000633: 07,3556 13537 TCF GYROEXIT
056903,000634:
056904,000635: 07,3557 03641 8192AUG TC CAGETEST
056905,000636:
056906,000637: 07,3560 34750 CAF BIT4
056907,000638: 07,3561 00006 EXTEND
056908,000639: 07,3562 02012 RAND CHAN12
056909,000640: 07,3563 10000 CCS A
056910,000641: 07,3564 13637 TCF IMUBAD
056911,000642: 07,3565 31314 CA LGYRO # ADD 8192 PULSES TO GYROCMD
056912,000643: 07,3566 54003 TS EBANK
056913,000644: 07,3567 74357 MASK LOW8
056914,000645: 07,3570 54061 TS ITEMP1
056915,000646:
056916,000647: 07,3571 50061 INDEX ITEMP1 # SEE IF THIS IS THE LAST AUG.
056917,000648: 07,3572 11400 CCS 1400
056918,000649: 07,3573 13577 TCF AUG2 # MORE TO COME.
056919,000650:
056920,000651: 07,3574 34736 CAF BIT14
056921,000652: 07,3575 26047 ADS GYROCMD
056922,000653: 07,3576 13531 TCF LASTSEG +1
056923,000654:
Page 1325 |
056925,000656: 07,3577 50061 AUG2 INDEX ITEMP1
056926,000657: 07,3600 55400 TS 1400
056927,000658: 07,3601 34736 CAF BIT14
056928,000659: 07,3602 26047 ADS GYROCMD
056929,000660: 07,3603 13550 TCF AUG3 # COMPUTE DT.
056930,000661:
Page 1326 |
056932,000663: 07,3604 63520 MIN- AD -GYROMIN # POSSIBLE NEGATIVE OUTPUT.
056933,000664: 07,3605 00006 EXTEND
056934,000665: 07,3606 63411 BZMF STRTGYR2
056935,000666:
056936,000667: 07,3607 00006 MAJ- EXTEND # DEFINITE NEGATIVE OUTPUT.
056937,000668: 07,3610 43630 DCS GYROFRAC
056938,000669: 07,3611 20071 DAS RUPTREG1
056939,000670:
056940,000671: 07,3612 30064 CA ITEMP4 # SELECT NEGATIVE TORQUING FOR THIS GYRO.
056941,000672: 07,3613 64743 AD BIT9
056942,000673: 07,3614 00006 EXTEND
056943,000674: 07,3615 05014 WOR CHAN14
056944,000675:
056945,000676: 07,3616 40070 CS RUPTREG1 # SET UP RUPTREGS TO FALL INTO GMERGE.
056946,000677: 07,3617 54070 TS RUPTREG1 # ALL NUMBERS PUT INTO GYROCMD ARE
056947,000678: 07,3620 40071 CS RUPTREG2 # POSITIVE - BIT9 OF CHAN 14 DETERMINES
056948,000679: 07,3621 76074 MASK LOW7 # THE SIGN OF THE COMMAND.
056949,000680: 07,3622 40000 COM
056950,000681: 07,3623 56071 XCH RUPTREG2
056951,000682: 07,3624 40000 COM
056952,000683: 07,3625 13500 TCF GMERGE
056953,000684:
056954,000685: 07,3626 01700 GDESELCT OCT 1700 # TURN OFF SELECT AND ACTIVITY BITS.
056955,000686:
056956,000687: 07,3627 00000 00034 GYROFRAC 2DEC .215 B-21
056957,000688:
Page 1327 |
056959,000690: # IMU MODE SWITCHING ROUTINES COME HERE WHEN ACTION COMPLETE.
056960,000691:
056961,000692: 07,3631 00006 ENDIMU EXTEND # MODE IS BAD IF CAGE HAS OCCURED OR IF
056962,000693: 07,3632 00011 READ DSALMOUT # ISS WARNING IS ON.
056963,000694: 07,3633 74753 MASK BIT1
056964,000695: 07,3634 10000 CCS A
056965,000696: 07,3635 13637 TCF IMUBAD
056966,000697:
056967,000698: 07,3636 13665 IMUGOOD TCF GOODEND # WITH C(A) = 0.
056968,000699:
056969,000700: 07,3637 34755 IMUBAD CAF ZERO
056970,000701: 07,3640 13662 TCF BADEND
056971,000702:
056972,000703: 07,3641 34746 CAGETEST CAF BIT6 # SUBROUTINE TO TERMINATE IMU MODE
056973,000704: 07,3642 71302 MASK IMODES30 # SWITCH IF IMU HAS BEEN CAGED.
056974,000705: 07,3643 10000 CCS A
056975,000706: 07,3644 13637 TCF IMUBAD # DIRECTLY.
056976,000707: 07,3645 00002 TC Q # WITH C(A) = +0.
056977,000708:
056978,000709: 07,3646 41302 CAGETSTQ CS IMODES30 # SKIP IF IMU NOT BEING CAGED.
056979,000710: 07,3647 74746 MASK BIT6
056980,000711: 07,3650 10000 CCS A
056981,000712: 07,3651 24002 INCR Q
056982,000713: 07,3652 00002 TC Q
056983,000714:
056984,000715: 07,3653 41302 CAGETSTJ CS IMODES30 # IF DURING MODE SWITCH INITIALIZATION
056985,000716: 07,3654 74746 MASK BIT6 # IT IS FOUND THAT THE IMU IS BEING CAGED,
056986,000717: 07,3655 10000 CCS A # SET IMUCADR TO -0 TO INDICATE OPERATION
056987,000718: 07,3656 00002 TC Q # COMPLETE BUT FAILED. RETURN IMMEDIATELY
056988,000719:
056989,000720: 07,3657 44755 CS ZERO # TO SWRETURN.
056990,000721: 07,3660 55304 TS IMUCADR
056991,000722: 07,3661 12755 TCF MODEEXIT
056992,000723:
Page 1328 |
056994,000725: # GENERALIZED MODE SWITCHING TERMINATION. ENTER AT GOODEND FOR SUCCESSFUL COMPLETION OF AN I/O OPERATION
056995,000726: # OR AT BADEND FOR AN UNSUCCESSFUL ONE. C(A) OR ARRIVAL =0 FOR IMU, 1 FOR OPTICS.
056996,000727:
056997,000728: 07,3662 54071 BADEND TS RUPTREG2 # DEVICE INDEX.
056998,000729: 07,3663 44755 CS ZERO # FOR FAILURE.
056999,000730: 07,3664 13667 TCF GOODEND +2
057000,000731:
057001,000732: 07,3665 54071 GOODEND TS RUPTREG2
057002,000733: 07,3666 44753 CS ONE # FOR SUCCESS.
057003,000734:
057004,000735: 07,3667 54072 TS RUPTREG3
057005,000736: 07,3670 50071 INDEX RUPTREG2 # SEE IF USING PROGRAM ASLEEP.
057006,000737: 07,3671 11304 CCS MODECADR
057007,000738: 07,3672 13676 TCF +4 # YES - WAKE IT UP.
057008,000739: 07,3673 13706 TCF ENDMODE # IF 0, PROGRAM NOT IN YET.
057009,000740:
057010,000741: 07,3674 00006 EXTEND
057011,000742: 07,3675 13707 BZF ENDMODE +1 # BZF = TCF IF MODECADR = -0.
057012,000743:
057013,000744: 07,3676 34755 CAF ZERO # WAKE SLEEPING PROGRAM.
057014,000745: 07,3677 50071 INDEX RUPTREG2
057015,000746: 07,3700 57304 XCH MODECADR
057016,000747: 07,3701 05137 TC JOBWAKE
057017,000748:
057018,000749: 07,3702 40072 CS RUPTREG3 # ADVANCE LOC IF SUCCESSFUL.
057019,000750: 07,3703 50064 INDEX LOCCTR
057020,000751: 07,3704 26164 ADS LOC
057021,000752:
057022,000753: 07,3705 15261 TCF TASKOVER
057023,000754:
057024,000755: 07,3706 30072 ENDMODE CA RUPTREG3 # -0 INDICATES OPERATION COMPLETE BUT
057025,000756: 07,3707 50071 +1 INDEX RUPTREG2 # UNSUCCESSFUL: -1 INDICATES COMPLETE AND
057026,000757: 07,3710 55304 TS MODECADR # SUCCESSFUL.
057027,000758: 07,3711 15261 TCF TASKOVER
057028,000759:
Page 1329 |
057030,000761: # GENERAL STALLING ROUTINE. USING PROGRAMS COME HERE TO WAIT FOR I/O COMPLETION.
057031,000762:
057032,000763: # PROGRAM DESCRIPTION DATE - 21 FEB 1967
057033,000764: # LOG SECTION IMU MODE SWITCHING
057034,000765: # MOD BY - R. MELANSON TO ADD DOCUMENTATION ASSEMBLY SUNDISK REV. 82
057035,000766:
057036,000767: # FUNCTIONAL DESCRIPTION -
057037,000768: # TO DELAY FURTHER EXECUTION OF THE CALLING ROUTINE UNTIL ITS SELECTED
057038,000769: # I/O FUNCTION IS COMPLETE. THE FOLLOWING CHECKS ON THE CALLING ROUTINE:S
057039,000770: # MODECADR ARE MADE AND ACTED UPON.
057040,000771: # 1) +0 INDICATES INCOMPLETE I/O OPERATION. CALLING ROUTINE IS PUT TO
057041,000772: # SLEEP.
057042,000773: # 2) -1 INDICATES COMPLETED I/O OPERATION. STALL BYPASSES JOBSLEEP
057043,000774: # CALL AND RETURNS TO CALLING ROUTINE AT L+3
057044,000775: # 3) -0 INDICATES COMPLETED I/O WITH FAILURE. STALL CLEARS MODECADR
057045,000776: # AND RETURNS TO CALLING ROUTINE AT L+2.
057046,000777: # 4) VALUE GREATER THAN 0 INDICATES TWO ROUTINES CALLING FOR USE OF
057047,000778: # SAME DEVICE. STALL EXITS TO ABORT WHICH EXECUTES A PROGRAM
057048,000779: # RESTART WHICH IN TURN CLEARS ALL MODECADR REGISTERS.
057049,000780:
057050,000781: # CALLING SEQUENCE -
057051,000782: # L TC BANKCALL
057052,000783: # L+1 CADR (ONE OF 5 STALL ADDRESSES I.E. IMUSTALL, OPTSTALL, RADSTALL,
057053,000784: # AOTSTALL, OR ATTSTALL)
057054,000785:
057055,000786: # NORMAL-EXIT MODE -
057056,000787: # TCF JOBSLEEP OR TCF MODEXIT
057057,000788:
057058,000789: # ALARM OR ABORT EXIT MODE -
057059,000790: # TC ABORT
057060,000791:
057061,000792: # OUTPUT -
057062,000793: # MODECADR=CADR IF JOBSLEEP
057063,000794: # MODECADR=+0 IF I/O COMPLETE
057064,000795: # BUF2=L+3 IF I/O COMPLETE AND GOOD.
057065,000796: # BUF2=L+2 IF I/O COMPLETE BUT FAILED.
057066,000797:
057067,000798: # ERASABLE INITIALIZATION -
057068,000799: # BUF2 CONTAINS RETURN ADDRESS PLUS 1,(L+2)
057069,000800: # BUF2+1 CONTAINS FBANK VALUE OF CALLING ROUTINE.
057070,000801: # MODECADR OF CALLING ROUTINE CONTAINS +0,-1,-0 OR CADR RETURN ADDRESS.
057071,000802:
057072,000803: # DEBRIS -
057073,000804: # RUPTREG2 AND CALLING ROUTINE MODECADR.
057074,000805:
057075,000806: 07,3712 34753 AOTSTALL CAF ONE # AOT.
057076,000807: 07,3713 03717 TC STALL
057077,000808:
057078,000809: 07,3714 34752 RADSTALL CAF TWO
057079,000810: 07,3715 13717 TCF STALL
057080,000811:
Page 1330 |
057082,000813: 07,3716 07,3712 OPTSTALL EQUALS AOTSTALL
057083,000814:
057084,000815: 07,3716 34755 IMUSTALL CAF ZERO # IMU.
057085,000816:
057086,000817: 07,3717 00004 STALL INHINT
057087,000818: 07,3720 54071 TS RUPTREG2 # SAVE DEVICE INDEX.
057088,000819: 07,3721 50000 INDEX A # SEE IF OPERATION COMPLETE.
057089,000820: 07,3722 11304 CCS MODECADR
057090,000821: 07,3723 13741 TCF MODABORT # ALLOWABLE STATES ARE +0, -1, AND -0.
057091,000822: 07,3724 13735 TCF MODESLP # OPERATION INCOMPLETE.
057092,000823: 07,3725 13731 TCF MODEGOOD # COMPLETE AND GOOD IF = -1.
057093,000824:
057094,000825: 07,3726 50071 MG2 INDEX RUPTREG2 # COMPLETE AND FAILED IF -0. RESET TO +0.
057095,000826: 07,3727 55304 TS MODECADR # RETURN TO CALLER.
057096,000827: 07,3730 12755 TCF MODEEXIT
057097,000828:
057098,000829: 07,3731 10000 MODEGOOD CCS A # MAKE SURE INITIAL STATE -1.
057099,000830: 07,3732 13741 TCF MODABORT
057100,000831:
057101,000832: 07,3733 24133 INCR BUF2 # IF SO, INCREMENT RETURN ADDRESS AND
057102,000833: 07,3734 13726 TCF MG2 # RETURN IMMEDIATELY, SETTING CADR = +0.
057103,000834:
057104,000835: 07,3735 04645 MODESLP TC MAKECADR # CALL FROM SWITCHABLE FIXED ONLY.
057105,000836: 07,3736 50071 INDEX RUPTREG2
057106,000837: 07,3737 55304 TS MODECADR
057107,000838: 07,3740 15133 TCF JOBSLEEP
057108,000839:
057109,000840: 07,3741 52134 MODABORT DXCH BUF2
057110,000841: 07,3742 05716 TC BAILOUT1 # TWO PROGRAMS USING THE SAME DEVICE.
057111,000842: 07,3743 01210 OCT 1210
057112,000843:
Page 1331 |
057114,000845: # CONSTANTS FOR MODE SWITCHING ROUTINES
057115,000846:
057116,000847: 07,3744 5751 BITS3&4 = OCT14
057117,000848: 07,3744 4771 BITS4&6 = OCT50
057118,000849: 07,3744 00030 BITS4-5 OCT 00030
057119,000850: 07,3745 4744 IMUSEFLG EQUALS BIT8 # INTERPRETER SWITCH 7.
057120,000851: 07,3745 77500 -COMMAX DEC -191 B-14
057121,000852: 07,3746 77477 -COMMAX- DEC -192 B-14
057122,000853: 07,3747 00074 600MS DEC 60 B-14
057123,000854: 07,3750 07,3210 IMUFIN20 = IMUFINE
057124,000855: 07,3750 31307 GOMANUR CA ATTCADR # IS KALCMANU FREE
057125,000856: 07,3751 00006 EXTEND
057126,000857: 07,3752 13755 BZF +3
057127,000858:
057128,000859: 07,3753 05652 TC POODOO # NO
057129,000860: 07,3754 01210 OCT 1210 # 2 TRYING TO USE SAME DEVICE
057130,000861:
057131,000862: 07,3755 00006 +3 EXTEND
057132,000863: 07,3756 30134 DCA BUF2
057133,000864: 07,3757 53310 DXCH ATTCADR # SAVE FINAL RETURN FOR KALCMAN3
057134,000865:
057135,000866: 07,3760 30006 CA BBANK
057136,000867: 07,3761 74757 MASK SEVEN
057137,000868: 07,3762 27310 ADS ATTCADR +1
057138,000869:
057139,000870: 07,3763 30167 CA PRIORITY
057140,000871: 07,3764 77725 MASK PRIO37
057141,000872: 07,3765 55311 TS ATTPRIO # SAVE USERS PRIO
057142,000873:
057143,000874: 07,3766 33772 CAF KALEBCON # SET EBANK FOR KALCMAN3
057144,000875: 07,3767 54003 TS EBANK
057145,000876: 07,3770 04635 TC POSTJUMP
057146,000877: 07,3771 44004 CADR KALCMAN3
057147,000878: 07,3772 03276 KALEBCON ECADR BCDU
057148,000879:
Page 1332 |
057150,000881: # PROGRAM DESCRIPTION
057151,000882: # IMU STATUS CHECK ROUTINE R02 (SUBROUTINE UTILITY)
057152,000883: # MOD NO - 1
057153,000884: # MOD BY - N.BRODEUR
057154,000885:
057155,000886: # FUNCTIONAL DESCRIPTION
057156,000887: # TO CHECK WHETHER IMU IS ON AND IF ON WHETHER IT IS ALIGNED TO AN
057157,000888: # ORIENTATION KNOWN BY THE CMC. TO REQUEST SELECTION OF THE APPROPRIATE
057158,000889: # PROGRAM IF THE IMU IS OFF OR NOT ALIGNED TO AN ORIENTATION KNOWN BY THE
057159,000890: # CMC. CALLED THROUGH BANKCALL
057160,000891:
057161,000892: # CALLING SEQUENCE -
057162,000893: # L TC BANKCALL
057163,000894: # L+1 CADR R02BOTH
057164,000895:
057165,000896: # SUBROUTINES CALLED
057166,000897: # VARALARM
057167,000898: # FLAGUP
057168,000899:
057169,000900: # NORMAL EXIT MODES
057170,000901: # AT L+2 OF CALLING SEQUENCE
057171,000902:
057172,000903: # ALARM OR ABORT EXIT MODES
057173,000904: # GOTOPOOH, WITH ALARM
057174,000905:
057175,000906: # ERASABLE INITIALIZATION REQUIRED
057176,000907: # NONE
057177,000908:
057178,000909: # DEBRIS
057179,000910: # CENTRALS - A,Q,L
057180,000911:
057181,000912: 34,3775 BANK 34
057182,000913: 04,2000 SETLOC R02
057183,000914: 04,2000 BANK
057184,000915: 04,3253 COUNT* $$/R02
057185,000916: 04,3253 00063 DEC51 DEC 51 B-14
057186,000917: 04,3254 34737 R02BOTH CAF REFSMBIT
057187,000918: 04,3255 70077 MASK FLAGWRD3
057188,000919: 04,3256 10000 CCS A
057189,000920: 04,3257 03270 TC R02ZERO # ZERO IMUS
057190,000921:
057191,000922: 04,3260 31302 CA IMODES30
057192,000923: 04,3261 74743 MASK BIT9 # IS ISS INITIALIZED
057193,000924: 04,3262 00006 EXTEND
057194,000925: 04,3263 13265 BZF +2
057195,000926: 04,3264 44750 CS BIT4 # SEND IMU ALARM CODE 210
057196,000927: 04,3265 63273 AD OCT220 # SEND REFSMM ALARM
057197,000928: 04,3266 05744 TC VARALARM
057198,000929:
057199,000930: 04,3267 06001 TC GOTOPOOH
057200,000931:
057201,000932: 04,3270 05504 R02ZERO TC UPFLAG
Page 1333 |
057203,000934: 04,3271 00007 ADRES IMUSE
057204,000935: 04,3272 14631 TCF SWRETURN
057205,000936: 04,3273 00220 OCT220 OCT 220
057206,000937:
Page 1334 |
057208,000939: # PROGRAM DESCRIPTION P06 10 FEB 67
057209,000940:
057210,000941: # TRANSFER THE ISS/CMC FROM THE OPERATE TO THE STANDBY CONDITION.
057211,000942:
057212,000943: # THE NORMAL CONDITION OF READINESS OF THE GNCS WHEN NOT IN USE IS STANDBY. IN THIS CONDITION THE IMU
057213,000944: # HEATER POWER IS ON. THE IMU OPERATE POWER IS OFF. THE COMPUTER POWER IS ON. THE OPTICS POWER IS OFF. THE
057214,000945: # CMC STANDBY ON THE MAIN AND LEB DISKYS IS ON.
057215,000946:
057216,000947: # CALLING SEQUENCE:
057217,000948: # ASTRONAUT REQUEST THROUGH DSKY V37E 06E.
057218,000949:
057219,000950: # SUBROUTINES CALLED:
057220,000951: # GOPERF1
057221,000952: # BANKCALL
057222,000953: # FLAGDOWN
057223,000954:
Page 1335 |
057225,000956: # PRESTAND PREPARES FOR STANDBY BY SNAPSHOTTING THE SCALER AND TIME1 TIME2
057226,000957: # THE LOW 5 BITS OF THE SCALER ARE INSPECTED TO INSURE COMPATABILITY
057227,000958: # BETWEEN THE SCALER READING AND THE TIME1 TIME2 READING.
057228,000959:
057229,000960: 37,2000 SETLOC P05P06
057230,000961: 37,2000 BANK
057231,000962:
057232,000963: 37,3655 0314 EBANK= TIME2SAV
057233,000964: 37,3655 COUNT* $$/P06
057234,000965:
057235,000966: 37,3655 05504 P06 TC UPFLAG # SET NODOV37 BIT
057236,000967: 37,3656 00054 ADRES NODOFLAG
057237,000968:
057238,000969: 37,3657 00004 PRESTAND INHINT
057239,000970: 37,3660 00006 EXTEND
057240,000971: 37,3661 30025 DCA TIME2 # SNAPSHOT TIME1 TIME2
057241,000972: 37,3662 52315 DXCH TIME2SAV
057242,000973: 37,3663 03714 TC SCALPREP
057243,000974: 37,3664 03657 TC PRESTAND # T1,T2,SCALER NOT COMPATIBLE
057244,000975: 37,3665 52155 DXCH MPAC # T1,T2 AND SCALER OK
057245,000976: 37,3666 52317 DXCH SCALSAVE # STORE SCALER
057246,000977: 37,3667 00004 INHINT
057247,000978: 37,3670 04616 TC BANKCALL
057248,000979: 37,3671 17175 CADR RNDREFDR # REFSMM, DRIFT, TRACK FLAGS DOWN
057249,000980:
057250,000981: 37,3672 05516 TC DOWNFLAG
057251,000982: 37,3673 00007 ADRES IMUSE # IMUSE DOWN
057252,000983: 37,3674 05516 TC DOWNFLAG
057253,000984: 37,3675 00010 ADRES RNDVZFLG # RNDVZFLG DOWN
057254,000985:
057255,000986: 37,3676 34741 CAF BIT11
057256,000987: 37,3677 00006 EXTEND
057257,000988: 37,3700 05013 WOR CHAN13 # SET STANDBY ENABLE BIT
057258,000989:
057259,000990: 37,3701 05353 TC PHASCHNG # SET RESTART TO POSTAND WHEN STANDBY
057260,000991: 37,3702 07024 OCT 07024 # RECOVERS
057261,000992: 37,3703 20000 OCT 20000
057262,000993: 37,3704 0316 EBANK= SCALSAVE
057263,000994: 37,3704 03734 76060 2CADR POSTAND
057264,000995:
057265,000996: 37,3706 34774 CAF OCT62
057266,000997: 37,3707 04616 TC BANKCALL
057267,000998: 37,3710 20623 CADR GOPERF1
057268,000999: 37,3711 13706 TCF -3
057269,001000: 37,3712 13706 TCF -4
057270,001001: 37,3713 13706 TCF -5
057271,001002:
057272,001003: 37,3714 4774 OCT62 EQUALS .5SEC # DEC 50 = OCT 62
057273,001004:
057274,001005: # THE LOW 5 BITS OF THE SCALER READS 10000 FOR THE FIRST INTERVAL AFTER A
Page 1336 |
057276,001007: # T1 INCREMENT. IF SCALPREP DETECTS THIS INTERVAL THE T1,T2 AND SCALER
057277,001008: # DATA ARE NOT COMPATABLE AND RETURN IS TO L+1 FOR ANOTHER READING OF THE
057278,001009: # DATA. OTHERWISE, THE RETURN IS TO L+2 TO PROCEED. ROUTINE ALSO PREPARES
057279,001010: # THE SCALER READING FOR COMPUTATION OF THE INCREMENT TO UPDATE T1T2. (THE
057280,001011: # 10 MS BIT (BIT 6) OF THE SCALER IS INCREMENTED 5 MS OUT OF PHASE FROM
057281,001012: # T1.) ADDITION OF 5 MS (BIT 5) TO THE SCALER READING HAS THE EFFECT OF
057282,001013: # ADJUSTING BIT 6 IN THE SCALER TO BE IN PHASE WITH BIT 1 OF T1. THE LOW 5
057283,001014: # BITS OF THE SCALER READING ARE THEN SET TO ZERO, TO TRUNCATE THE SCALER
057284,001015: # DATA TO 10 MS. RESULTS ARE STORED IN MPAC, +1.
057285,001016:
057286,001017: 37,3714 00006 SCALPREP EXTEND
057287,001018: 37,3715 22156 QXCH MPAC +2
057288,001019: 37,3716 04103 TC FINETIME +1
057289,001020: 37,3717 00003 RELINT
057290,001021: 37,3720 52155 DXCH MPAC
057291,001022: 37,3721 34747 CA BIT5 # ADD 5 MS TO THE SCALER READING.
057292,001023: 37,3722 54001 TS L
057293,001024: 37,3723 34755 CA ZERO
057294,001025: 37,3724 20155 DAS MPAC
057295,001026: 37,3725 44346 CS LOW5 # SET LOW 5 BITS OF (SCALER+5MS) TO ZERO
057296,001027: 37,3726 70155 MASK MPAC +1 # AND STORE RESULTS IN MPAC,+1.
057297,001028: 37,3727 56155 XCH MPAC +1
057298,001029: 37,3730 74346 MASK LOW5 # TEST LOW 5 BITS OF SCALER FOR THE FIRST
057299,001030: # INTERVAL AFTER THE T1 INCREMENT
057300,001031: # (NOW = 00000, SINCE BIT 5 ADDED).
057301,001032: 37,3731 10000 CCS A # IS IT 1ST INTERVAL AFTER T1 INCREMENT
057302,001033: 37,3732 24156 INCR MPAC +2 # NO
057303,001034: 37,3733 00156 TC MPAC +2 # YES
057304,001035:
057305,001036: # POSTAND RECOVERS TIME AFTER STANDBY. THE SCALER IS SNAPSHOTTED AND THE
057306,001037: # TIME1 TIME2 COUNTER IS SET TO ZERO. THE LOW 5 BITS OF THE SCALER ARE
057307,001038: # INSPECTED TO INSURE COMPATABILITY BETWEEN THE SCALER READING AND THE
057308,001039: # CLEARING OF THE TIME COUNTER. IT THEN COMPUTES THE DIFFERENCE IN SCALER
057309,001040: # VALUES (IN DP) AND ADDS THIS TO THE PREVIOUSLY SNAPSHOTTED VALUES OF
057310,001041: # TIME1 TIME2 AND PLACES THIS NEW TIME INTO THE TIME1 TIME2 COUNTER.
057311,001042:
057312,001043: 37,3734 COUNT* $$/P05
057313,001044:
057314,001045: 37,3734 44741 POSTAND CS BIT11 # RECOVER TIME AFTER STANDBY.
057315,001046: 37,3735 00006 EXTEND
057316,001047: 37,3736 03013 WAND CHAN13 # CLEAR STANDBY ENABLE BIT
057317,001048: 37,3737 00004 INHINT
057318,001049: 37,3740 34755 CA ZERO
057319,001050: 37,3741 54001 TS L
057320,001051: 37,3742 52025 DXCH TIME2 # CLEAR TIME1TIME2
057321,001052: 37,3743 03714 TC SCALPREP # STORE SCALER IN MPAC, MPAC+1
057322,001053: 37,3744 03737 TC POSTAND +3 # T1,T2,SCALER NOT COMPATIBLE
057323,001054: 37,3745 00006 EXTEND # T1,T2 AND SCALER OK
057324,001055: 37,3746 40317 DCS SCALSAVE
057325,001056: 37,3747 20155 DAS MPAC # FORM DP DIFFERENCE OF POSTSTANDBY SCALER
Page 1337 |
057327,001058: 37,3750 34742 CAF BIT10 # MINUS PRESTANDBY SCALER AND SHIFT RIGHT
057328,001059: 37,3751 07307 TC SHORTMP # 5 TO ALIGN BITS WITH TIME1 TIME2.
057329,001060: 37,3752 34755 CAF ZERO
057330,001061: 37,3753 54156 TS MPAC +2 # NEEDED FOR TP AGREE
057331,001062: 37,3754 07257 TC TPAGREE # MAKE DP DIFF AGREE
057332,001063: 37,3755 10154 CCS MPAC
057333,001064: 37,3756 03763 TC POSTCOM # IF DP DIFF NET +, NO SCALER OVERFLOW
057334,001065: 37,3757 03763 TC POSTCOM # BETWEEN PRE AND POST STANDBY.
057335,001066: 37,3760 03761 TC +1 # IF DP DIFF NET -, SCALER OVERFLOWED. ADD
057336,001067: 37,3761 34742 CAF BIT10 # BIT 10 TO HIGH DIFF TO CORRECT.
057337,001068: 37,3762 26154 ADS MPAC
057338,001069: 37,3763 00006 POSTCOM EXTEND # C(MPAC,+1) IS MAGNITUDE OF DELTA SCALER.
057339,001070: 37,3764 30315 DCA TIME2SAV # PRESTANDBY TIME1TIME2
057340,001071: 37,3765 20155 DAS MPAC
057341,001072: 37,3766 07257 TC TPAGREE # FORCE SIGN AGREEMENT
057342,001073: 37,3767 52155 DXCH MPAC # UPDATED VALUE FOR T1,T2.
057343,001074: 37,3770 20025 DAS TIME2 # LOAD UPDATED VALUE INTO T1,T2, WITH
057344,001075: 37,3771 05516 TC DOWNFLAG # CLEAR NODOFLAG
057345,001076: 37,3772 00054 ADRES NODOFLAG
057346,001077:
057347,001078: 37,3773 06001 TC GOTOPOOH
057348,001079:
End of include-file IMU_MODE_SWITCHING_ROUTINES.agc. Parent file is MAIN.agc