#0, FREE_VAC, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 2 #1, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 4 /* CANON Sampler Elmo drivers Elmo Whistle WHI-15/60R last touched 22AUG18 ui[1] = sample position ui[2] = current position cnts ui[3] = Homing offset cnts ui[4] = offset to first position ui[5] = offset between all other positions -------------------------------------------------*/ function[] = HOME() #2, LINK, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 7 #3, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 9 int t; //set up hall sensor IL[1]=6; //low input #4, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 6 The size of the command is 6 bytes The command pointer is 15 #5, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 21 #6, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 104 The size of the command is 3 bytes The command pointer is 24 #7, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 26 //set up motor UM=2; #8, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 6 bytes The command pointer is 32 #9, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 38 #10, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 172 The size of the command is 3 bytes The command pointer is 41 #11, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 43 MO=1; #12, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 49 #13, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 55 #14, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 58 #15, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 60 JV=1200; #16, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1200 The size of the command is 6 bytes The command pointer is 66 #17, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 72 #18, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 107 The size of the command is 3 bytes The command pointer is 75 #19, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 77 //check to see if we are already on HAL sensor. //TODO, move off zero and re-home. right now, //just assume we were fine from last time. if (IB[0]) #20, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 83 #21, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 101 The size of the command is 3 bytes The command pointer is 86 #22, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 44 The size of the command is 4 bytes The command pointer is 90 #23, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 92 PX=0; #24, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 98 #25, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 104 #26, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 140 The size of the command is 3 bytes The command pointer is 107 #27, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 109 MO=0; #28, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 115 #29, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 121 #30, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 124 #31, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 126 return; #32, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 128 #33, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 130 end BG; #34, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 136 #35, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 142 #36, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 66 The size of the command is 3 bytes The command pointer is 145 #37, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 147 t=TM; #38, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 164 The size of the command is 3 bytes The command pointer is 150 #39, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 0 The size of the command is 4 bytes The command pointer is 154 #40, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 156 while (!IB[0]) //go til we trip the HAL #41, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 162 #42, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 101 The size of the command is 3 bytes The command pointer is 165 #43, UNARY_NOT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 167 #44, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 37 The size of the command is 4 bytes The command pointer is 171 #45, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 173 if ( tdif(t)>29000) #46, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 4 bytes The command pointer is 177 #47, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 51 The size of the command is 3 bytes The command pointer is 180 #48, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 29000 The size of the command is 6 bytes The command pointer is 186 #49, RSLTA, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 188 #50, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 12 The size of the command is 4 bytes The command pointer is 192 #51, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 194 break; #52, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 10 The size of the command is 4 bytes The command pointer is 198 #53, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 200 end end #54, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -44 The size of the command is 4 bytes The command pointer is 204 #55, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 206 t=TM; #56, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 164 The size of the command is 3 bytes The command pointer is 209 #57, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 0 The size of the command is 4 bytes The command pointer is 213 #58, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 215 while (!IB[0]) //go til we trip the HAL #59, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 221 #60, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 101 The size of the command is 3 bytes The command pointer is 224 #61, UNARY_NOT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 226 #62, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 37 The size of the command is 4 bytes The command pointer is 230 #63, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 232 if ( tdif(t)>29000) #64, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 4 bytes The command pointer is 236 #65, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 51 The size of the command is 3 bytes The command pointer is 239 #66, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 29000 The size of the command is 6 bytes The command pointer is 245 #67, RSLTA, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 247 #68, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 12 The size of the command is 4 bytes The command pointer is 251 #69, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 253 break; #70, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 10 The size of the command is 4 bytes The command pointer is 257 #71, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 259 end end #72, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -44 The size of the command is 4 bytes The command pointer is 263 #73, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 265 ST; //stop motor #74, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 271 #75, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 277 #76, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 160 The size of the command is 3 bytes The command pointer is 280 #77, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 282 MO=0; #78, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 288 #79, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 294 #80, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 297 #81, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 299 wait(500); #82, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 500 The size of the command is 6 bytes The command pointer is 305 #83, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 311 #84, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 314 #85, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 57 The size of the command is 3 bytes The command pointer is 317 #86, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 323 #87, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 326 #88, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 58 The size of the command is 3 bytes The command pointer is 329 #89, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 332 #90, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 334 #91, JZ, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 8 The size of the command is 4 bytes The command pointer is 338 #92, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -21 The size of the command is 4 bytes The command pointer is 342 #93, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -2 The size of the command is 4 bytes The command pointer is 346 #94, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 348 UM=5; #95, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 5 The size of the command is 6 bytes The command pointer is 354 #96, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 360 #97, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 172 The size of the command is 3 bytes The command pointer is 363 #98, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 365 MO=1; #99, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 371 #100, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 377 #101, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 380 #102, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 382 PR = UI[3]; // #103, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 3 The size of the command is 6 bytes The command pointer is 388 #104, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 171 The size of the command is 3 bytes The command pointer is 391 #105, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 397 #106, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 135 The size of the command is 3 bytes The command pointer is 400 #107, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 402 //meas 200 cnts to exact 0 BG; #108, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 408 #109, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 414 #110, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 66 The size of the command is 3 bytes The command pointer is 417 #111, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 419 wait(3000); //let it get back to zero #112, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 3000 The size of the command is 6 bytes The command pointer is 425 #113, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 431 #114, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 434 #115, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 57 The size of the command is 3 bytes The command pointer is 437 #116, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 443 #117, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 446 #118, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 58 The size of the command is 3 bytes The command pointer is 449 #119, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 452 #120, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 454 #121, JZ, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 8 The size of the command is 4 bytes The command pointer is 458 #122, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -21 The size of the command is 4 bytes The command pointer is 462 #123, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -2 The size of the command is 4 bytes The command pointer is 466 #124, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 468 MO=0; #125, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 474 #126, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 480 #127, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 483 #128, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 485 wait(500); #129, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 500 The size of the command is 6 bytes The command pointer is 491 #130, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 497 #131, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 500 #132, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 57 The size of the command is 3 bytes The command pointer is 503 #133, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 509 #134, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 512 #135, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 58 The size of the command is 3 bytes The command pointer is 515 #136, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 518 #137, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 520 #138, JZ, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 8 The size of the command is 4 bytes The command pointer is 524 #139, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -21 The size of the command is 4 bytes The command pointer is 528 #140, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -2 The size of the command is 4 bytes The command pointer is 532 #141, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 534 PX=0; //ZERO the cnter #142, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 540 #143, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 546 #144, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 140 The size of the command is 3 bytes The command pointer is 549 #145, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 551 return; #146, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 553 #147, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 555 //------------------------------------------------------------- function[] = P(int x1)//input in seconds! #148, LINK, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 3 bytes The command pointer is 558 #149, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 560 //run pump for x1 ms (max 30000) OL[1]=1; //on pump #150, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 566 #151, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 572 #152, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 127 The size of the command is 3 bytes The command pointer is 575 #153, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 577 wait (x1*1000); // #154, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: -6 The size of the command is 4 bytes The command pointer is 581 #155, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1000 The size of the command is 6 bytes The command pointer is 587 #156, MLT, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 589 #157, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 595 #158, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 598 #159, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 57 The size of the command is 3 bytes The command pointer is 601 #160, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 607 #161, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 610 #162, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 58 The size of the command is 3 bytes The command pointer is 613 #163, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 616 #164, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 618 #165, JZ, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 8 The size of the command is 4 bytes The command pointer is 622 #166, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -21 The size of the command is 4 bytes The command pointer is 626 #167, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -2 The size of the command is 4 bytes The command pointer is 630 #168, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 632 OL[1]=0; //off pump #169, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 638 #170, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 644 #171, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 127 The size of the command is 3 bytes The command pointer is 647 #172, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 649 return; #173, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 651 #174, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 653 //--------------------------------------------------------------- function[] = GoPos(int pos) #175, LINK, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 656 #176, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 658 //sample position pos //16 pos around the circumf. Pos0=HOME. Pos1 is 19deg //from TDS. Pos16 is 341 deg (-19deg) from TDS. Other //positions are 23deg apart //empirically measured // cnts to pos 1 = UI[4] // cnts between others = UI[5] int cnts; int target; if(pos>16 || pos<0) #177, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: -6 The size of the command is 4 bytes The command pointer is 662 #178, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 16 The size of the command is 6 bytes The command pointer is 668 #179, RSLTA, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 670 #180, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: -6 The size of the command is 4 bytes The command pointer is 674 #181, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 680 #182, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 682 #183, RSLTOR, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 684 #184, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 10 The size of the command is 4 bytes The command pointer is 688 #185, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 690 return; #186, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 692 #187, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 694 end //go home first // removed 14JAN16 HOME(); if(!pos) #188, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: -6 The size of the command is 4 bytes The command pointer is 698 #189, UNARY_NOT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 700 #190, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 27 The size of the command is 4 bytes The command pointer is 704 #191, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 706 MO=0; #192, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 712 #193, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 718 #194, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 721 #195, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 723 return; #196, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 725 #197, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 727 end //now go to pos target = (UI[5]*(pos-1))+UI[4]; #198, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 5 The size of the command is 6 bytes The command pointer is 733 #199, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 171 The size of the command is 3 bytes The command pointer is 736 #200, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: -6 The size of the command is 4 bytes The command pointer is 740 #201, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 746 #202, SUB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 748 #203, MLT, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 750 #204, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 4 The size of the command is 6 bytes The command pointer is 756 #205, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 171 The size of the command is 3 bytes The command pointer is 759 #206, ADD, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 761 #207, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 1 The size of the command is 4 bytes The command pointer is 765 #208, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 767 //set up motor UM=2; #209, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 6 bytes The command pointer is 773 #210, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 779 #211, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 172 The size of the command is 3 bytes The command pointer is 782 #212, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 784 MO=1; #213, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 790 #214, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 796 #215, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 799 #216, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 801 JV=1200; #217, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1200 The size of the command is 6 bytes The command pointer is 807 #218, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 813 #219, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 107 The size of the command is 3 bytes The command pointer is 816 #220, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 818 BG; #221, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 824 #222, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 830 #223, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 66 The size of the command is 3 bytes The command pointer is 833 #224, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 835 cnts=PX; #225, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 140 The size of the command is 3 bytes The command pointer is 838 #226, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 0 The size of the command is 4 bytes The command pointer is 842 #227, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 844 while ( abs(cnts-target) > 10) #228, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 4 bytes The command pointer is 848 #229, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 4 bytes The command pointer is 852 #230, SUB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 854 #231, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 50 The size of the command is 3 bytes The command pointer is 857 #232, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 10 The size of the command is 6 bytes The command pointer is 863 #233, RSLTA, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 865 #234, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 68 The size of the command is 4 bytes The command pointer is 869 #235, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 871 wait(10); #236, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 10 The size of the command is 6 bytes The command pointer is 877 #237, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 883 #238, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 886 #239, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 57 The size of the command is 3 bytes The command pointer is 889 #240, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 895 #241, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 898 #242, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 58 The size of the command is 3 bytes The command pointer is 901 #243, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 904 #244, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 906 #245, JZ, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 8 The size of the command is 4 bytes The command pointer is 910 #246, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -21 The size of the command is 4 bytes The command pointer is 914 #247, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -2 The size of the command is 4 bytes The command pointer is 918 #248, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 920 cnts=PX; #249, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 140 The size of the command is 3 bytes The command pointer is 923 #250, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 0 The size of the command is 4 bytes The command pointer is 927 #251, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 929 end #252, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -85 The size of the command is 4 bytes The command pointer is 933 #253, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 935 MO=0; #254, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 941 #255, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 947 #256, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 950 #257, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 952 return; #258, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 954 #259, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 956 //------------------------------------------------------------- function[] = Next() #260, LINK, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 959 #261, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 961 int pos; pos = UI[1]; //issue UI[1]=0 before deployment!!!! #262, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 967 #263, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 171 The size of the command is 3 bytes The command pointer is 970 #264, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 0 The size of the command is 4 bytes The command pointer is 974 #265, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 976 GoPos(pos+1); #266, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 4 bytes The command pointer is 980 #267, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 4 bytes The command pointer is 984 #268, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 990 #269, ADD, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 992 #270, USRSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: CMD_IMMEDIATELY_2, Operand 1: 1 Operand 2: 0 Operand 3: 998 The size of the command is 6 bytes The command pointer is 998 #271, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 4 bytes The command pointer is 1002 #272, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 1004 UI[1] = pos+1; #273, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 4 bytes The command pointer is 1008 #274, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 1014 #275, ADD, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 1016 #276, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 1022 #277, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 171 The size of the command is 3 bytes The command pointer is 1025 #278, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 1027 //user must issue SV to save to flash!!!!! return; #279, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 1029 #280, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 1031 //--------------------------------------------------------------- #281, FREE_VAC, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 1033