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. |
006338,000002: ## Copyright: Public domain.
006339,000003: ## Filename: T4RUPT_PROGRAM.agc
006340,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
006341,000005: ## It is part of the source code for the Lunar Module's (LM)
006342,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
006343,000007: ## Assembler: yaYUL
006344,000008: ## Contact: Hartmuth Gutsche <hgutsche@xplornet.com>.
006345,000009: ## Website: www.ibiblio.org/apollo.
006346,000010: ## Pages: 155-189
006347,000011: ## Mod history: 2009-05-19 HG Transcribed from page images.
006348,000012: ## 2010-12-31 JL Fixed page number comment.
006349,000013: ## 2011-01-06 JL Fixed indentation of TNONTEST. Fixed pseudo-label indentation.
006350,000014: ## 2016-12-13 RSB Proofed text comments with octopus/ProoferComments
006351,000015: ## and corrected the errors found.
006352,000016: ## 2017-01-26 RSB Back-ported comment-text fixes found while
006353,000017: ## proofing corresponding Luminary 69 file.
006354,000018: ## 2017-01-28 RSB WTIH -> WITH.
006355,000019: ## 2017-02-08 RSB Comment-text fixes identified while proofing Artemis 72.
006356,000020: ## 2017-03-03 RSB Fixed comment-text errors identified while proofing
006357,000021: ## Luminary 116.
006358,000022: ##
006359,000023: ## This source code has been transcribed or otherwise adapted from
006360,000024: ## digitized images of a hardcopy from the MIT Museum. The digitization
006361,000025: ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
006362,000026: ## the Museum. Many thanks to both. The images (with suitable reduction
006363,000027: ## in storage size and consequent reduction in image quality as well) are
006364,000028: ## available online at www.ibiblio.org/apollo. If for some reason you
006365,000029: ## find that the images are illegible, contact me at info@sandroid.org
006366,000030: ## about getting access to the (much) higher-quality images which Paul
006367,000031: ## actually created.
006368,000032: ##
006369,000033: ## Notations on the hardcopy document read, in part:
006370,000034: ##
006371,000035: ## Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
006372,000036: ## 16:27 JULY 14, 1969
Page 155 |
006374,000038: 12,2000 BANK 12
006375,000039: 06,2000 SETLOC T4RUP
006376,000040: 06,2000 BANK
006377,000041:
006378,000042: 06,2000 E6,1414 EBANK= M11
006379,000043: 06,2000 COUNT* $$/T4RPT
006380,000044: 06,2000 54016 T4RUPT TS BANKRUPT
006381,000045:
006382,000046: 06,2001 00006 EXTEND
006383,000047: 06,2002 22012 QXCH QRUPT
006384,000048:
006385,000049: 06,2003 11313 CCS DSRUPTSW # GOES 7(-1)0 AROUND AND AROUND
006386,000050: 06,2004 12010 TCF NORMT4 +1
006387,000051: 06,2005 12007 TCF NORMT4
006388,000052:
006389,000053: 06,2006 12134 TCF QUIKDSP
006390,000054:
006391,000055: 06,2007 34757 NORMT4 CAF SEVEN
006392,000056: 06,2010 54070 TS RUPTREG1
006393,000057: 06,2011 55313 TS DSRUPTSW
006394,000058:
006395,000059: 4066 BLOCK 02
006396,000060: 4000 SETLOC FFTAG10
006397,000061: 4000 BANK
006398,000062:
006399,000063: 4066 COUNT* $$/T4RPT
006400,000064: 4066 7727 100MRUPT = OCT37766 # (DEC 16374)
006401,000065: # RELTAB IS A PACKED TABLE. RELAYWORD CODE IN UPPER 4 BITS, RELAY CODE
006402,000066: # IN LOWER 5 BITS.
006403,000067:
006404,000068: 4066 04025 RELTAB OCT 04025
006405,000069: 4067 10003 OCT 10003
006406,000070: 4070 14031 OCT 14031
006407,000071: 4071 20033 OCT 20033
006408,000072: 4072 24017 OCT 24017
006409,000073: 4073 30036 OCT 30036
006410,000074: 4074 34034 OCT 34034
006411,000075: 4075 40023 OCT 40023
006412,000076: 4076 44035 OCT 44035
006413,000077: 4077 50037 OCT 50037
006414,000078: 4100 54000 OCT 54000
006415,000079: 4101 60000 RELTAB11 OCT 60000
006416,000080:
Page 156 |
006418,000082: # SWITCHED-BANK PORTION.
006419,000083:
006420,000084: 12,2000 BANK 12
006421,000085: 06,2000 SETLOC T4RUP
006422,000086: 06,2000 BANK
006423,000087:
006424,000088: 06,2012 COUNT* $$/T4RPT
006425,000089: 06,2012 11036 CDRVE CCS DSPTAB +11D
006426,000090: 06,2013 02063 TC DSPOUT
006427,000091: 06,2014 02063 TC DSPOUT
006428,000092:
006429,000093: 06,2015 57036 XCH DSPTAB +11D
006430,000094: 06,2016 74356 MASK LOW11
006431,000095: 06,2017 55036 TS DSPTAB +11D
006432,000096: 06,2020 64101 AD RELTAB11
006433,000097: 06,2021 00006 EXTEND
006434,000098: 06,2022 01010 WRITE OUT0
006435,000099: 06,2023 02071 TC HANG20
006436,000100:
Page 157 |
006438,000102: # DSPOUT PROGRAM. PUTS OUT DISPLAYS.
006439,000103:
006440,000104: 06,2024 55016 DSPOUTSB TS NOUT
006441,000105: 06,2025 44755 CS ZERO
006442,000106: 06,2026 54073 TS DSRUPTEM # SET TO -0 FOR 1ST PASS THRU DSPTAB
006443,000107: 06,2027 56776 XCH DSPCNT
006444,000108: 06,2030 64754 AD NEG0 # TO PREVENT +0
006445,000109: 06,2031 54776 TS DSPCNT
006446,000110: 06,2032 50776 DSPSCAN INDEX DSPCNT
006447,000111: 06,2033 11023 CCS DSPTAB
006448,000112: 06,2034 10776 CCS DSPCNT # IF DSPTAB ENTRY +, SKIP
006449,000113: 06,2035 12030 TCF DSPSCAN -2 # IF DSPCNT +, TRY AGAIN
006450,000114: 06,2036 12047 TCF DSPLAY # IF DSPTAB ENTRY -, DISPLAY
006451,000115: 06,2037 00012 TABLNTH OCT 12 # DEC 10 LENGTH OF DSPTAB
006452,000116: 06,2040 10073 CCS DSRUPTEM # IF DSRUPTEM=+0, 2ND PASS THRU DSPTAB
006453,000117: 06,2041 37764 120MRUPT DEC 16372 B-14 # (DSPCNT = 0). +0 INTO NOUT.
006454,000118: 06,2042 55016 TS NOUT
006455,000119: 06,2043 00002 TC Q
006456,000120: 06,2044 54073 TS DSRUPTEM # IF DSRUPTEM=-0, 1ST PASS THRU DSPTAB
006457,000121: 06,2045 32037 CAF TABLNTH # (DSPCNT=0).+0 INTO DSRUPTEM. PASS AGAIN
006458,000122: 06,2046 12031 TCF DSPSCAN -1
006459,000123:
006460,000124: 06,2047 64753 DSPLAY AD ONE
006461,000125: 06,2050 50776 INDEX DSPCNT
006462,000126: 06,2051 55023 TS DSPTAB # REPLACE POSITIVELY
006463,000127: 06,2052 74356 MASK LOW11 # REMOVE BITS 12 TO 15
006464,000128: 06,2053 54073 TS DSRUPTEM
006465,000129: 06,2054 34350 CAF HI5
006466,000130: 06,2055 50776 INDEX DSPCNT
006467,000131: 06,2056 74066 MASK RELTAB # PICK UP BITS 12 TO 15 OF RELTAB ENTRY
006468,000132: 06,2057 60073 AD DSRUPTEM
006469,000133: 06,2060 00006 EXTEND
006470,000134: 06,2061 01010 WRITE OUT0
006471,000135:
006472,000136: 06,2062 16737 TCF Q+1
006473,000137:
006474,000138: 06,2063 10101 DSPOUT CCS FLAGWRD5 # IS DSKY FLAG ON
006475,000139: 06,2064 34755 CAF ZERO # NO
006476,000140: 06,2065 12130 TCF NODSPOUT # NO
006477,000141: 06,2066 11016 CCS NOUT # YES
006478,000142: 06,2067 02024 TC DSPOUTSB
006479,000143: 06,2070 12130 TCF NODSPOUT # NO DISPLAY REQUESTS
006480,000144:
006481,000145: 06,2071 42171 HANG20 CS 14,11,9
006482,000146: 06,2072 27313 ADS DSRUPTSW
006483,000147:
006484,000148: 06,2073 37731 CAF 20MRUPT
006485,000149:
006486,000150: 06,2074 54027 SETTIME4 TS TIME4
006487,000151:
Page 158 |
006489,000153: # THE STATUS OF THE PROCEED PUSHBUTTON IS MONITORED EVERY 120 MILLISECONDS VIA THE CHANNEL 32 BIT 14 INBIT.
006490,000154: # THE STATE OF THIS INBIT IS COMPARED WITH ITS STATE DURING THE PREVIOUS T4RUPT AND IS PROCESSED AS FOLLOWS.
006491,000155: # IF PREV ON AND NOW ON - BYPASS
006492,000156: # IF PREV ON AND NOW OFF - UPDATE IMODES33
006493,000157: # IF PREV OFF AND NOW ON - UPDATE IMODES33 AND PROCESS VIA PINBALL
006494,000158: # IF PREV OFF AND NOW OFF - BYPASS
006495,000159: # THE LOGIC EMPLOYED REQUIRES ONLY 9 MCT (APPROX. 108 MICROSECONDS) OF COMPUTER TIME WHEN NO CHANGES OCCUR.
006496,000160:
006497,000161: 06,2075 31303 PROCEEDE CA IMODES33 # MONITIOR FOR PROCEED BUTTON
006498,000162: 06,2076 00006 EXTEND
006499,000163: 06,2077 06032 RXOR CHAN32
006500,000164: 06,2100 74736 MASK BIT14
006501,000165: 06,2101 00006 EXTEND
006502,000166: 06,2102 12116 BZF T4JUMP # NO CHANGE
006503,000167:
006504,000168: 06,2103 23303 LXCH IMODES33
006505,000169: 06,2104 00006 EXTEND
006506,000170: 06,2105 06001 RXOR LCHAN
006507,000171: 06,2106 55303 TS IMODES33 # UPDATE IMODES33
006508,000172: 06,2107 74736 MASK BIT14
006509,000173: 06,2110 10000 CCS A
006510,000174: 06,2111 12116 TCF T4JUMP # WAS ON - NOW OFF
006511,000175:
006512,000176: 06,2112 34355 CAF CHRPRIO # WAS OFF - NOW ON
006513,000177: 06,2113 05072 TC NOVAC
006514,000178: 06,2114 0777 EBANK= DSPCOUNT
006515,000179: 06,2114 03452 60101 2CADR PROCKEY
006516,000180:
Page 159 |
006518,000182: # JUMP TO APPROPRIATE ONCE-PER SECOND (.96 SEC ACTUALLY) ACTIVITY
006519,000183:
006520,000184: 06,2116 50070 T4JUMP INDEX RUPTREG1
006521,000185: 06,2117 12120 TCF +1
006522,000186:
006523,000187: 06,2120 03156 TC RCSMONIT
006524,000188: 06,2121 13006 TCF RRAUTCHK
006525,000189: 06,2122 12172 TCF IMUMON
006526,000190: 06,2123 13132 TCF DAPT4S
006527,000191: 06,2124 03156 TC RCSMONIT
006528,000192: 06,2125 13006 TCF RRAUTCHK
006529,000193: 06,2126 12172 TCF IMUMON
006530,000194: 06,2127 13132 TCF DAPT4S
006531,000195:
006532,000196: 06,2130 7731 20MRUPT = OCT37776 # (DEC 16382)
006533,000197:
Page 160 |
006535,000199: # ADDITIONAL ROUTINES FOR 20MS. KEYBOARD ACTIVITY
006536,000200:
006537,000201: 06,2130 00006 NODSPOUT EXTEND
006538,000202: 06,2131 01010 WRITE OUT0
006539,000203:
006540,000204: 06,2132 32041 CAF 120MRUPT # SET FOR NEXT CDRIVE
006541,000205: 06,2133 12074 TCF SETTIME4
006542,000206:
006543,000207: 06,2134 34736 QUIKDSP CAF BIT14
006544,000208: 06,2135 71313 MASK DSRUPTSW
006545,000209: 06,2136 00006 EXTEND
006546,000210: 06,2137 12165 BZF QUIKOFF # WROTE LAST TIME, NOW TURN OFF RELAYS.
006547,000211:
006548,000212: 06,2140 11016 CCS NOUT
006549,000213: 06,2141 02024 TC DSPOUTSB
006550,000214: 06,2142 12152 TCF NODSPY # NOUT=0 OR BAD RETURN FROM DSPOUTSB
006551,000215: 06,2143 44736 CS BIT14 # GOOD RETURN (WE DISPLAYED SOMETHING)
006552,000216: 06,2144 27313 QUIKRUPT ADS DSRUPTSW
006553,000217:
006554,000218: 06,2145 37731 CAF 20MRUPT
006555,000219: 06,2146 54027 TS TIME4
006556,000220:
006557,000221: 06,2147 34743 CAF BIT9
006558,000222: 06,2150 27313 ADS DSRUPTSW
006559,000223:
006560,000224: 06,2151 05270 TC RESUME
006561,000225:
006562,000226: 06,2152 00006 NODSPY EXTEND
006563,000227: 06,2153 01010 WRITE OUT0
006564,000228:
006565,000229: 06,2154 37731 SYNCT4 CAF 20MRUPT
006566,000230: 06,2155 26027 ADS TIME4
006567,000231:
006568,000232: 06,2156 34743 CAF BIT9
006569,000233: 06,2157 27313 ADS DSRUPTSW
006570,000234:
006571,000235: 06,2160 11313 CCS DSRUPTSW
006572,000236: 06,2161 05270 TC RESUME
006573,000237: 06,2162 37737 OCT37737 OCT 37737
006574,000238: 06,2163 02154 TC SYNCT4
006575,000239: 06,2164 05270 TC RESUME
006576,000240:
006577,000241: 06,2165 00006 QUIKOFF EXTEND
006578,000242: 06,2166 01010 WRITE OUT0
006579,000243: 06,2167 34736 CAF BIT14 # RESET DSRUPTSW TO SEND DISPLAY NEXT PASS
006580,000244: 06,2170 12144 TCF QUIKRUPT
006581,000245:
006582,000246: 06,2171 22400 14,11,9 OCT 22400
006583,000247:
Page 161 |
006585,000249: # PROGRAM NAME: IMUMON
006586,000250:
006587,000251: # FUNCTIONAL DESCRIPTION: THIS PROGRAM IS ENTERED EVERY 480 MS. IT DETECTS CHANGES OF THE IMU STATUS BITS IN
006588,000252: # CHANNEL 30 AND CALLS THE APPROPRIATE SUBROUTINES. THE BITS PROCESSED AND THEIR RELEVANT SUBROUTINES ARE:
006589,000253:
006590,000254: # FUNCTION BIT SUBROUTINE CALLED
006591,000255: # -------- --- -----------------
006592,000256: # TEMP IN LIMITS 15 TLIM
006593,000257: # ISS TURN-ON REQUEST 14 ITURNON
006594,000258: # IMU FAIL 13 IMUFAIL (SETISSW)
006595,000259: # IMU CDU FAIL 12 ICDUFAIL (SETISSW)
006596,000260: # IMU CAGE 11 IMUCAGE
006597,000261: # IMU OPERATE 9 IMUOP
006598,000262:
006599,000263: # THE LAST SAMPLED STATE OF THESE BITS IS LEFT IN IMODES30. ALSO, EACH SUBROUTINE CALLED FINDS THE NEW
006600,000264: # VALUE OF THE BIT IN A, WITH Q SET TO THE PROPER RETURN LOCATION, NXTIFAIL.
006601,000265:
006602,000266: # CALLING SEQUENCE: T4RUPT EVERY 480 MILLISECONDS.
006603,000267:
006604,000268: # JOBS OR TASKS INITIATED: NONE.
006605,000269:
006606,000270: # SUBROUTINES CALLED: TLIM, ITURNON, SETISSW, IMUCAGE, IMUOP.
006607,000271:
006608,000272: # ERASABLE INITIALIZATION:
006609,000273: # FRESH START OR RESTART WITH NO GROUPS ACTIVE: C(IMODES30) = OCT 37411.
006610,000274: # RESTART WITH ACTIVE GROUPS: C(IMODES30) = (B(IMODES30)AND(OCT 00035)) PLUS OCT 37400.
006611,000275: # THIS LEAVES IMU FAIL BITS INTACT.
006612,000276:
006613,000277: # ALARMS: NONE.
006614,000278:
006615,000279: # EXIT: TNONTEST.
006616,000280:
006617,000281: # OUTPUT: UPDATED IMODES30 WITH CHANGES PROCESSED BY APPROPRIATE SUBROUTINE.
006618,000282:
006619,000283: 06,2172 31302 IMUMON CA IMODES30 # SEE IF THERE HAS BEEN A CHANGE IN THE
006620,000284: 06,2173 00006 EXTEND # RELEVANT BITS OF CHAN 30.
006621,000285: 06,2174 06030 RXOR CHAN30
006622,000286: 06,2175 72761 MASK 30RDMSK
006623,000287: 06,2176 00006 EXTEND
006624,000288: 06,2177 12227 BZF TNONTEST # NO CHANGE IN STATUS.
006625,000289:
006626,000290: 06,2200 54070 TS RUPTREG1 # SAVE BITS WHICH HAVE CHANGED.
006627,000291: 06,2201 23302 LXCH IMODES30 # UPDATE IMODES30.
006628,000292: 06,2202 00006 EXTEND
006629,000293: 06,2203 06001 RXOR LCHAN
006630,000294: 06,2204 55302 TS IMODES30
006631,000295:
006632,000296: 06,2205 44753 CS ONE
006633,000297: 06,2206 56070 XCH RUPTREG1
006634,000298: 06,2207 00006 EXTEND
Page 162 |
006636,000300: 06,2210 62514 BZMF TLIM # CHANGE IN IMU TEMP.
006637,000301: 06,2211 12213 TCF NXTIFBIT # BEGIN BIT SCAN.
006638,000302:
006639,000303: 06,2212 64753 -1 AD ONE # (RE-ENTERS HERE FROM NXTIFAIL.)
006640,000304: 06,2213 24070 NXTIFBIT INCR RUPTREG1 # ADVANCE BIT POSITION NUMBER.
006641,000305: 06,2214 60000 +1 DOUBLE
006642,000306: 06,2215 54000 TS A # SKIP IF OVERFLOW.
006643,000307: 06,2216 12213 TCF NXTIFBIT # LOOK FOR BIT.
006644,000308:
006645,000309: 06,2217 56071 XCH RUPTREG2 # SAVE OVERFLOW-CORRECTED DATA.
006646,000310: 06,2220 50070 INDEX RUPTREG1 # SELECT NEW VALUE OF THIS BIT.
006647,000311: 06,2221 34736 CAF BIT14
006648,000312: 06,2222 71302 MASK IMODES30
006649,000313: 06,2223 50070 INDEX RUPTREG1
006650,000314: 06,2224 02755 TC IFAILJMP
006651,000315:
006652,000316: 06,2225 10071 NXTIFAIL CCS RUPTREG2 # PROCESS ANY ADDITIONAL CHANGES.
006653,000317: 06,2226 12212 TCF NXTIFBIT -1
006654,000318:
Page 163 |
006656,000320: # PROGRAM NAME: TNONTEST.
006657,000321:
006658,000322: # FUNCTIONAL DESCRIPTION: THIS PROGRAM HONORS REQUESTS FOR ISS INITIALIZATION. ISS TURN-ON (CHANNEL 30 BIT 14)
006659,000323: # AND ISS OPERATE (CHANNEL 30 BIT 9) REQUESTS ARE TREATED AS A PAIR AND PROCESSING TAKES PLACE .480 SECONDS
006660,000324: # AFTER EITHER ONE APPEARS. THIS INITIALIZATION TAKES ON ONE OF THE FOLLOWING THREE FORMS:
006661,000325:
006662,000326: # 1) ISS TURN-ON: IN THIS SITUATION THE COMPUTER IS OPERATING WHEN THE ISS IS TURNED ON. NOMINALLY,
006663,000327: # BOTH ISS TURN-ON AND ISS OPERATE APPEAR. THE PLATFORM IS CAGED FOR 90 SECONDS AND THE ICDU'S ZEROED
006664,000328: # SO THAT AT THE END OF THE PROCESS THE GIMBAL LOCK MONITOR WILL FUNCTION PROPERLY.
006665,000329:
006666,000330: # 2) ICDU INITIALIZATION: IN THIS CASE THE COMPUTER WAS PROBABLY TURNED ON WITH THE ISS IN OPERATE OR
006667,000331: # A FRESH START WAS DONE WITH THE ISS IN OPERATE. IN THIS CASE ONLY ISS OPERATE IS ON. THE ICDU'S ARE
006668,000332: # ZEROED SO THE GIMBAL LOCK MONITOR WILL FUNCTION. AN EXCEPTION IS IF THE ISS IS IN GIMBAL LOCK AFTER
006669,000333: # A RESTART, THE ICDU'S WILL NOT BE ZEROED.
006670,000334:
006671,000335: # 3) RESTART WITH RESTARTABLE PROGRAM USING THE IMU: IN THIS CASE, NO INITIALIZATION TAKES PLACE SINCE
006672,000336: # IT IS ASSUMED THAT THE USING PROGRAM DID THE INITIALIZATION AND THEREFORE T4RUPT SHOULD NOT INTERFERE.
006673,000337:
006674,000338: # IMODES30 BIT 7 IS SET = 1 BY THE FIRST BIT (CHANNEL 30 BIT 14 OR 9) WHICH ARRIVES. FOLLOWING THIS. TNONTEST IS
006675,000339: # ENTERED, FINDS BIT 7 = 1 BUT BIT 8 = 0, SO IT SETS BIT 8 = 1 AND EXITS. THE NEXT TIME IT FINDS BIT 8 = 1 AND
006676,000340: # PROCEEDS, SETTING BITS 8 AND 7 = 0. AT PROCTNON, IF ISS TURN-ON REQUEST IS PRESENT, THE ISS IS CAGED (ZERO +
006677,000341: # COARSE). IF ISS OPERATE IS NOT PRESENT PROGRAM ALARM 00213 IS ISSUED. AT THE END OF A 90 SECOND CAGE, BIT 2
006678,000342: # OF IMODES30 IS TESTED. IF IT IS = 1, ISS TURN-ON WAS NOT PRESENT FOR THE ENTIRE 90 SECONDS. IN THAT CASE, IF
006679,000343: # THE ISS TURN-ON REQUEST IS PRESENT THE 90 SECOND WAIT IS REPEATED, OTHERWISE NO ACTION OCCURS UNLESS A PROGRAM
006680,000344: # WAS WAITING FOR THE INITIALIZATION IN WHICH CASE THE PROGRAM IS GIVEN AN IMUSTALL ERROR RETURN. IF THE DELAY
006681,000345: # WENT PROPERLY, THE ISS DELAY OUTBIT IS SENT AND THE ICDU'S ZEROED. A TASK IS INITIATED TO REMOVE THE PIPA FAIL
006682,000346: # INHIBIT BIT IN 10.24 SECONDS. IF A MISSION PROGRAM WAS WAITING IT IS INFORMED VIA ENDIMU.
006683,000347:
006684,000348: # AT PROCTNON, IF ONLY ISS OPERATE IS PRESENT (OPONLY), THE CDU'S ARE ZEROED UNLESS THE PLATFORM IS IN COARSE
006685,000349: # ALIGN (= GIMBAL LOCK HERE) OR A MISSION PROGRAM IS USING THE IMU (IMUSEFLG = 1).
006686,000350:
006687,000351: # CALLING SEQUENCE: T4RUPT EVERY 480 MILLISECONDS AFTER IMUMON.
006688,000352:
006689,000353: # JOBS OR TASKS INITIATED: 1) ENDTNON, 90 SECONDS AFTER CAGING STARTED. 2) ISSUP, 4 SECONDS AFTER CAGING DONE.
006690,000354: # 3) PFAILOK, 10.24 SECONDS AFTER INITIALIZATION COMPLETED. 4) UNZ2, 320 MILLISECONDS AFTER ZEROING
006691,000355: # STARTED.
006692,000356:
006693,000357: # SUBROUTINES CALLED: CAGESUB, CAGESUB2, ZEROICDU, ENDIMU, IMUBAD, NOATTOFF, SETISSW, VARDELAY.
006694,000358:
006695,000359: # ERASABLE INITIALIZATION: SEE IMUMON.
006696,000360:
006697,000361: # ALARMS: PROGRAM ALARM 00213 IF ISS TURN-ON REQUESTED WITHOUT ISS OPERATE.
006698,000362:
006699,000363: # EXIT: ENDTNON EXITS TO C33TEST. TASKS HAVING TO DO WITH INITIALIZATION EXIT AS FOLLOWS: MISSION PROGRAM
006700,000364: # WAITING AND INITIALIZATION COMPLETE, EXIT TO ENDIMU, MISSION PROGRAM WAITING AND INITIALIZATION FAILED, EXIT TO
006701,000365: # IMUBAD, IMU NOT IN USE, EXIT TO TASKOVER.
006702,000366:
006703,000367: # OUTPUT: ISS INITIALIZED.
006704,000368:
006705,000369: 06,2227 41302 TNONTEST CS IMODES30 # AFTER PROCESSING ALL CHANGES, SEE IF IT
Page 164 |
006707,000371: 06,2230 74745 MASK BIT7 # IS TIME TO ACT ON A TURN-ON SEQUENCE.
006708,000372: 06,2231 10000 CCS A
006709,000373: 06,2232 12374 TCF C33TEST # NO - EXAMINE CHANNEL 33.
006710,000374:
006711,000375: 06,2233 34744 CAF BIT8 # SEE IF FIRST SAMPLE OR SECOND.
006712,000376: 06,2234 71302 MASK IMODES30
006713,000377: 06,2235 10000 CCS A
006714,000378: 06,2236 12242 TCF PROCTNON # REACT AFTER SECOND SAMPLE.
006715,000379:
006716,000380: 06,2237 34744 CAF BIT8 # IF FIRST SAMPLE, SET BIT TO REACT NEXT
006717,000381: 06,2240 27302 ADS IMODES30 # TIME.
006718,000382: 06,2241 12374 TCF C33TEST
006719,000383:
006720,000384: # PROCESS IMU TURN-ON REQUESTS AFTER WAITING 1 SAMPLE FOR ALL SIGNALS TO ARRIVE.
006721,000385:
006722,000386: 06,2242 42777 PROCTNON CS BITS7&8
006723,000387: 06,2243 71302 MASK IMODES30
006724,000388: 06,2244 55302 TS IMODES30
006725,000389: 06,2245 74736 MASK BIT14 # SEE IF TURN-ON REQUEST.
006726,000390: 06,2246 10000 CCS A
006727,000391: 06,2247 12347 TCF OPONLY # OPERATE ON ONLY.
006728,000392:
006729,000393: 06,2250 41302 CS IMODES30 # IF TURN-ON REQUEST, WE SHOULD HAVE IMU
006730,000394: 06,2251 74743 MASK BIT9 # OPERATE.
006731,000395: 06,2252 10000 CCS A
006732,000396: 06,2253 12256 TCF +3
006733,000397:
006734,000398: 06,2254 05567 TC ALARM # ALARM IF NOT.
006735,000399: 06,2255 00213 OCT 213
006736,000400:
006737,000401: 06,2256 02735 +3 TC CAGESUB
006738,000402: 06,2257 33005 CAF 90SECS
006739,000403: 06,2260 05203 TC WAITLIST
006740,000404: 06,2261 E6,1414 EBANK= M11
006741,000405: 06,2261 02266 14106 2CADR ENDTNON
006742,000406:
006743,000407: 06,2263 12374 TCF C33TEST
006744,000408:
006745,000409: 06,2264 33005 RETNON CAF 90SECS
006746,000410: 06,2265 05224 TC VARDELAY
006747,000411:
006748,000412: 06,2266 44752 ENDTNON CS BIT2 # RESET TURN-ON REQUEST FAIL BIT.
006749,000413: 06,2267 71302 MASK IMODES30
006750,000414: 06,2270 57302 XCH IMODES30
006751,000415: 06,2271 74752 MASK BIT2 # IF IT WAS OFF, SEND ISS DELAY COMPLETE.
006752,000416: 06,2272 00006 EXTEND
006753,000417: 06,2273 12306 BZF ENDTNON2
006754,000418:
006755,000419: 06,2274 34736 CAF BIT14 # IF IT WAS ON AND TURN-ON REQUEST NOW
Page 165 |
006757,000421: 06,2275 71302 MASK IMODES30 # PRESENT, RE-ENTER 90 SEC DELAY IN WL.
006758,000422: 06,2276 00006 EXTEND
006759,000423: 06,2277 12264 BZF RETNON
006760,000424:
006761,000425: 06,2300 40074 CS FLAGWRD0 # IF IT IS NOT ON NOW, SEE IF A PROG WAS
006762,000426: 06,2301 74744 MASK IMUSEBIT # WAITING.
006763,000427: 06,2302 10000 CCS A
006764,000428: 06,2303 15261 TCF TASKOVER
006765,000429: 06,2304 04635 TC POSTJUMP
006766,000430: 06,2305 17637 CADR IMUBAD # UNSUCCESSFUL TURN-ON.
006767,000431:
006768,000432: 06,2306 34735 ENDTNON2 CAF BIT15 # SEND ISS DELAY COMPLETE.
006769,000433: 06,2307 00006 EXTEND
006770,000434: 06,2310 05012 WOR CHAN12
006771,000435:
006772,000436: 06,2311 04674 TC IBNKCALL # TURN OFF NO ATT LAMP.
006773,000437: 06,2312 17266 CADR NOATTOFF
006774,000438:
006775,000439: 06,2313 05457 UNZ2 TC ZEROICDU
006776,000440:
006777,000441: 06,2314 44763 CS BITS4&5 # REMOVE ZERO AND COARSE.
006778,000442: 06,2315 00006 EXTEND
006779,000443: 06,2316 03012 WAND CHAN12
006780,000444:
006781,000445: 06,2317 34741 CAF BIT11 # WAIT 10 SECS FOR CTRS TO FIND GIMBALS
006782,000446: 06,2320 05224 TC VARDELAY
006783,000447:
006784,000448: 06,2321 42774 ISSUP CS OCT54 # REMOVE CAGING, IMU FAIL INHIBIT, AND
006785,000449: 06,2322 71302 MASK IMODES30 # ICDUFAIL INHIBIT FLAGS.
006786,000450: 06,2323 55302 TS IMODES30
006787,000451:
006788,000452: 06,2324 44746 CS BIT6 # ENABLE DAP
006789,000453: 06,2325 71303 MASK IMODES33
006790,000454: 06,2326 55303 TS IMODES33
006791,000455:
006792,000456: 06,2327 40076 CS FLAGWRD2 # TEST DRIFTFLG: IF ON, DO NOTHING BECAUSE
006793,000457: 06,2330 74735 MASK DRFTBIT # IMUCOMP SHOULD BE ALL SET UP (RESTART
006794,000458: 06,2331 00006 EXTEND # WITH IMUSE DOWN). IF OFF, SET DRIFTFLG
006795,000459: 06,2332 12336 BZF +4 # AND 1/PIPADT TO GET FREEFALL IMUCOMP
006796,000460: 06,2333 26076 ADS FLAGWRD2 # GOING (FRESH START OR ISS TURN-ON).
006797,000461: 06,2334 30025 CA TIME1
006798,000462: 06,2335 57075 XCH 1/PIPADT # CANNOT GET HERE IF RESTART WITH IMUSE UP
006799,000463:
006800,000464: 06,2336 02703 TC SETISSW # ISS WARNING MIGHT HAVE BEEN INHIBITED.
006801,000465:
006802,000466: 06,2337 44735 CS BIT15 # REMOVE IMU DELAY COMPLETE DISCRETE.
006803,000467: 06,2340 00006 EXTEND
006804,000468: 06,2341 03012 WAND CHAN12
006805,000469:
006806,000470: 06,2342 35003 CAF 4SECS # DONT ENABLE PROG ALARM ON PIP FAIL FOR
Page 166 |
006808,000472: 06,2343 05203 TC WAITLIST # ANOTHER 4 SECS.
006809,000473: 06,2344 E3,1474 EBANK= CDUIND
006810,000474: 06,2344 03254 16103 2CADR PFAILOK
006811,000475:
006812,000476: 06,2346 15261 TCF TASKOVER
006813,000477:
006814,000478: 06,2347 34750 OPONLY CAF BIT4 # IF OPERATE ON ONLY, AND WE ARE IN COARSE
006815,000479: 06,2350 00006 EXTEND # ALIGN, DONT ZERO THE CDUS BECAUSE WE
006816,000480: 06,2351 02012 RAND CHAN12 # MIGHT BE IN GIMBAL LOCK
006817,000481: 06,2352 10000 CCS A
006818,000482: 06,2353 12374 TCF C33TEST
006819,000483:
006820,000484: 06,2354 34744 CAF IMUSEBIT # OTHERWISE, ZERO THE COUNTERS.
006821,000485: 06,2355 70074 MASK FLAGWRD0 # UNLESS SOMEONE IS USING THE IMU.
006822,000486: 06,2356 10000 CCS A
006823,000487: 06,2357 12374 TCF C33TEST
006824,000488:
006825,000489: 06,2360 02746 TC CAGESUB2 # SET TURNON FLAGS.
006826,000490:
006827,000491: 06,2361 04674 ISSZERO TC IBNKCALL # TURN OFF NO ATT LAMP
006828,000492: 06,2362 17266 CADR NOATTOFF # IMU CAGE OFF ENTRY
006829,000493:
006830,000494: 06,2363 34747 CAF BIT5 # ISS CDU ZERO
006831,000495: 06,2364 00006 EXTEND
006832,000496: 06,2365 05012 WOR CHAN12
006833,000497:
006834,000498: 06,2366 05457 TC ZEROICDU
006835,000499: 06,2367 34746 CAF BIT6 # WAIT 300 MS FOR AGS TO RECEIVE SIGNAL.
006836,000500: 06,2370 05203 TC WAITLIST
006837,000501: 06,2371 E6,1414 EBANK= M11
006838,000502: 06,2371 02313 14106 2CADR UNZ2
006839,000503:
006840,000504: 06,2373 12374 TCF C33TEST
006841,000505:
Page 167 |
006843,000507: # PROGRAM NAME: C33TEST
006844,000508:
006845,000509: # FUNCTIONAL DESCRIPTION: THIS PROGRAM MONITORS THREE FLIP-FLOP INBITS OF CHANNEL 33 AND CALLS THE APPROPRIATE
006846,000510: # SUBROUTINE TO PROCESS A CHANGE. IT IS ANALOGOUS TO IMUMON, WHICH MONITORS CHANNEL 30, EXCEPT THAT IT READS
006847,000511: # CHANNEL 33 WITH A WAND INSTRUCTION BECAUSE A 'WRITE' PULSE IS REQUIRED TO RESET THE FLIP-FLOPS. THE BITS
006848,000512: # PROCESSED AND THE SUBROUTINES CALLED ARE:
006849,000513: # BIT FUNCTION SUBROUTINE
006850,000514: # --- -------- ----------
006851,000515: # 13 PIPA FAIL PIPFAIL
006852,000516: # 12 DOWNLINK TOO FAST DNTMFAST
006853,000517: # 11 UPLINK TOO FAST UPTMFAST
006854,000518:
006855,000519: # UPON ENTRY TO THE SUBROUTINE, THE NEW BIT STATE IS IN A.
006856,000520:
006857,000521: # CALLING SEQUENCE: EVERY 480 MILLISECONDS AFTER TNONTEST.
006858,000522:
006859,000523: # JOBS OR TASKS INITIATED: NONE.
006860,000524:
006861,000525: # SUBROUTINES CALLED: PIPFAIL, DNTMFAST AND UPTMFAST ON BIT CHANGES.
006862,000526:
006863,000527: # ERASABLE INITIALIZATION: C(IMODES33) = OCT 16000 ON A FRESH START OR RESTART, THEREFORE, THESE ALARMS WILL
006864,000528: # REAPPEAR IF THE CONDITIONS PERSIST.
006865,000529:
006866,000530: # ALARMS: NONE.
006867,000531:
006868,000532: # EXIT: GLOCKMON.
006869,000533:
006870,000534: # OUTPUT: UPDATED BITS 13, 12 AND 11 OF IMODES33 WITH CHANGES PROCESSED.
006871,000535:
006872,000536: 06,2374 31303 C33TEST CA IMODES33 # SEE IF RELEVANT CHAN33 BITS HAVE
006873,000537: 06,2375 75026 MASK 33RDMSK
006874,000538: 06,2376 54001 TS L # CHANGED.
006875,000539: 06,2377 35026 CAF 33RDMSK
006876,000540: 06,2400 00006 EXTEND
006877,000541: 06,2401 03033 WAND CHAN33 # RESETS FLIP-FLOP INPUTS
006878,000542: 06,2402 00006 EXTEND
006879,000543: 06,2403 06001 RXOR LCHAN
006880,000544: 06,2404 00006 EXTEND
006881,000545: 06,2405 12434 BZF GLOCKMON # ON NO CHANGE.
006882,000546:
006883,000547: 06,2406 54070 TS RUPTREG1 # SAVE BITS WHICH HAVE CHANGED.
006884,000548: 06,2407 23303 LXCH IMODES33
006885,000549: 06,2410 00006 EXTEND
006886,000550: 06,2411 06001 RXOR LCHAN
006887,000551: 06,2412 55303 TS IMODES33 # UPDATED IMODES33.
006888,000552:
006889,000553: 06,2413 34755 CAF ZERO
006890,000554: 06,2414 56070 XCH RUPTREG1
006891,000555: 06,2415 60000 DOUBLE
Page 168 |
006893,000557: 06,2416 12421 TCF NXTIBT +1 # SCAN FOR BIT CHANGES.
006894,000558:
006895,000559: 06,2417 64753 -1 AD ONE
006896,000560: 06,2420 24070 NXTIBT INCR RUPTREG1
006897,000561: 06,2421 60000 +1 DOUBLE
006898,000562: 06,2422 54000 TS A # (CODING IDENTICAL TO CHAN 30).
006899,000563: 06,2423 12420 TCF NXTIBT
006900,000564:
006901,000565: 06,2424 56071 XCH RUPTREG2
006902,000566: 06,2425 50070 INDEX RUPTREG1 # GET NEW VALUE OF BIT WHICH CHANGED.
006903,000567: 06,2426 34737 CAF BIT13
006904,000568: 06,2427 71303 MASK IMODES33
006905,000569: 06,2430 50070 INDEX RUPTREG1
006906,000570: 06,2431 02763 TC C33JMP
006907,000571: 06,2432 10071 NXTFL33 CCS RUPTREG2 # PROCESS POSSIBLE ADDITIONAL CHANGES.
006908,000572: 06,2433 12417 TCF NXTIBT -1
006909,000573:
Page 169 |
006911,000575: # PROGRAM NAME: GLOCKMON
006912,000576:
006913,000577: # FUNCTIONAL DESCRIPTION: THIS PROGRAM MONITORS THE CDUZ COUNTER TO DETERMINE WHETHER THE ISS IS IN GIMBAL LOCK
006914,000578: # AND TAKES ACTION IF IT IS. THREE REGIONS OF MIDDLE GIMBAL ANGLE (MGA) ARE USED:
006915,000579:
006916,000580: # 1) ABS(MGA) LESS THAN OR EQUAL TO 70 DEGREES - NORMAL MODE.
006917,000581: # 2) ABS(MGA) GREATER THAN 70 DEGREES AND LESS THAN OR EQUAL TO 85 DEGREES - GIMBAL LOCK LAMP TURNED ON.
006918,000582: # 3) ABS(MGA) GREATER THAN 85 DEGREES - ISS PUT IN COARSE ALIGN AND NO ATT LAMP TURNED ON.
006919,000583:
006920,000584: # CALLING SEQUENCE: EVERY 480 MILLISECONDS AFTER C33TEST.
006921,000585:
006922,000586: # JOBS OR TASKS INITIATED: NONE.
006923,000587:
006924,000588: # SUBROUTINES CALLED: 1) SETCOARS WHEN ABS(MGA) GREATER THAN 85 DEGREES AND ISS NOT IN COARSE ALIGN.
006925,000589: # 2) LAMPTEST BEFORE TURNING OFF GIMBAL LOCK LAMP.
006926,000590:
006927,000591: # ERASABLE INITIALIZATION:
006928,000592: # 1) FRESH START OR RESTART WITH NO GROUPS ACTIVE: C(CDUZ) = 0, IMODES30 BIT 6 = 0, IMODES33 BIT 1 = 0.
006929,000593: # 2) RESTART WITH GROUPS ACTIVE: SAME AS FRESH START EXCEPT C(CDUZ) NOT CHANGED SO GIMBAL MONITOR
006930,000594: # PROCEEDS AS BEFORE.
006931,000595:
006932,000596: # ALARMS: 1) MGA REGION (2) CAUSES GIMBAL LOCK LAMP TO BE LIT.
006933,000597: # 2) MGA REGION (3) CAUSES THE ISS TO BE PUT IN COARSE ALIGN AND THE NO ATT LAMP TO BE LIT IF EITHER NOT
006934,000598: # SO ALREADY.
006935,000599:
006936,000600: 06,2434 10034 GLOCKMON CCS CDUZ
006937,000601: 06,2435 12441 TCF GLOCKCHK # SEE IF MAGNITUDE OF MGA IS GREATER THAN
006938,000602: 06,2436 12465 TCF SETGLOCK # 70 DEGREES.
006939,000603: 06,2437 12441 TCF GLOCKCHK
006940,000604: 06,2440 12465 TCF SETGLOCK
006941,000605:
006942,000606: 06,2441 62512 GLOCKCHK AD -70DEGS
006943,000607: 06,2442 00006 EXTEND
006944,000608: 06,2443 62464 BZMF SETGLOCK -1 # NO LOCK.
006945,000609:
006946,000610: 06,2444 62513 AD -15DEGS # SEE IF ABS(MGA) GREATER THAN 85 DEGREES.
006947,000611: 06,2445 00006 EXTEND
006948,000612: 06,2446 62462 BZMF NOGIMRUN
006949,000613:
006950,000614: 06,2447 34750 CAF BIT4 # IF SO, SYSTEM SHOULD BE IN COARSE ALIGN
006951,000615: 06,2450 00006 EXTEND # TO PREVENT GIMBAL RUNAWAY.
006952,000616: 06,2451 02012 RAND CHAN12
006953,000617: 06,2452 10000 CCS A
006954,000618: 06,2453 12462 TCF NOGIMRUN
006955,000619:
006956,000620: 06,2454 04674 TC IBNKCALL
006957,000621: 06,2455 17144 CADR SETCOARS
006958,000622:
006959,000623: 06,2456 36242 CAF SIX # ENABLE ISS ERROR COUNTERS IN 60 MS
006960,000624: 06,2457 05203 TC WAITLIST
Page 170 |
006962,000626: 06,2460 E3,1474 EBANK= CDUIND
006963,000627: 06,2460 03140 16103 2CADR CA+ECE
006964,000628:
006965,000629: 06,2462 34746 NOGIMRUN CAF BIT6 # TURN ON GIMBAL LOCK LAMP.
006966,000630: 06,2463 12465 TCF SETGLOCK
006967,000631:
006968,000632: 06,2464 34755 -1 CAF ZERO
006969,000633: 06,2465 61036 SETGLOCK AD DSPTAB +11D # SEE IF PRESENT STATE OF GIMBAL LOCK LAMP
006970,000634: 06,2466 74746 MASK BIT6 # AGREES WITH DESIRED STATE BY HALF ADDING
006971,000635: 06,2467 00006 EXTEND # THE TWO.
006972,000636: 06,2470 15270 BZF GLOCKOK # OK AS IS.
006973,000637:
006974,000638: 06,2471 71036 MASK DSPTAB +11D # IF OFF, DONT TURN ON IF IMU BEING CAGED.
006975,000639: 06,2472 10000 CCS A
006976,000640: 06,2473 12507 TCF GLAMPTST # TURN OFF UNLESS LAMP TEST IN PROGRESS.
006977,000641:
006978,000642: 06,2474 34746 CAF BIT6
006979,000643: 06,2475 71302 MASK IMODES30
006980,000644: 06,2476 10000 CCS A
006981,000645: 06,2477 15270 TCF GLOCKOK
006982,000646:
006983,000647: 06,2500 41036 GLINVERT CS DSPTAB +11D # INVERT GIMBAL LOCK LAMP.
006984,000648: 06,2501 74746 MASK BIT6
006985,000649: 06,2502 64735 AD BIT15 # TO INDICATE CHANGE IN DSPTAB +11D.
006986,000650: 06,2503 57036 XCH DSPTAB +11D
006987,000651: 06,2504 72162 MASK OCT37737
006988,000652: 06,2505 27036 ADS DSPTAB +11D
006989,000653: 06,2506 15270 TCF GLOCKOK
006990,000654:
006991,000655: 06,2507 02766 GLAMPTST TC LAMPTEST # TURN OFF UNLESS LAMP TEST IN PROGRESS.
006992,000656: 06,2510 15270 TCF GLOCKOK
006993,000657: 06,2511 12500 TCF GLINVERT
006994,000658:
006995,000659: 06,2512 63434 -70DEGS DEC -.38888 # -70 DEGREES SCALED IN HALF-REVOLUTIONS.
006996,000660: 06,2513 75252 -15DEGS DEC -.08333
006997,000661:
Page 171 |
006999,000663: # PROGRAM NAME: TLIM.
007000,000664:
007001,000665: # FUNCTIONAL DESCRIPTION: THIS PROGRAM MAINTAINS THE TEMP LAMP (BIT 4 OF CHANNEL 11) ON THE DSKY TO AGREE WITH
007002,000666: # THE TEMP SIGNAL FROM THE ISS (BIT 15 OF CHANNEL 30). HOWEVER, THE LIGHT WILL NOT BE TURNED OFF IF A LAMP TEST
007003,000667: # IS IN PROGRESS.
007004,000668:
007005,000669: # CALLING SEQUENCE: CALLED BY IMUMON ON A CHANGE OF BIT 15 OF CHANNEL 30.
007006,000670:
007007,000671: # JOBS OR TASKS INITIATED: NONE.
007008,000672:
007009,000673: # SUBROUTINES CALLED: LAMPTEST.
007010,000674:
007011,000675: # ERASABLE INITIALIZATION: FRESH START AND RESTART TURN THE TEMP LAMP OFF.
007012,000676:
007013,000677: # ALARMS: TEMP LAMP TURNED ON WHEN IMU TEMP GOES OUT OF LIMITS.
007014,000678:
007015,000679: # EXIT: NXTIFAIL.
007016,000680:
007017,000681: # OUTPUT: SERVICE OF TEMP LAMP. IN A, EXCEPT FOR TLIM.
007018,000682:
007019,000683: 06,2514 74733 TLIM MASK POSMAX # REMOVE BIT FROM WORD OF CHANGES AND SET
007020,000684: 06,2515 54071 TS RUPTREG2 # DSKY TEMP LAMP ACCORDINGLY.
007021,000685:
007022,000686: 06,2516 11302 CCS IMODES30
007023,000687: 06,2517 12525 TCF TEMPOK
007024,000688: 06,2520 12525 TCF TEMPOK
007025,000689:
007026,000690: 06,2521 34750 CAF BIT4 # TURN ON LAMP.
007027,000691: 06,2522 00006 EXTEND
007028,000692: 06,2523 05011 WOR DSALMOUT
007029,000693: 06,2524 12225 TCF NXTIFAIL
007030,000694:
007031,000695: 06,2525 02766 TEMPOK TC LAMPTEST # IF TEMP NOW OK, DONT TURN OFF LAMP IF
007032,000696: 06,2526 12225 TCF NXTIFAIL # LAMP TEST IN PROGRESS.
007033,000697:
007034,000698: 06,2527 44750 CS BIT4
007035,000699: 06,2530 00006 EXTEND
007036,000700: 06,2531 03011 WAND DSALMOUT # TURN OFF LAMP
007037,000701: 06,2532 12225 TCF NXTIFAIL
007038,000702:
Page 172 |
007040,000704: # PROGRAM NAME: ITURNON.
007041,000705:
007042,000706: # FUNCTIONAL DESCRIPTION: THIS PROGRAM IS CALLED BY IMUMON WHEN A CHANGE OF BIT 14 OF CHANNEL 30 (ISS TURN-ON
007043,000707: # REQUEST) IS DETECTED. UPON ENTRY, ITURNON CHECKS IF A TURN-ON DELAY SEQUENCE HAS FAILED, AND IF SO, IT EXITS.
007044,000708: # IF NOT, IT CHECKS WHETHER THE TURN-ON REQUEST CHANGE IS TO ON OR OFF. IF ON, IT SETS BIT7 OF IMODES30 TO 1 SO
007045,000709: # THAT TNONTEST WILL INITIATE THE ISS INITIALIZATION SEQUENCE. IF OFF, THE TURN-ON DELAY SIGNAL, CHANNEL 12 BIT
007046,000710: # 15, IS CHECKED AND IF IT IS ON, ITURNON EXITS. IF THE DELAY SIGNAL IS OFF, PROGRAM ALARM 00207 IS ISSUED, BIT 2
007047,000711: # OF IMODES30 IS SET TO 1 AND THE PROGRAM EXITS.
007048,000712:
007049,000713: # THE SETTING OF BIT 2 OF IMODES30 (ISS DELAY SEQUENCE FAIL) INHIBITS THIS ROUTINE AND IMUOP FROM
007050,000714: # PROCESSING ANY CHANGES. THIS BIT WILL BE RESET BY THE ENDTNON ROUTINE WHEN THE CURRENT 90 SECOND DELAY PERIOD
007051,000715: # ENDS.
007052,000716:
007053,000717: # CALLING SEQUENCE: FROM IMUMOM WHEN ISS TURN-ON REQUEST CHANGES STATE.
007054,000718:
007055,000719: # JOBS OR TASKS INITIATED: NONE.
007056,000720:
007057,000721: # SUBROUTINES CALLED: ALARM, IF THE ISS TURN-ON REQUEST IS NOT PRESENT FOR 90 SECONDS.
007058,000722:
007059,000723: # ERASABLE INITIALIZATION: FRESH START AND RESTART SET BIT 15 OF CHANNEL 12 AND BITS 2 AND 7 OF IMODES30 TO 0,
007060,000724: # AND BIT 14 OF IMODES30 TO 1.
007061,000725:
007062,000726: # ALARMS: PROGRAM ALARM 00207 IS ISSUED IF THE ISS TURN-ON REQUEST SIGNAL IS NOT PRESENT FOR 90 SECONDS.
007063,000727:
007064,000728: # EXIT: NXTIFAIL.
007065,000729:
007066,000730: # OUTPUT: BIT 7 OF IMODES30 TO START ISS INITIALIZATION, OR BIT 2 OF IMODES30 AND PROGRAM ALARM 00207 TO INDICATE
007067,000731: # A FAILED TURN-ON SEQUENCE.
007068,000732:
007069,000733: 06,2533 34752 ITURNON CAF BIT2 # IF DELAY REQUEST HAS GONE OFF
007070,000734: 06,2534 71302 MASK IMODES30 # PREMATURELY, DO NOT PROCESS ANY CHANGES
007071,000735: 06,2535 10000 CCS A # UNTIL THE CURRENT 90 SEC WAIT EXPIRES.
007072,000736: 06,2536 12225 TCF NXTIFAIL
007073,000737:
007074,000738: 06,2537 34736 CAF BIT14 # SEE IF JUST ON OR OFF.
007075,000739: 06,2540 71302 MASK IMODES30
007076,000740: 06,2541 00006 EXTEND
007077,000741: 06,2542 12556 BZF ITURNON2 # IF JUST ON.
007078,000742:
007079,000743: 06,2543 34735 CAF BIT15
007080,000744: 06,2544 00006 EXTEND # SEE IF DELAY PRESENT DISCRETE HAS BEEN
007081,000745: 06,2545 02012 RAND CHAN12 # SENT. IF SO, ACTION COMPLETE
007082,000746: 06,2546 00006 EXTEND
007083,000747: 06,2547 12551 BZF +2
007084,000748: 06,2550 12225 TCF NXTIFAIL
007085,000749:
007086,000750: 06,2551 34752 CAF BIT2 # IF NOT, SET BIT TO INDICATE REQUEST NOT
007087,000751: 06,2552 27302 ADS IMODES30 # PRESENT FOR FULL DURATION.
007088,000752: 06,2553 05567 TC ALARM
007089,000753: 06,2554 00207 OCT 207
007090,000754: 06,2555 12225 TCF NXTIFAIL
007091,000755:
Page 173 |
007093,000757: 06,2556 41302 ITURNON2 CS IMODES30 # SET BIT7 TO INDICATE WAIT OF 1 SAMPLE
007094,000758: 06,2557 74745 MASK BIT7
007095,000759: 06,2560 27302 ADS IMODES30
007096,000760: 06,2561 32564 CAF RRINIT
007097,000761: 06,2562 54110 TS RADMODES
007098,000762: 06,2563 12225 TCF NXTIFAIL
007099,000763:
007100,000764: 06,2564 00102 RRINIT OCT 00102
007101,000765:
Page 174 |
007103,000767: # PROGRAM NAME: IMUCAGE.
007104,000768:
007105,000769: # FUNCTIONAL DESCRIPTION: THIS PROGRAM PROCESSES CHANGES OF THE IMUCAGE INBIT, CHANNEL 30 BIT 11. IF THE BIT
007106,000770: # CHANGES TO 0 (CAGE BUTTON PRESSED), THE ISS IS CAGED (ICDU ZERO + COARSE ALIGN + NO ATT LAMP) UNTIL THE
007107,000771: # ASTRONAUT SELECTS ANOTHER PROGRAM TO ALIGN THE ISS. ANY PULSE TRAINS TO THE ICDU'S AND GYRO'S ARE TERMINATED,
007108,000772: # THE ASSOCIATED OUTCOUNTERS ARE ZEROED AND THE GYRO'S ARE DE-SELECTED. NO ACTION OCCURS WHEN THE BUTTON IS
007109,000773: # RELEASED (INBIT CHANGES TO 1).
007110,000774:
007111,000775: # CALLING SEQUENCE: BY IMUMON WHEN IMU CAGE BIT CHANGES.
007112,000776:
007113,000777: # JOBS OR TASKS INITIATED: NONE.
007114,000778:
007115,000779: # SUBROUTINES CALLED: CAGESUB.
007116,000780:
007117,000781: # ERASABLE INITIALIZATION: FRESH START AND RESTART SET BIT 11 OF IMODES30 TO 1.
007118,000782:
007119,000783: # ALARMS: NONE.
007120,000784:
007121,000785: # EXIT: NXTIFAIL.
007122,000786:
007123,000787: # OUTPUT: ISS CAGED, COUNTERS ZEROED, PULSE TRAINS TERMINATED AND NO ATT LAMP LIT.
007124,000788:
007125,000789: 06,2565 10000 IMUCAGE CCS A # NO ACTION IF GOING OFF.
007126,000790: 06,2566 12361 TCF ISSZERO
007127,000791: 06,2567 43002 CS OCT77000 # TERMINATE ICDU, RCDU, GYRO PULSE TRAINS
007128,000792: 06,2570 00006 EXTEND
007129,000793: 06,2571 03014 WAND CHAN14
007130,000794:
007131,000795: 06,2572 42776 CS OCT272 # KNOCK DOWN DISPLAY INERTIAL DATA, IMU
007132,000796: 06,2573 00006 EXTEND # ERROR COUNTER ENABLE, ZERO ICDU, COARSE
007133,000797: 06,2574 03012 WAND CHAN12 # ALIGN ENABLE, RR ERROR COUNTER ENABLE.
007134,000798:
007135,000799: 06,2575 44745 CS ENGONBIT # INSURE ENGONFLG IS CLEAR.
007136,000800: 06,2576 70101 MASK FLAGWRD5
007137,000801: 06,2577 54101 TS FLAGWRD5
007138,000802: 06,2600 44355 CS PRIO30 # TURN ENGINE OFF.
007139,000803: 06,2601 00006 EXTEND
007140,000804: 06,2602 02011 RAND DSALMOUT
007141,000805: 06,2603 64736 AD BIT14
007142,000806: 06,2604 00006 EXTEND
007143,000807: 06,2605 01011 WRITE DSALMOUT # FORCE BIT14=1, BIT13=0.
007144,000808:
007145,000809: 06,2606 02743 TC CAGESUB1
007146,000810:
007147,000811: 06,2607 04674 TC IBNKCALL # KNOCK DOWN TRACK, REFSMMAT, DRIFT FLAGS
007148,000812: 06,2610 17175 CADR RNDREFDR
007149,000813:
007150,000814: 06,2611 44755 CS ZERO
007151,000815: 06,2612 54050 TS CDUXCMD
007152,000816: 06,2613 54051 TS CDUYCMD
Page 175 |
007154,000818: 06,2614 54052 TS CDUZCMD
007155,000819: 06,2615 54047 TS GYROCMD
007156,000820:
007157,000821: 06,2616 43001 CS OCT740 # HAVING WAITED AT LEAST 27 MCT FROM
007158,000822: 06,2617 00006 EXTEND # GYRO PULSE TRAIN TERMINATION, WE CAN
007159,000823: 06,2620 03014 WAND CHAN14 # DE-SELECT THE GYROS
007160,000824: 06,2621 12225 TCF NXTIFAIL
007161,000825:
Page 176 |
007163,000827: # PROGRAM NAME: IMUOP.
007164,000828:
007165,000829: # FUNCTIONAL DESCRIPTION: THIS PROGRAM PROCESSES CHANGES IN THE ISS OPERATE DISCRETE, BIT 9 OF CHANNEL 30.
007166,000830: # IF THE INBIT CHANGES TO 0, INDICATING ISS ON, IMUOP GENERALLY SETS BIT 7 OF IMODES30 TO 1 TO REQUEST ISS
007167,000831: # INITIALIZATION VIA TNONTEST. AN EXCEPTION IS DURING A FAILED ISS DELAY DURING WHICH BIT 2 OF IMODES30 IS SET
007168,000832: # TO 1 AND NO FURTHER INITIALIZATION IS REQUIRED. WHEN THE INBIT CHANGES TO 1, INDICATING ISS OFF, IMUSEFLG IS
007169,000833: # TESTED TO SEE IF ANY PROGRAM WAS USING THE ISS. IF SO, PROGRAM ALARM 00214 IS ISSUED.
007170,000834:
007171,000835: # CALLING SEQUENCE: BY IMUMON WHEN BIT 9 OF CHANNEL 30 CHANGES.
007172,000836:
007173,000837: # JOBS OR TASKS INITIATED: NONE.
007174,000838: #
007175,000839: # SUBROUTINES CALLED: ALARM, IF ISS IS TURNED OFF WHILE IN USE.
007176,000840:
007177,000841: # ERASABLE INITIALIZATION: ON FRESH START AND RESTART, BIT 9 OF IMODES30 IS SET TO 1 EXCEPT WHEN THE GIMBAL LOCK
007178,000842: # LAMP IS ON, IN WHICH CASE IT IS SET TO 0. THIS PREVENTS ICDU ZERO BY TNONTEST WITH THE ISS IN GIMBAL LOCK.
007179,000843:
007180,000844: # ALARMS: PROGRAM ALARM 00214 IF THE ISS IS TURNED OFF WHILE IN USE.
007181,000845:
007182,000846: # EXIT: NXTIFAIL.
007183,000847:
007184,000848: # OUTPUT: ISS INITIALIZATION REQUEST (IMODES30 BIT 7) OR PROGRAM ALARM 00214.
007185,000849:
007186,000850: 06,2622 00006 IMUOP EXTEND
007187,000851: 06,2623 12643 BZF IMUOP2
007188,000852:
007189,000853: 06,2624 41303 CS IMODES33 # DISABLE DAP
007190,000854: 06,2625 74746 MASK BIT6
007191,000855: 06,2626 27303 ADS IMODES33
007192,000856:
007193,000857: 06,2627 04674 TC IBNKCALL # KNOCK DOWN TRACK, REFSMMAT, DRIFT FLAGS
007194,000858: 06,2630 17175 CADR RNDREFDR
007195,000859:
007196,000860: 06,2631 42777 CS BITS7&8 # KNOCK DOWN RENDEZVOUS, IMUUSE FLAGS
007197,000861: 06,2632 70074 MASK FLAGWRD0
007198,000862: 06,2633 56074 XCH FLAGWRD0 # IF GOING OFF, ALARM IF PROG USING IMU.
007199,000863: 06,2634 40000 COM
007200,000864: 06,2635 74744 MASK IMUSEFLG
007201,000865: 06,2636 10000 CCS A
007202,000866: 06,2637 12225 TCF NXTIFAIL
007203,000867:
007204,000868: 06,2640 05567 TC ALARM
007205,000869: 06,2641 00214 OCT 214
007206,000870: 06,2642 12225 TCF NXTIFAIL
007207,000871:
007208,000872: 06,2643 34752 IMUOP2 CAF BIT2 # SEE IF FAILED ISS TURN-ON SEQ IN PROG.
007209,000873: 06,2644 71302 MASK IMODES30
007210,000874: 06,2645 10000 CCS A
007211,000875: 06,2646 12225 TCF NXTIFAIL # IF SO, DONT PROCESS UNTIL PRESENT 90
007212,000876: 06,2647 12556 TCF ITURNON2 # SECONDS EXPIRES.
007213,000877:
Page 177 |
007215,000879: # PROGRAM NAME: PIPFAIL
007216,000880:
007217,000881: # FUNCTIONAL DESCRIPTION: THIS PROGRAM PROCESSES CHANGES OF BIT 13 OF CHANNEL 33, PIPA FAIL. IT SETS BIT 10 OF
007218,000882: # IMODES30 TO AGREE. IT CALLS SETISSW IN CASE A PIPA FAIL NECESSITATES AN ISS WARNING. IF NOT, I.E., IMODES30
007219,000883: # BIT 1 = 1, AND A PIPA FAIL IS PRESENT AND THE ISS IS NOT BEING INITIALIZED, PROGRAM ALARM 00212 IS ISSUED.
007220,000884:
007221,000885: # CALLING SEQUENCE: BY C33TEST ON CHANGES OF CHANNEL 33 BIT 13.
007222,000886:
007223,000887: # JOBS OR TASKS INITIATED: NONE.
007224,000888:
007225,000889: # SUBROUTINES CALLED: 1) SETISSW, AND 2) ALARM (SEE FUNCTIONAL DESCRIPTION).
007226,000890:
007227,000891: # ERASABLE INITIALIZATION: SEE IMUMON FOR INITIALIZATION OF IMODES30. THE RELAVANT BITS ARE 5, 7, 8, 9, AND 10.
007228,000892:
007229,000893: # ALARMS: PROGRAM ALARM 00212 IF PIPA FAIL IS PRESENT BUT NEITHER ISS WARNING IS TO BE ISSUED NOR THE ISS IS
007230,000894: # BEING INITIALIZED.
007231,000895:
007232,000896: # EXIT: NXTFL33.
007233,000897:
007234,000898: # OUTPUT: PROGRAM ALARM 00212 AND ISS WARNING MAINTENANCE.
007235,000899:
007236,000900: 06,2650 10000 PIPFAIL CCS A # SET BIT10 IN IMODES30 SO ALL ISS WARNING
007237,000901: 06,2651 34742 CAF BIT10 # INFO IS IN ONE REGISTER.
007238,000902: 06,2652 57302 XCH IMODES30
007239,000903: 06,2653 73004 MASK -BIT10
007240,000904: 06,2654 27302 ADS IMODES30
007241,000905:
007242,000906: 06,2655 02703 TC SETISSW
007243,000907:
007244,000908: 06,2656 41302 CS IMODES30 # IF PIP FAIL DOESNT LIGHT ISS WARNING, DO
007245,000909: 06,2657 74753 MASK BIT1 # A PROGRAM ALARM IF IMU OPERATING BUT NOT
007246,000910: 06,2660 10000 CCS A # CAGED OR BEING TURNED ON.
007247,000911: 06,2661 12432 TCF NXTFL33
007248,000912:
007249,000913: 06,2662 31302 CA IMODES30
007250,000914: 06,2663 73000 MASK OCT1720
007251,000915: 06,2664 10000 CCS A
007252,000916: 06,2665 12432 TCF NXTFL33 # ABOVE CONDITION NOT MET.
007253,000917:
007254,000918: 06,2666 05567 TC ALARM
007255,000919: 06,2667 00212 OCT 212
007256,000920: 06,2670 12432 TCF NXTFL33
007257,000921:
Page 178 |
007259,000923: # PROGRAM NAMES: DNTMFAST, UPTMFAST
007260,000924:
007261,000925: # FUNCTIONAL DESCRIPTION: THESE PROGRAMS PROCESS CHANGES OF BITS 12 AND 11 OF CHANNEL 33. IF A BIT CHANGES TO A
007262,000926: # 0, A PROGRAM ALARM IS ISSUED. THE ALARMS ARE:
007263,000927:
007264,000928: # BIT ALARM CAUSE
007265,000929: # --- ----- -----
007266,000930: # 12 01105 DOWNLINK TOO FAST
007267,000931: # 11 01106 UPLINK TOO FAST
007268,000932:
007269,000933: # CALLING SEQUENCE: BY C33TEST ON A BIT CHANGE.
007270,000934:
007271,000935: # SUBROUTINES CALLED: ALARM, IF A BIT CHANGES TO A 0.
007272,000936:
007273,000937: # ERASABLE INITIALIZATION: FRESH START OR RESTART, BITS 12 AND 11 OF IMODES33 ARE SET TO 1.
007274,000938:
007275,000939: # ALARMS: SEE FUNCTIONAL DESCRIPTION.
007276,000940:
007277,000941: # EXIT: NXTFL33.
007278,000942:
007279,000943: # OUTPUT: PROGRAM ALARM ON A BIT CHANGE TO 0.
007280,000944:
007281,000945: 06,2671 10000 DNTMFAST CCS A # DO PROG ALARM IF TM TOO FAST.
007282,000946: 06,2672 12432 TCF NXTFL33
007283,000947:
007284,000948: 06,2673 05567 TC ALARM
007285,000949: 06,2674 01105 OCT 1105
007286,000950: 06,2675 12432 TCF NXTFL33
007287,000951:
007288,000952: 06,2676 10000 UPTMFAST CCS A # SAME AS DNLINK TOO FAST WITH DIFFERENT
007289,000953: 06,2677 12432 TCF NXTFL33 # ALARM CODE.
007290,000954:
007291,000955: 06,2700 05567 TC ALARM
007292,000956: 06,2701 01106 OCT 1106
007293,000957: 06,2702 12432 TCF NXTFL33
Page 179 |
007295,000959: # PROGRAM NAME: SETISSW
007296,000960:
007297,000961: # FUNCTIONAL DESCRIPTION: THIS PROGRAM TURNS THE ISS WARNING LAMP ON AND OFF (CHANNEL 11 BIT 1 = 1 FOR ON,
007298,000962: # 0 FOR OFF) DEPENDING ON THE STATUS OF IMODES30 BITS 13 (IMU FAIL) AND 4 (INHIBIT IMU FAIL), 12 (ICDU FAIL) AND
007299,000963: # 3 (INHIBIT ICDU FAIL), AND 10 (PIPA FAIL) AND 1 (INHIBIT PIPA FAIL). THE LAMP IS LEFT ON IF A LAMP TEST IS IN
007300,000964: # PROGRESS.
007301,000965:
007302,000966: # CALLING SEQUENCE: CALLED BY IMUMON ON CHANGES TO IMU FAIL AND ICDU FAIL. CALLED BY IFAILOK AND PFAILOK UPON
007303,000967: # REMOVAL OF THE FAIL INHIBITS. CALLED BY PIPFAIL WHEN THE PIPA FAIL DISCRETE CHANGES. IT IS CALLED BY PIPUSE
007304,000968: # SINCE THE PIPA FAIL PROGRAM ALARM MAY NECESSITATE AN ISS WARNING, AND LIKEWISE BY PIPFREE WHEN THE ALARM DEPARTS
007305,000969: # AND IT IS CALLED BY IMUZERO3 AND ISSUP AFTER THE FAIL INHIBITS HAVE BEEN REMOVED.
007306,000970:
007307,000971: # JOBS OR TASKS INITIATED: NONE.
007308,000972:
007309,000973: # SUBROUTINES CALLED: NONE.
007310,000974:
007311,000975: # ERASABLE INITIALIZATION:
007312,000976:
007313,000977: # 1) IMODES30 - SEE IMUMON.
007314,000978: # 2) IMODES33 BIT 1 = 0 (LAMP TEST NOT IN PROGRESS).
007315,000979:
007316,000980: # ALARMS: ISS WARNING.
007317,000981:
007318,000982: # THE FOLLOWING PROGRAM ALARMS WILL SHOW WHICH FAILURE CAUSED THE ISS WARN
007319,000983: # PROGRAM ALARM 00777 PIPA FAIL
007320,000984: # PROGRAM ALARM 03777 ICDU FAIL
007321,000985: # PROGRAM ALARM 04777 ICDU, PIPA FAILS
007322,000986: # PROGRAM ALARM 07777 IMU FAIL
007323,000987: # PROGRAM ALARM 10777 IMU, PIPA FAILS
007324,000988: # PROGRAM ALARM 13777 IMU, ICDU FAILS
007325,000989: # PROGRAM ALARM 14777 IMU, ICDU, PIPA FAILS
007326,000990:
007327,000991: # EXIT: VIA Q.
007328,000992:
007329,000993: # OUTPUT: ISS WARNING LAMP SET PROPERLY.
007330,000994:
007331,000995: 06,2703 34761 SETISSW CAF OCT15 # SET ISS WARNING USING THE FAIL BITS IN
007332,000996: 06,2704 71302 MASK IMODES30 # BITS 13, 12, AND 10 OF IMODES30 AND THE
007333,000997: 06,2705 00006 EXTEND # FAILURE INHIBIT BITS IN POSITIONS
007334,000998: 06,2706 74742 MP BIT10 # 4, 3, AND 1.
007335,000999: 06,2707 31302 CA IMODES30
007336,001000: 06,2710 00006 EXTEND
007337,001001: 06,2711 04001 ROR LCHAN # 0 INDICATES FAILURE
007338,001002: 06,2712 40000 COM
007339,001003: 06,2713 75025 MASK OCT15000
007340,001004: 06,2714 10000 CCS A
007341,001005: 06,2715 12726 TCF ISSWON # FAILURE.
007342,001006:
007343,001007: 06,2716 34753 ISSWOFF CAF BIT1 # DONT TURN OFF ISS WARNING IF LAMP TEST
007344,001008: 06,2717 71303 MASK IMODES33 # IN PROGRESS.
Page 180 |
007346,001010: 06,2720 10000 CCS A
007347,001011: 06,2721 00002 TC Q
007348,001012:
007349,001013: 06,2722 44753 CS BIT1
007350,001014: 06,2723 00006 EXTEND
007351,001015: 06,2724 03011 WAND DSALMOUT
007352,001016: 06,2725 00002 TC Q
007353,001017:
007354,001018: 06,2726 00006 ISSWON EXTEND
007355,001019: 06,2727 22066 QXCH ITEMP6
007356,001020: 06,2730 05744 TC VARALARM # TELL EVERYONE WHAT CAUSED THE ISS WARNING
007357,001021: 06,2731 34753 CAF BIT1
007358,001022: 06,2732 00006 EXTEND
007359,001023: 06,2733 05011 WOR DSALMOUT
007360,001024: 06,2734 00066 TC ITEMP6
007361,001025:
007362,001026: 06,2735 43003 CAGESUB CS BITS6&15 # SET OUTBITS AND INTERNAL FLAGS FOR
007363,001027: 06,2736 00006 EXTEND # SYSTEM TURN-ON OR CAGE. DISABLE THE
007364,001028: 06,2737 03012 WAND CHAN12 # ERROR COUNTER AND REMOVE IMU DELAY COMP.
007365,001029: 06,2740 34763 CAF BITS4&5 # SEND ZERO AND COARSE.
007366,001030: 06,2741 00006 EXTEND
007367,001031: 06,2742 05012 WOR CHAN12
007368,001032:
007369,001033: 06,2743 41036 CAGESUB1 CS DSPTAB +11D # TURN ON NO ATT LAMP
007370,001034: 06,2744 72773 MASK OC40010
007371,001035: 06,2745 27036 ADS DSPTAB +11D
007372,001036:
007373,001037: 06,2746 41302 CAGESUB2 CS IMODES30 # SET FLAGS TO INDICATE CAGING OR TURN-ON
007374,001038: 06,2747 72775 MASK OCT75 # AND INHIBIT ALL ISS WARNING INFO
007375,001039: 06,2750 27302 ADS IMODES30
007376,001040:
007377,001041: 06,2751 41303 CS IMODES33 # DISABLE DAP AUTO AND HOLD MODES
007378,001042: 06,2752 74746 MASK BIT6
007379,001043: 06,2753 27303 ADS IMODES33
007380,001044:
007381,001045: 06,2754 00002 TC Q
007382,001046:
007383,001047: 06,2755 06,2703 IMUFAIL EQUALS SETISSW
007384,001048: 06,2755 06,2703 ICDUFAIL EQUALS SETISSW
007385,001049:
Page 181 |
007387,001051: # JUMP TABLES AND CONSTANTS.
007388,001052:
007389,001053: 06,2755 12533 IFAILJMP TCF ITURNON # CHANNEL 30 DISPATCH.
007390,001054: 06,2756 12703 TCF IMUFAIL
007391,001055: 06,2757 12703 TCF ICDUFAIL
007392,001056: 06,2760 12565 TCF IMUCAGE
007393,001057: 06,2761 76400 30RDMSK OCT 76400 # (BIT 10 NOT SAMPLED HERE).
007394,001058: 06,2762 12622 TCF IMUOP
007395,001059:
007396,001060: 06,2763 12650 C33JMP TCF PIPFAIL # CHANNEL 33 DISPATCH.
007397,001061: 06,2764 12671 TCF DNTMFAST
007398,001062: 06,2765 12676 TCF UPTMFAST
007399,001063:
007400,001064: # SUBROUTINE TO SKIP IF LAMP TEST NOT IN PROGRESS.
007401,001065: 06,2766 41303 LAMPTEST CS IMODES33 # BIT 1 OF IMODES33 = 1 IF LAMP TEST IN
007402,001066: 06,2767 74753 MASK BIT1 # PROGRESS.
007403,001067: 06,2770 10000 CCS A
007404,001068: 06,2771 24002 INCR Q
007405,001069: 06,2772 00002 TC Q
007406,001070:
007407,001071: 06,2773 5026 33RDMSK EQUALS PRIO16
007408,001072: 06,2773 40010 OC40010 OCT 40010
007409,001073: 06,2774 00054 OCT54 OCT 54
007410,001074: 06,2775 00075 OCT75 OCT 75
007411,001075: 06,2776 00272 OCT272 OCT 00272
007412,001076: 06,2777 00300 BITS7&8 OCT 300
007413,001077: 06,3000 01720 OCT1720 OCT 1720
007414,001078: 06,3001 00740 OCT740 OCT 00740
007415,001079: 06,3002 5025 OCT15000 EQUALS PRIO15
007416,001080: 06,3002 77000 OCT77000 OCT 77000
007417,001081: 06,3003 40040 BITS6&15 OCT 40040
007418,001082: 06,3004 76777 -BIT10 OCT -1000
007419,001083:
007420,001084: 06,3005 21450 90SECS DEC 9000 B-14
007421,001085: 06,3006 5751 120MS = OCT14 # (DEC12)
007422,001086: 06,3006 5270 GLOCKOK EQUALS RESUME
007423,001087:
Page 182 |
007425,001089: # PROGRAM NAME_ RRAUTCHK
007426,001090:
007427,001091: # FUNCTIONAL DESCRIPTION_
007428,001092: # RRAUTCHK IS THE RENDEZVOUS RADAR INBIT MONITOR. INITIALLY THE RR
007429,001093: # POWER ON AUTO (CHAN 33 BIT 2) INBIT IS CHECKED. IF NO CHANGE, THE
007430,001094: # PROGRAM EXITS TO RRCDUCHK. IF A CHANGE, RADMODES IS UPDATED
007431,001095: # AND A CHECK MADE IF RR POWER HAS JUST COME ON. IF JUST OFF, A CHECK
007432,001096: # IS MADE TO SEE IF A PROGRAM WAS USING THE RR (STATE BIT 7). IF NO,
007433,001097: # THE PROGRAM EXITS TO RRCDUCHK. IF YES, PROGRAM ALARM 00514
007434,001098: # IS REQUESTED BEFORE EXITING TO RRCDUCHK. IF RR POWER HAS JUST COME
007435,001099: # ON, A CHECK IS MADE TO SEE IF A PROGRAM WAS USING THE RR (STATE BIT 7).
007436,001100: # IF YES, THE PROGRAM EXITS TO RRCDUCHK WITHOUT REQUESTING THE TURN-ON
007437,001101: # SEQUENCE. IF NO, RADMODES IS UPDATED TO INDICATE RR CDU ZERO AND
007438,001102: # RR TURN-ON SEQUENCE (BITS 13, 1). A 10 MILLISECOND WAITLIST CALL
007439,001103: # IS THEN SET FOR RRTURNON BEFORE THE PROGRAM EXITS TO NORRGMON.
007440,001104:
007441,001105: # CALLING SEQUENCE_
007442,001106: # T4RUPT EVERY 480 MILLISECONDS
007443,001107:
007444,001108: # ERASABLE INITIALIZATION REQUIRED_
007445,001109: # RADMODES, STATE
007446,001110:
007447,001111: # SUBROUTINES CALLED_
007448,001112: # WAITLIST
007449,001113:
007450,001114: # JOBS OR TASKS INITIATED_
007451,001115: # RRTURNON
007452,001116:
007453,001117: # ALARMS_ PROGRAM ALARM 00514 - RADAR GOES OUT OF AUTO MODE WHILE BEING
007454,001118: # USED
007455,001119:
007456,001120: # EXIT_ RRCDUCHK, NORRGMON
007457,001121:
007458,001122: 06,3006 30110 RRAUTCHK CA RADMODES # SEE IF CHANGE IN RR AUTO MODE BIT.
007459,001123: 06,3007 00006 EXTEND
007460,001124: 06,3010 06033 RXOR CHAN33
007461,001125: 06,3011 74752 MASK AUTOMBIT
007462,001126: 06,3012 00006 EXTEND
007463,001127: 06,3013 13037 BZF RRCDUCHK
007464,001128:
007465,001129: 06,3014 22110 LXCH RADMODES # UPDATE RADMODES.
007466,001130: 06,3015 00006 EXTEND
007467,001131: 06,3016 06001 RXOR LCHAN
007468,001132: 06,3017 73033 MASK OCT05776 # CLR CONT. DES., REMODE, REPOS, CDUZERO,
007469,001133: 06,3020 54110 TS RADMODES # AND TURNON BITS.
007470,001134: 06,3021 74752 MASK BIT2 # SEE IF JUST ON.
007471,001135: 06,3022 10000 CCS A
007472,001136: 06,3023 13034 TCF RRCDUCHK -3 # OFF. GO DISABLE RR CDU ERROR COUNTERS.
007473,001137: 06,3024 37663 CA OCT10001 # SET RRCDUZRO AND TURNON BITS.
007474,001138: 06,3025 26110 ADS RADMODES
007475,001139:
Page 183 |
007477,001141: 06,3026 34753 CAF ONE
007478,001142: 06,3027 05203 TC WAITLIST
007479,001143: 06,3030 E7,1456 EBANK= LOSCOUNT
007480,001144: 06,3030 02062 52107 2CADR RRTURNON
007481,001145:
007482,001146: 06,3032 13132 TCF NORRGMON
007483,001147:
007484,001148: 06,3033 05776 OCT05776 OCT 5776
007485,001149:
Page 184 |
007487,001151: # PROGRAM NAME_ RRCDUCHK
007488,001152:
007489,001153: # FUNCTIONAL DESCRIPTION_
007490,001154: # RRCDUCHK CHECKS FOR RR CDU FAIL (CHAN 30 BIT 7). INITIALLY THE
007491,001155: # RR CDU FAIL BIT IS SAMPLED (CHAN 30 BIT 7). IF NO CHANGE, THE
007492,001156: # PROGRAM EXITS TO RRGIMON. IF A CHANGE, THE RR AUTO MODE
007493,001157: # (RADMODES BIT 2) BIT IS CHECKED. IF NOT IN RR AUTO MODE, THE
007494,001158: # PROGRAM EXITS TO NORRGMON. IF IN AUTO MODE, RADMODES BIT 7
007495,001159: # (RR CDU OK) IS UPDATED AND IF P-20 IS OPERATING PROGRAM ALARM 00515 IS
007496,001160: # REQUESTED. CONTROL IS TRANSFERRED TO SETTRKF TO UPDATE
007497,001161: # THE TRACKER FAIL LAMP (DSPTAB+11D BIT 8). CONTROL RETURNS TO
007498,001162: # RRGIMON.
007499,001163:
007500,001164: # CALLING SEQUENCE_
007501,001165: # EVERY 480 MILLISECONDS FROM RRAUTCHK (VIA T4RUPT) UNLESS A
007502,001166: # TURN-ON SEQUENCE HAS JUST BEEN INITIATED.
007503,001167:
007504,001168: # ERASABLE INITIALIZATION REQUIRED_
007505,001169: # RADMODES
007506,001170:
007507,001171: # SUBROUTINES CALLED_
007508,001172: # SETTRKF
007509,001173:
007510,001174: # JOBS OR TASKS INITIATED_
007511,001175: # NONE
007512,001176:
007513,001177: # ALARMS_
007514,001178: # TRACKER FAIL
007515,001179: # PROGRAM ALARM 00515 - RRCDU FAIL DURING P-20
007516,001180:
007517,001181: # EXIT_
007518,001182: # RRGIMON, NORRGMON
007519,001183:
007520,001184: 06,3034 44752 -3 CS BIT2
007521,001185: 06,3035 00006 EXTEND
007522,001186: 06,3036 03012 WAND CHAN12 # AT TURNON, DISABLE CDU ERROR COUNTERS.
007523,001187:
007524,001188: 06,3037 30110 RRCDUCHK CA RADMODES # LAST SAMPLED BIT IN RADMODES.
007525,001189: 06,3040 00006 EXTEND
007526,001190: 06,3041 06030 RXOR CHAN30
007527,001191: 06,3042 74745 MASK RCDUFBIT
007528,001192: 06,3043 00006 EXTEND
007529,001193: 06,3044 13071 BZF RRGIMON
007530,001194:
007531,001195: 06,3045 34752 CAF AUTOMBIT # IF RR NOT IN AUTO MODE, DON'T CHANGE BIT
007532,001196: 06,3046 70110 MASK RADMODES # 7 OF RADMODES. IF THIS WERE NOT DONE,
007533,001197: 06,3047 10000 CCS A # THE TRACKER FAIL MIGHT COME ON WHEN
007534,001198: 06,3050 13132 TCF NORRGMON # JUST READING LR DATA.
007535,001199:
007536,001200: 06,3051 34745 CAF RCDUFBIT # SET BIT 7 OF RADMODES FOR SETTRKF.
Page 185 |
007538,001202: 06,3052 22110 LXCH RADMODES # UPDATE RADMODES.
007539,001203: 06,3053 00006 EXTEND
007540,001204: 06,3054 06001 RXOR L
007541,001205: 06,3055 54110 TS RADMODES
007542,001206:
007543,001207: 06,3056 30110 CA RADMODES # DID RR CDU FAIL
007544,001208: 06,3057 74745 MASK RCDUFBIT
007545,001209: 06,3060 10000 CCS A
007546,001210: 06,3061 13070 TCF TRKFLCDU # NO
007547,001211: 06,3062 40074 CS FLAGWRD0 # RNDVFLG P20 OR P22 OPERATING
007548,001212: 06,3063 74745 MASK RNDVZBIT
007549,001213: 06,3064 10000 CCS A
007550,001214: 06,3065 13070 TCF TRKFLCDU # NO
007551,001215: 06,3066 05567 TC ALARM # YES
007552,001216: 06,3067 00515 OCT 00515
007553,001217: 06,3070 04564 TRKFLCDU TC SETTRKF # UPDATE TRACKER FAIL LAMP ON DSKY.
007554,001218:
Page 186 |
007556,001220: # PROGRAM NAME_ RRGIMON E AUTO MODE EXCEPT WHEN THE RR CDUS ARE
007557,001221:
007558,001222: # FUNCTIONAL DESCRIPTION_ TTER IS INITIATED BY THIS MONITOR WHEN
007559,001223: # RRGIMON IS THE RR GIMBAL LIMIT MONITOR. INITIALLY THE FOLLOWING IS ED TO DRIVE THE GIMBALS TO T = 0 AND
007560,001224: # CHECKED_ REMODE, RR CDU:S BEING ZEROED, REPOSITION, AND RR
007561,001225: # NOT IN AUTO MODE (RADMODES BITS 14, 13, 11 2). IF ANY OF THESE
007562,001226: # EXIST THE PROGRAM EXITS TO GPMATRIX. IF NONE ARE PRESENT RRLIMCHK
007563,001227: # IS CALLED TO SEE IF THE PRESENT RR CDU ANGLES (OPTY, OPTX) ARE WITHIN
007564,001228: # THE LIMITS OF THE CURRENT MODE. IF WITHIN LIMITS, THE PROGRAM EXITS
007565,001229: # TO NORRGMON. IF NOT WITHIN LIMITS, THE REPOSITION FLAG (RADMODES
007566,001230: # BIT 11) IS SET, THE RR AUTO TRACKER AND RR ERROR COUNTER
007567,001231: # (CHAN 12 BITS 14, 2) ARE DISABLED, AND A 20 MILLISECOND WAITLIST
007568,001232: # CALL IS SET FOR DORREPOS AFTER WHICH THE PROGRAM EXITS TO NORRGMON.
007569,001233:
007570,001234: # CALLING SEQUENCE_
007571,001235: # EVERY 480 MILLISECONDS FROM RRCDUCHK (VIA T4RUPT) UNLESS TURN-ON
007572,001236: # HAS JUST BEEN INITIATED VIA RRAUTCHK OR IF THERE HAS BEEN A CHANGE IN
007573,001237: # THE RR CDU FAIL BIT (CHAN 30 BIT 7) AND THE RR IS NOT IN THE AUTO MODE
007574,001238: # (RADMODES BIT 2).
007575,001239:
007576,001240: # ERASABLE INITIALIZATION_ RADMODES
007577,001241:
007578,001242: # SUBROUTINES CALLED_
007579,001243: # RRLIMCHK, WAITLIST
007580,001244:
007581,001245: # JOBS OR TASKS INITIATED_
007582,001246: # DORREPOS
007583,001247:
007584,001248: # ALARMS_
007585,001249: # NONE
007586,001250:
007587,001251: # EXIT_
007588,001252: # NORRGMON
007589,001253:
007590,001254: 06,3071 30101 RRGIMON CAE FLAGWRD5 # IS NO ANGLE MONITOR FLAG SET
007591,001255: 06,3072 74750 MASK NORRMBIT
007592,001256: 06,3073 10000 CCS A
007593,001257: 06,3074 13132 TCF NORRGMON # YES - SKIP LIMIT CHECK
007594,001258: 06,3075 40103 CS FLAGWRD7 # IS SERVICER RUNNING?
007595,001259: 06,3076 74747 MASK AVEGFBIT
007596,001260: 06,3077 10000 CCS A
007597,001261: 06,3100 13105 TCF +5 # NO. DO R25
007598,001262: 06,3101 30102 CA FLAGWRD6 # YES. IS MUNFLAG SET?
007599,001263: 06,3102 74744 MASK MUNFLBIT
007600,001264: 06,3103 10000 CCS A
007601,001265: 06,3104 13132 TCF NORRGMON # YES. DON'T DO R25
007602,001266: 06,3105 33127 +5 CAF OCT32002 # INHIBIT BY REMODE, ZEROING, MONITOR.
007603,001267: 06,3106 70110 MASK RADMODES # OR RR NOT IN AUTO.
007604,001268: 06,3107 10000 CCS A
007605,001269: 06,3110 13132 TCF NORRGMON
Page 187 |
007607,001271: 06,3111 04523 TC RRLIMCHK # SEE IF ANGLES IN LIMITS.
007608,001272: 06,3112 00035 ADRES CDUT
007609,001273:
007610,001274: 06,3113 13115 TCF MONREPOS
007611,001275:
007612,001276: 06,3114 13132 TCF NORRGMON # (ADDITIONAL CODING MAY GO HERE).
007613,001277:
007614,001278: 06,3115 34741 MONREPOS CAF REPOSBIT # SET FLAG TO SHOW REPOSITION IN PROGRESS.
007615,001279: 06,3116 26110 ADS RADMODES
007616,001280:
007617,001281: 06,3117 43130 CS OCT20002 # DISABLE TRACKER AND ERROR COUNTER.
007618,001282: 06,3120 00006 EXTEND
007619,001283: 06,3121 03012 WAND CHAN12
007620,001284:
007621,001285: 06,3122 34752 CAF TWO
007622,001286: 06,3123 05203 TC WAITLIST
007623,001287: 06,3124 E7,1456 EBANK= LOSCOUNT
007624,001288: 06,3124 02127 52107 2CADR DORREPOS
007625,001289:
007626,001290: 06,3126 13132 TCF NORRGMON
007627,001291:
007628,001292: 06,3127 32002 OCT32002 OCT 32002
007629,001293: 06,3130 20002 OCT20002 OCT 20002
007630,001294: 06,3131 02100 OCT02100 OCT 02100 # P20, P22 MASK BITS
007631,001295:
Page 188 |
007633,001297: # PROGRAM NAME: GPMATRIX (DAPT4S) MOD. NO. 2 DATE: OCTOBER 27, 1966
007634,001298:
007635,001299: # AUTHOR: JONATHAN D. ADDELSTON (ADAMS ASSOCIATES)
007636,001300:
007637,001301: # MODIFIED: 7FEB. 1968 BY P. S. WEISSMAN TO DELETE COMPUTATION OF MR12 AND MR13, WHICH ARE NO LONGER REQIURED.
007638,001302:
007639,001303: # THIS PROGRAM CALCULATES ALL THE SINGLE-PRECISION MATRIX ELEMENTS WHICH ARE USED BY LEM DAP TO TRANSFORM VECTORS
007640,001304: # FROM GIMBAL TO PILOT (BODY) AXES AND BACK AGAIN. THESE ELEMENTS ARE USED EXCLUSIVELY BY BASIC LANGUAGE ROUTINES
007641,001305: # AND THEREFORE ARE NOT ARRAYED FOR USE BY INTERPRETIVE PROGRAMS.
007642,001306:
007643,001307: # CALLING SEQUENCE: GPMATRIX IS TRANSFERRED TO FROM DAPT4S AND IS THUS EXECUTED 4 TIMES A SECOND BY T4RUPT.
007644,001308: # DAPT4S IS LISTED IN T4JUMP TABLE TWICE EXPLICITLY AND ALSO OCCURS AFTER RRAUTCHK (WHICH IS ALSO LISTED TWICE).
007645,001309:
007646,001310: # SUBROUTINES CALLED: SPSIN, SPCOS.
007647,001311:
007648,001312: # NORMAL EXIT MODE: TCF RESUME
007649,001313:
007650,001314: # ALARM AND ABORT MODES: NONE.
007651,001315:
007652,001316: # INPUT: CDUX, CDUY, CDUZ.
007653,001317:
007654,001318: # OUTPUT: M11, M21, M31, M22, M32.
007655,001319:
007656,001320: # AOG = CDUX, AIG = CDUY, AMG = CDUZ: MNEMONIC IS : OIM = XYZ
007657,001321:
007658,001322: # * * SIN(MG) 0 1 *
007659,001323: # M = * COS(MG)COS(OG) SIN(OG) 0 *
007660,001324: # GP * -COS(MG)SIN(OG) COS(OG) 0 *
007661,001325:
007662,001326: # * * 0 COS(OG)/COS(MG) -SIN(OG)/COS(MG) *
007663,001327: # M = * 0 SIN(OG) COS(OG) *
007664,001328: # PG * 1 -SIN(MG)COS(OG)/COS(MG) SIN(MG)SIN(OG)/COS(MG) *
007665,001329:
007666,001330: 06,3132 E6,1414 EBANK= M11
007667,001331: 06,3132 06,3132 DAPT4S EQUALS GPMATRIX
007668,001332:
007669,001333: # T4RUPT DAP LOGIC:
007670,001334:
007671,001335: 06,3132 30034 GPMATRIX CAE CDUZ # SINGLE ENTRY POINT
007672,001336: 06,3133 05033 TC SPSIN # SIN(CDUZ) = SIN(MG)
007673,001337: 06,3134 55414 TS M11 # SCALED AT 1
007674,001338:
007675,001339: 06,3135 30034 CAE CDUZ
007676,001340: 06,3136 05032 TC SPCOS # COS(CDUZ) = COS(MG)
007677,001341: 06,3137 54061 TS COSMG # SCALED AT 1 (ONLY A FACTOR)
007678,001342:
007679,001343: 06,3140 30032 CAE CDUX
007680,001344: 06,3141 05033 TC SPSIN # SIN(CDUX) = SIN(OG)
007681,001345: 06,3142 55417 TS M22 # SCALED AT 1 (ALSO IS MR22)
007682,001346:
007683,001347: 06,3143 41417 CS M22
Page 189 |
007685,001349: 06,3144 00006 EXTEND
007686,001350: 06,3145 70061 MP COSMG # -SIN(OG)COS(MG)
007687,001351: 06,3146 55416 TS M31 # SCALED AT 1
007688,001352:
007689,001353: 06,3147 30032 CAE CDUX
007690,001354: 06,3150 05032 TC SPCOS # COS(CDUX) = COS(OG)
007691,001355: 06,3151 55420 TS M32 # SCALED AT 1 (ALSO IS MR23)
007692,001356:
007693,001357: 06,3152 00006 EXTEND
007694,001358: 06,3153 70061 MP COSMG # COS(OG)COS(MG)
007695,001359: 06,3154 55415 TS M21 # SCALED AT 1
007696,001360:
007697,001361: 06,3155 05270 TC RESUME
007698,001362:
007699,001363: 06,3156 06,3132 NORRGMON EQUALS DAPT4S
007700,001364: 06,3156 5270 ENDDAPT4 EQUALS RESUME
End of include-file T4RUPT_PROGRAM.agc. Parent file is MAIN.agc