#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 9 sample version last touched 22FEB18 -------------------------------------------------*/ 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=750; #16, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 750 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 UM=5; #82, 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 305 #83, 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 311 #84, 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 314 #85, 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 316 MO=1; #86, 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 322 #87, 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 328 #88, 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 331 #89, 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 333 PR = 250; // #90, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 250 The size of the command is 6 bytes The command pointer is 339 #91, 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 345 #92, 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 348 #93, 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 350 //meas cnts to exact 0 BG; #94, 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 356 #95, 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 362 #96, 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 365 #97, 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 367 wait(1000); //let it get back to zero #98, 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 373 #99, 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 379 #100, 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 382 #101, 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 385 #102, 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 391 #103, 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 394 #104, 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 397 #105, 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 400 #106, 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 402 #107, 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 406 #108, 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 410 #109, 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 414 #110, 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 416 MO=0; #111, 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 422 #112, 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 428 #113, 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 431 #114, 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 433 wait(500); #115, 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 439 #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 445 #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 448 #118, 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 451 #119, 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 457 #120, 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 460 #121, 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 463 #122, 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 466 #123, 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 468 #124, 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 472 #125, 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 476 #126, 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 480 #127, 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 482 PX=0; //ZERO the cnter #128, 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 488 #129, 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 494 #130, 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 497 #131, 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 499 return; #132, 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 501 #133, 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 503 //------------------------------------------------------------- function[] = P(int x1)//input in seconds! #134, 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 506 #135, 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 508 //run pump for x1 ms (max 30000) OL[1]=1; //on pump #136, 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 514 #137, 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 520 #138, 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 523 #139, 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 525 wait (x1*1000); // #140, 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 529 #141, 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 535 #142, 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 537 #143, 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 543 #144, 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 546 #145, 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 549 #146, 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 555 #147, 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 558 #148, 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 561 #149, 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 564 #150, 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 566 #151, 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 570 #152, 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 574 #153, 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 578 #154, 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 580 OL[1]=0; //off pump #155, 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 586 #156, 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 592 #157, 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 595 #158, 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 597 return; #159, 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 599 #160, 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 601 //--------------------------------------------------------------- function[] = GoPos(int pos) #161, 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 604 #162, 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 606 //sample position pos //10 pos around the circumf. Pos0=HOME. Pos1 is 32deg //from TDS. Pos9 is 328 deg (-32deg) from TDS. Other //positions are 38.5deg apart //18280 counts for 1 rev //18280 counts * 32/360 = 1625 cnts to POS1 //18280 counts * 38.5/360 = 1955 cnts between pos int cnts; int target; if(pos>9 || pos<0) #163, 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 610 #164, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 9 The size of the command is 6 bytes The command pointer is 616 #165, 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 618 #166, 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 622 #167, 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 628 #168, 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 630 #169, 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 632 #170, 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 636 #171, 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 638 return; #172, 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 640 #173, 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 642 end //go home first // removed 14JAN16 HOME(); if(!pos) #174, 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 646 #175, 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 648 #176, 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 652 #177, 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 654 MO=0; #178, 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 660 #179, 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 666 #180, 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 669 #181, 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 671 return; #182, 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 673 #183, 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 675 end //now go to pos target = (1955*(pos-1))+1625; #184, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1955 The size of the command is 6 bytes The command pointer is 681 #185, 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 685 #186, 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 691 #187, 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 693 #188, 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 695 #189, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1625 The size of the command is 6 bytes The command pointer is 701 #190, 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 703 #191, 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 707 #192, 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 709 //set up motor UM=2; #193, 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 715 #194, 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 721 #195, 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 724 #196, 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 726 MO=1; #197, 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 732 #198, 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 738 #199, 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 741 #200, 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 743 JV=750; #201, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 750 The size of the command is 6 bytes The command pointer is 749 #202, 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 755 #203, 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 758 #204, 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 760 BG; #205, 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 766 #206, 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 772 #207, 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 775 #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 777 cnts=PX; #209, 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 780 #210, 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 784 #211, 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 786 while ( abs(cnts-target) > 10) #212, 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 790 #213, 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 794 #214, 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 796 #215, 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 799 #216, 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 805 #217, 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 807 #218, 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 811 #219, 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 813 wait(10); #220, 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 819 #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 825 #222, 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 828 #223, 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 831 #224, 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 837 #225, 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 840 #226, 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 843 #227, 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 846 #228, 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 848 #229, 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 852 #230, 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 856 #231, 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 860 #232, 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 862 cnts=PX; #233, 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 865 #234, 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 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 end #236, 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 875 #237, 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 877 MO=0; #238, 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 #239, 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 889 #240, 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 892 #241, 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 894 return; #242, 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 896 #243, 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 898 //------------------------------------------------------------- function[] = Next() #244, 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 901 #245, 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 903 int pos; pos = UI[1]; //issue UI[1]=0 before deployment!!!! #246, 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 909 #247, 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 912 #248, 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 916 #249, 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 918 GoPos(pos+1); #250, 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 922 #251, 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 926 #252, 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 932 #253, 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 934 #254, 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: 940 The size of the command is 6 bytes The command pointer is 940 #255, 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 944 #256, 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 946 UI[1] = pos+1; #257, 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 950 #258, 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 956 #259, 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 958 #260, 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 964 #261, 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 967 #262, 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 969 //user must issue SV to save to flash!!!!! return; #263, 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 971 #264, 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 973 //--------------------------------------------------------------- #265, 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 975